dac

package
v0.0.0-...-168ccc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package dac provides interface to Digital to Analog Converter.

Peripheral: DAC_Periph Digital to Analog Converter. Instances:

DAC  mmap.DAC_BASE

Registers:

0x00 32  CR
0x04 32  SWTRIGR
0x08 32  DHR12R1
0x0C 32  DHR12L1
0x10 32  DHR8R1
0x14 32  DHR12R2
0x18 32  DHR12L2
0x1C 32  DHR8R2
0x20 32  DHR12RD
0x24 32  DHR12LD
0x28 32  DHR8RD
0x2C 32  DOR1
0x30 32  DOR2

Import:

stm32/o/f10x_md/mmap

Index

Constants

View Source
const (
	EN1n    = 0
	BOFF1n  = 1
	TEN1n   = 2
	TSEL1n  = 3
	WAVE1n  = 6
	MAMP1n  = 8
	DMAEN1n = 12
	EN2n    = 16
	BOFF2n  = 17
	TEN2n   = 18
	TSEL2n  = 19
	WAVE2n  = 22
	MAMP2n  = 24
	DMAEN2n = 28
)
View Source
const (
	SWTRIG1n = 0
	SWTRIG2n = 1
)
View Source
const (
	DACC1DHRn = 0
	DACC2DHRn = 16
)
View Source
const (
	DACC1DHRn = 4
	DACC2DHRn = 20
)
View Source
const (
	DACC1DHRn = 0
	DACC2DHRn = 8
)
View Source
const (
	DACC1DHRn = 0
)
View Source
const (
	DACC1DHRn = 4
)
View Source
const (
	DACC1DHRn = 0
)
View Source
const (
	DACC1DORn = 0
)
View Source
const (
	DACC2DHRn = 0
)
View Source
const (
	DACC2DHRn = 4
)
View Source
const (
	DACC2DHRn = 0
)
View Source
const (
	DACC2DORn = 0
)

Variables

Functions

This section is empty.

Types

type CR

type CR uint32
const (
	EN1     CR = 0x01 << 0  //+ DAC channel1 enable.
	BOFF1   CR = 0x01 << 1  //+ DAC channel1 output buffer disable.
	TEN1    CR = 0x01 << 2  //+ DAC channel1 Trigger enable.
	TSEL1   CR = 0x07 << 3  //+ TSEL1[2:0] (DAC channel1 Trigger selection).
	TSEL1_0 CR = 0x01 << 3  //  Bit 0.
	TSEL1_1 CR = 0x02 << 3  //  Bit 1.
	TSEL1_2 CR = 0x04 << 3  //  Bit 2.
	WAVE1   CR = 0x03 << 6  //+ WAVE1[1:0] (DAC channel1 noise/triangle wave generation enable).
	WAVE1_0 CR = 0x01 << 6  //  Bit 0.
	WAVE1_1 CR = 0x02 << 6  //  Bit 1.
	MAMP1   CR = 0x0F << 8  //+ MAMP1[3:0] (DAC channel1 Mask/Amplitude selector).
	MAMP1_0 CR = 0x01 << 8  //  Bit 0.
	MAMP1_1 CR = 0x02 << 8  //  Bit 1.
	MAMP1_2 CR = 0x04 << 8  //  Bit 2.
	MAMP1_3 CR = 0x08 << 8  //  Bit 3.
	DMAEN1  CR = 0x01 << 12 //+ DAC channel1 DMA enable.
	EN2     CR = 0x01 << 16 //+ DAC channel2 enable.
	BOFF2   CR = 0x01 << 17 //+ DAC channel2 output buffer disable.
	TEN2    CR = 0x01 << 18 //+ DAC channel2 Trigger enable.
	TSEL2   CR = 0x07 << 19 //+ TSEL2[2:0] (DAC channel2 Trigger selection).
	TSEL2_0 CR = 0x01 << 19 //  Bit 0.
	TSEL2_1 CR = 0x02 << 19 //  Bit 1.
	TSEL2_2 CR = 0x04 << 19 //  Bit 2.
	WAVE2   CR = 0x03 << 22 //+ WAVE2[1:0] (DAC channel2 noise/triangle wave generation enable).
	WAVE2_0 CR = 0x01 << 22 //  Bit 0.
	WAVE2_1 CR = 0x02 << 22 //  Bit 1.
	MAMP2   CR = 0x0F << 24 //+ MAMP2[3:0] (DAC channel2 Mask/Amplitude selector).
	MAMP2_0 CR = 0x01 << 24 //  Bit 0.
	MAMP2_1 CR = 0x02 << 24 //  Bit 1.
	MAMP2_2 CR = 0x04 << 24 //  Bit 2.
	MAMP2_3 CR = 0x08 << 24 //  Bit 3.
	DMAEN2  CR = 0x01 << 28 //+ DAC channel2 DMA enabled.
)

func (CR) Field

func (b CR) Field(mask CR) int

func (CR) J

func (mask CR) J(v int) CR

type DAC_Periph

type DAC_Periph struct {
	CR      RCR
	SWTRIGR RSWTRIGR
	DHR12R1 RDHR12R1
	DHR12L1 RDHR12L1
	DHR8R1  RDHR8R1
	DHR12R2 RDHR12R2
	DHR12L2 RDHR12L2
	DHR8R2  RDHR8R2
	DHR12RD RDHR12RD
	DHR12LD RDHR12LD
	DHR8RD  RDHR8RD
	DOR1    RDOR1
	DOR2    RDOR2
}

func (*DAC_Periph) BOFF1

func (p *DAC_Periph) BOFF1() RMCR

func (*DAC_Periph) BOFF2

func (p *DAC_Periph) BOFF2() RMCR

func (*DAC_Periph) BaseAddr

func (p *DAC_Periph) BaseAddr() uintptr

func (*DAC_Periph) DACC1DHR

func (p *DAC_Periph) DACC1DHR() RMDHR8RD

func (*DAC_Periph) DACC1DOR

func (p *DAC_Periph) DACC1DOR() RMDOR1

func (*DAC_Periph) DACC2DHR

func (p *DAC_Periph) DACC2DHR() RMDHR8RD

func (*DAC_Periph) DACC2DOR

func (p *DAC_Periph) DACC2DOR() RMDOR2

func (*DAC_Periph) DMAEN1

func (p *DAC_Periph) DMAEN1() RMCR

func (*DAC_Periph) DMAEN2

func (p *DAC_Periph) DMAEN2() RMCR

func (*DAC_Periph) EN1

func (p *DAC_Periph) EN1() RMCR

func (*DAC_Periph) EN2

func (p *DAC_Periph) EN2() RMCR

func (*DAC_Periph) MAMP1

func (p *DAC_Periph) MAMP1() RMCR

func (*DAC_Periph) MAMP2

func (p *DAC_Periph) MAMP2() RMCR

func (*DAC_Periph) SWTRIG1

func (p *DAC_Periph) SWTRIG1() RMSWTRIGR

func (*DAC_Periph) SWTRIG2

func (p *DAC_Periph) SWTRIG2() RMSWTRIGR

func (*DAC_Periph) TEN1

func (p *DAC_Periph) TEN1() RMCR

func (*DAC_Periph) TEN2

func (p *DAC_Periph) TEN2() RMCR

func (*DAC_Periph) TSEL1

func (p *DAC_Periph) TSEL1() RMCR

func (*DAC_Periph) TSEL2

func (p *DAC_Periph) TSEL2() RMCR

func (*DAC_Periph) WAVE1

func (p *DAC_Periph) WAVE1() RMCR

func (*DAC_Periph) WAVE2

func (p *DAC_Periph) WAVE2() RMCR

type DHR12L1

type DHR12L1 uint32
const (
	DACC1DHR DHR12L1 = 0xFFF << 4 //+ DAC channel1 12-bit Left aligned data.
)

func (DHR12L1) Field

func (b DHR12L1) Field(mask DHR12L1) int

func (DHR12L1) J

func (mask DHR12L1) J(v int) DHR12L1

type DHR12L2

type DHR12L2 uint32
const (
	DACC2DHR DHR12L2 = 0xFFF << 4 //+ DAC channel2 12-bit Left aligned data.
)

func (DHR12L2) Field

func (b DHR12L2) Field(mask DHR12L2) int

func (DHR12L2) J

func (mask DHR12L2) J(v int) DHR12L2

type DHR12LD

type DHR12LD uint32
const (
	DACC1DHR DHR12LD = 0xFFF << 4  //+ DAC channel1 12-bit Left aligned data.
	DACC2DHR DHR12LD = 0xFFF << 20 //+ DAC channel2 12-bit Left aligned data.
)

func (DHR12LD) Field

func (b DHR12LD) Field(mask DHR12LD) int

func (DHR12LD) J

func (mask DHR12LD) J(v int) DHR12LD

type DHR12R1

type DHR12R1 uint32
const (
	DACC1DHR DHR12R1 = 0xFFF << 0 //+ DAC channel1 12-bit Right aligned data.
)

func (DHR12R1) Field

func (b DHR12R1) Field(mask DHR12R1) int

func (DHR12R1) J

func (mask DHR12R1) J(v int) DHR12R1

type DHR12R2

type DHR12R2 uint32
const (
	DACC2DHR DHR12R2 = 0xFFF << 0 //+ DAC channel2 12-bit Right aligned data.
)

func (DHR12R2) Field

func (b DHR12R2) Field(mask DHR12R2) int

func (DHR12R2) J

func (mask DHR12R2) J(v int) DHR12R2

type DHR12RD

type DHR12RD uint32
const (
	DACC1DHR DHR12RD = 0xFFF << 0  //+ DAC channel1 12-bit Right aligned data.
	DACC2DHR DHR12RD = 0xFFF << 16 //+ DAC channel2 12-bit Right aligned data.
)

func (DHR12RD) Field

func (b DHR12RD) Field(mask DHR12RD) int

func (DHR12RD) J

func (mask DHR12RD) J(v int) DHR12RD

type DHR8R1

type DHR8R1 uint32
const (
	DACC1DHR DHR8R1 = 0xFF << 0 //+ DAC channel1 8-bit Right aligned data.
)

func (DHR8R1) Field

func (b DHR8R1) Field(mask DHR8R1) int

func (DHR8R1) J

func (mask DHR8R1) J(v int) DHR8R1

type DHR8R2

type DHR8R2 uint32
const (
	DACC2DHR DHR8R2 = 0xFF << 0 //+ DAC channel2 8-bit Right aligned data.
)

func (DHR8R2) Field

func (b DHR8R2) Field(mask DHR8R2) int

func (DHR8R2) J

func (mask DHR8R2) J(v int) DHR8R2

type DHR8RD

type DHR8RD uint32
const (
	DACC1DHR DHR8RD = 0xFF << 0 //+ DAC channel1 8-bit Right aligned data.
	DACC2DHR DHR8RD = 0xFF << 8 //+ DAC channel2 8-bit Right aligned data.
)

func (DHR8RD) Field

func (b DHR8RD) Field(mask DHR8RD) int

func (DHR8RD) J

func (mask DHR8RD) J(v int) DHR8RD

type DOR1

type DOR1 uint32
const (
	DACC1DOR DOR1 = 0xFFF << 0 //+ DAC channel1 data output.
)

func (DOR1) Field

func (b DOR1) Field(mask DOR1) int

func (DOR1) J

func (mask DOR1) J(v int) DOR1

type DOR2

type DOR2 uint32
const (
	DACC2DOR DOR2 = 0xFFF << 0 //+ DAC channel2 data output.
)

func (DOR2) Field

func (b DOR2) Field(mask DOR2) int

func (DOR2) J

func (mask DOR2) J(v int) DOR2

type RCR

type RCR struct{ mmio.U32 }

func (*RCR) AtomicClearBits

func (r *RCR) AtomicClearBits(mask CR)

func (*RCR) AtomicSetBits

func (r *RCR) AtomicSetBits(mask CR)

func (*RCR) AtomicStoreBits

func (r *RCR) AtomicStoreBits(mask, b CR)

func (*RCR) Bits

func (r *RCR) Bits(mask CR) CR

func (*RCR) ClearBits

func (r *RCR) ClearBits(mask CR)

func (*RCR) Load

func (r *RCR) Load() CR

func (*RCR) SetBits

func (r *RCR) SetBits(mask CR)

func (*RCR) Store

func (r *RCR) Store(b CR)

func (*RCR) StoreBits

func (r *RCR) StoreBits(mask, b CR)

type RDHR12L1

type RDHR12L1 struct{ mmio.U32 }

func (*RDHR12L1) AtomicClearBits

func (r *RDHR12L1) AtomicClearBits(mask DHR12L1)

func (*RDHR12L1) AtomicSetBits

func (r *RDHR12L1) AtomicSetBits(mask DHR12L1)

func (*RDHR12L1) AtomicStoreBits

func (r *RDHR12L1) AtomicStoreBits(mask, b DHR12L1)

func (*RDHR12L1) Bits

func (r *RDHR12L1) Bits(mask DHR12L1) DHR12L1

func (*RDHR12L1) ClearBits

func (r *RDHR12L1) ClearBits(mask DHR12L1)

func (*RDHR12L1) Load

func (r *RDHR12L1) Load() DHR12L1

func (*RDHR12L1) SetBits

func (r *RDHR12L1) SetBits(mask DHR12L1)

func (*RDHR12L1) Store

func (r *RDHR12L1) Store(b DHR12L1)

func (*RDHR12L1) StoreBits

func (r *RDHR12L1) StoreBits(mask, b DHR12L1)

type RDHR12L2

type RDHR12L2 struct{ mmio.U32 }

func (*RDHR12L2) AtomicClearBits

func (r *RDHR12L2) AtomicClearBits(mask DHR12L2)

func (*RDHR12L2) AtomicSetBits

func (r *RDHR12L2) AtomicSetBits(mask DHR12L2)

func (*RDHR12L2) AtomicStoreBits

func (r *RDHR12L2) AtomicStoreBits(mask, b DHR12L2)

func (*RDHR12L2) Bits

func (r *RDHR12L2) Bits(mask DHR12L2) DHR12L2

func (*RDHR12L2) ClearBits

func (r *RDHR12L2) ClearBits(mask DHR12L2)

func (*RDHR12L2) Load

func (r *RDHR12L2) Load() DHR12L2

func (*RDHR12L2) SetBits

func (r *RDHR12L2) SetBits(mask DHR12L2)

func (*RDHR12L2) Store

func (r *RDHR12L2) Store(b DHR12L2)

func (*RDHR12L2) StoreBits

func (r *RDHR12L2) StoreBits(mask, b DHR12L2)

type RDHR12LD

type RDHR12LD struct{ mmio.U32 }

func (*RDHR12LD) AtomicClearBits

func (r *RDHR12LD) AtomicClearBits(mask DHR12LD)

func (*RDHR12LD) AtomicSetBits

func (r *RDHR12LD) AtomicSetBits(mask DHR12LD)

func (*RDHR12LD) AtomicStoreBits

func (r *RDHR12LD) AtomicStoreBits(mask, b DHR12LD)

func (*RDHR12LD) Bits

func (r *RDHR12LD) Bits(mask DHR12LD) DHR12LD

func (*RDHR12LD) ClearBits

func (r *RDHR12LD) ClearBits(mask DHR12LD)

func (*RDHR12LD) Load

func (r *RDHR12LD) Load() DHR12LD

func (*RDHR12LD) SetBits

func (r *RDHR12LD) SetBits(mask DHR12LD)

func (*RDHR12LD) Store

func (r *RDHR12LD) Store(b DHR12LD)

func (*RDHR12LD) StoreBits

func (r *RDHR12LD) StoreBits(mask, b DHR12LD)

type RDHR12R1

type RDHR12R1 struct{ mmio.U32 }

func (*RDHR12R1) AtomicClearBits

func (r *RDHR12R1) AtomicClearBits(mask DHR12R1)

func (*RDHR12R1) AtomicSetBits

func (r *RDHR12R1) AtomicSetBits(mask DHR12R1)

func (*RDHR12R1) AtomicStoreBits

func (r *RDHR12R1) AtomicStoreBits(mask, b DHR12R1)

func (*RDHR12R1) Bits

func (r *RDHR12R1) Bits(mask DHR12R1) DHR12R1

func (*RDHR12R1) ClearBits

func (r *RDHR12R1) ClearBits(mask DHR12R1)

func (*RDHR12R1) Load

func (r *RDHR12R1) Load() DHR12R1

func (*RDHR12R1) SetBits

func (r *RDHR12R1) SetBits(mask DHR12R1)

func (*RDHR12R1) Store

func (r *RDHR12R1) Store(b DHR12R1)

func (*RDHR12R1) StoreBits

func (r *RDHR12R1) StoreBits(mask, b DHR12R1)

type RDHR12R2

type RDHR12R2 struct{ mmio.U32 }

func (*RDHR12R2) AtomicClearBits

func (r *RDHR12R2) AtomicClearBits(mask DHR12R2)

func (*RDHR12R2) AtomicSetBits

func (r *RDHR12R2) AtomicSetBits(mask DHR12R2)

func (*RDHR12R2) AtomicStoreBits

func (r *RDHR12R2) AtomicStoreBits(mask, b DHR12R2)

func (*RDHR12R2) Bits

func (r *RDHR12R2) Bits(mask DHR12R2) DHR12R2

func (*RDHR12R2) ClearBits

func (r *RDHR12R2) ClearBits(mask DHR12R2)

func (*RDHR12R2) Load

func (r *RDHR12R2) Load() DHR12R2

func (*RDHR12R2) SetBits

func (r *RDHR12R2) SetBits(mask DHR12R2)

func (*RDHR12R2) Store

func (r *RDHR12R2) Store(b DHR12R2)

func (*RDHR12R2) StoreBits

func (r *RDHR12R2) StoreBits(mask, b DHR12R2)

type RDHR12RD

type RDHR12RD struct{ mmio.U32 }

func (*RDHR12RD) AtomicClearBits

func (r *RDHR12RD) AtomicClearBits(mask DHR12RD)

func (*RDHR12RD) AtomicSetBits

func (r *RDHR12RD) AtomicSetBits(mask DHR12RD)

func (*RDHR12RD) AtomicStoreBits

func (r *RDHR12RD) AtomicStoreBits(mask, b DHR12RD)

func (*RDHR12RD) Bits

func (r *RDHR12RD) Bits(mask DHR12RD) DHR12RD

func (*RDHR12RD) ClearBits

func (r *RDHR12RD) ClearBits(mask DHR12RD)

func (*RDHR12RD) Load

func (r *RDHR12RD) Load() DHR12RD

func (*RDHR12RD) SetBits

func (r *RDHR12RD) SetBits(mask DHR12RD)

func (*RDHR12RD) Store

func (r *RDHR12RD) Store(b DHR12RD)

func (*RDHR12RD) StoreBits

func (r *RDHR12RD) StoreBits(mask, b DHR12RD)

type RDHR8R1

type RDHR8R1 struct{ mmio.U32 }

func (*RDHR8R1) AtomicClearBits

func (r *RDHR8R1) AtomicClearBits(mask DHR8R1)

func (*RDHR8R1) AtomicSetBits

func (r *RDHR8R1) AtomicSetBits(mask DHR8R1)

func (*RDHR8R1) AtomicStoreBits

func (r *RDHR8R1) AtomicStoreBits(mask, b DHR8R1)

func (*RDHR8R1) Bits

func (r *RDHR8R1) Bits(mask DHR8R1) DHR8R1

func (*RDHR8R1) ClearBits

func (r *RDHR8R1) ClearBits(mask DHR8R1)

func (*RDHR8R1) Load

func (r *RDHR8R1) Load() DHR8R1

func (*RDHR8R1) SetBits

func (r *RDHR8R1) SetBits(mask DHR8R1)

func (*RDHR8R1) Store

func (r *RDHR8R1) Store(b DHR8R1)

func (*RDHR8R1) StoreBits

func (r *RDHR8R1) StoreBits(mask, b DHR8R1)

type RDHR8R2

type RDHR8R2 struct{ mmio.U32 }

func (*RDHR8R2) AtomicClearBits

func (r *RDHR8R2) AtomicClearBits(mask DHR8R2)

func (*RDHR8R2) AtomicSetBits

func (r *RDHR8R2) AtomicSetBits(mask DHR8R2)

func (*RDHR8R2) AtomicStoreBits

func (r *RDHR8R2) AtomicStoreBits(mask, b DHR8R2)

func (*RDHR8R2) Bits

func (r *RDHR8R2) Bits(mask DHR8R2) DHR8R2

func (*RDHR8R2) ClearBits

func (r *RDHR8R2) ClearBits(mask DHR8R2)

func (*RDHR8R2) Load

func (r *RDHR8R2) Load() DHR8R2

func (*RDHR8R2) SetBits

func (r *RDHR8R2) SetBits(mask DHR8R2)

func (*RDHR8R2) Store

func (r *RDHR8R2) Store(b DHR8R2)

func (*RDHR8R2) StoreBits

func (r *RDHR8R2) StoreBits(mask, b DHR8R2)

type RDHR8RD

type RDHR8RD struct{ mmio.U32 }

func (*RDHR8RD) AtomicClearBits

func (r *RDHR8RD) AtomicClearBits(mask DHR8RD)

func (*RDHR8RD) AtomicSetBits

func (r *RDHR8RD) AtomicSetBits(mask DHR8RD)

func (*RDHR8RD) AtomicStoreBits

func (r *RDHR8RD) AtomicStoreBits(mask, b DHR8RD)

func (*RDHR8RD) Bits

func (r *RDHR8RD) Bits(mask DHR8RD) DHR8RD

func (*RDHR8RD) ClearBits

func (r *RDHR8RD) ClearBits(mask DHR8RD)

func (*RDHR8RD) Load

func (r *RDHR8RD) Load() DHR8RD

func (*RDHR8RD) SetBits

func (r *RDHR8RD) SetBits(mask DHR8RD)

func (*RDHR8RD) Store

func (r *RDHR8RD) Store(b DHR8RD)

func (*RDHR8RD) StoreBits

func (r *RDHR8RD) StoreBits(mask, b DHR8RD)

type RDOR1

type RDOR1 struct{ mmio.U32 }

func (*RDOR1) AtomicClearBits

func (r *RDOR1) AtomicClearBits(mask DOR1)

func (*RDOR1) AtomicSetBits

func (r *RDOR1) AtomicSetBits(mask DOR1)

func (*RDOR1) AtomicStoreBits

func (r *RDOR1) AtomicStoreBits(mask, b DOR1)

func (*RDOR1) Bits

func (r *RDOR1) Bits(mask DOR1) DOR1

func (*RDOR1) ClearBits

func (r *RDOR1) ClearBits(mask DOR1)

func (*RDOR1) Load

func (r *RDOR1) Load() DOR1

func (*RDOR1) SetBits

func (r *RDOR1) SetBits(mask DOR1)

func (*RDOR1) Store

func (r *RDOR1) Store(b DOR1)

func (*RDOR1) StoreBits

func (r *RDOR1) StoreBits(mask, b DOR1)

type RDOR2

type RDOR2 struct{ mmio.U32 }

func (*RDOR2) AtomicClearBits

func (r *RDOR2) AtomicClearBits(mask DOR2)

func (*RDOR2) AtomicSetBits

func (r *RDOR2) AtomicSetBits(mask DOR2)

func (*RDOR2) AtomicStoreBits

func (r *RDOR2) AtomicStoreBits(mask, b DOR2)

func (*RDOR2) Bits

func (r *RDOR2) Bits(mask DOR2) DOR2

func (*RDOR2) ClearBits

func (r *RDOR2) ClearBits(mask DOR2)

func (*RDOR2) Load

func (r *RDOR2) Load() DOR2

func (*RDOR2) SetBits

func (r *RDOR2) SetBits(mask DOR2)

func (*RDOR2) Store

func (r *RDOR2) Store(b DOR2)

func (*RDOR2) StoreBits

func (r *RDOR2) StoreBits(mask, b DOR2)

type RMCR

type RMCR struct{ mmio.UM32 }

func (RMCR) Load

func (rm RMCR) Load() CR

func (RMCR) Store

func (rm RMCR) Store(b CR)

type RMDHR12L1

type RMDHR12L1 struct{ mmio.UM32 }

func (RMDHR12L1) Load

func (rm RMDHR12L1) Load() DHR12L1

func (RMDHR12L1) Store

func (rm RMDHR12L1) Store(b DHR12L1)

type RMDHR12L2

type RMDHR12L2 struct{ mmio.UM32 }

func (RMDHR12L2) Load

func (rm RMDHR12L2) Load() DHR12L2

func (RMDHR12L2) Store

func (rm RMDHR12L2) Store(b DHR12L2)

type RMDHR12LD

type RMDHR12LD struct{ mmio.UM32 }

func (RMDHR12LD) Load

func (rm RMDHR12LD) Load() DHR12LD

func (RMDHR12LD) Store

func (rm RMDHR12LD) Store(b DHR12LD)

type RMDHR12R1

type RMDHR12R1 struct{ mmio.UM32 }

func (RMDHR12R1) Load

func (rm RMDHR12R1) Load() DHR12R1

func (RMDHR12R1) Store

func (rm RMDHR12R1) Store(b DHR12R1)

type RMDHR12R2

type RMDHR12R2 struct{ mmio.UM32 }

func (RMDHR12R2) Load

func (rm RMDHR12R2) Load() DHR12R2

func (RMDHR12R2) Store

func (rm RMDHR12R2) Store(b DHR12R2)

type RMDHR12RD

type RMDHR12RD struct{ mmio.UM32 }

func (RMDHR12RD) Load

func (rm RMDHR12RD) Load() DHR12RD

func (RMDHR12RD) Store

func (rm RMDHR12RD) Store(b DHR12RD)

type RMDHR8R1

type RMDHR8R1 struct{ mmio.UM32 }

func (RMDHR8R1) Load

func (rm RMDHR8R1) Load() DHR8R1

func (RMDHR8R1) Store

func (rm RMDHR8R1) Store(b DHR8R1)

type RMDHR8R2

type RMDHR8R2 struct{ mmio.UM32 }

func (RMDHR8R2) Load

func (rm RMDHR8R2) Load() DHR8R2

func (RMDHR8R2) Store

func (rm RMDHR8R2) Store(b DHR8R2)

type RMDHR8RD

type RMDHR8RD struct{ mmio.UM32 }

func (RMDHR8RD) Load

func (rm RMDHR8RD) Load() DHR8RD

func (RMDHR8RD) Store

func (rm RMDHR8RD) Store(b DHR8RD)

type RMDOR1

type RMDOR1 struct{ mmio.UM32 }

func (RMDOR1) Load

func (rm RMDOR1) Load() DOR1

func (RMDOR1) Store

func (rm RMDOR1) Store(b DOR1)

type RMDOR2

type RMDOR2 struct{ mmio.UM32 }

func (RMDOR2) Load

func (rm RMDOR2) Load() DOR2

func (RMDOR2) Store

func (rm RMDOR2) Store(b DOR2)

type RMSWTRIGR

type RMSWTRIGR struct{ mmio.UM32 }

func (RMSWTRIGR) Load

func (rm RMSWTRIGR) Load() SWTRIGR

func (RMSWTRIGR) Store

func (rm RMSWTRIGR) Store(b SWTRIGR)

type RSWTRIGR

type RSWTRIGR struct{ mmio.U32 }

func (*RSWTRIGR) AtomicClearBits

func (r *RSWTRIGR) AtomicClearBits(mask SWTRIGR)

func (*RSWTRIGR) AtomicSetBits

func (r *RSWTRIGR) AtomicSetBits(mask SWTRIGR)

func (*RSWTRIGR) AtomicStoreBits

func (r *RSWTRIGR) AtomicStoreBits(mask, b SWTRIGR)

func (*RSWTRIGR) Bits

func (r *RSWTRIGR) Bits(mask SWTRIGR) SWTRIGR

func (*RSWTRIGR) ClearBits

func (r *RSWTRIGR) ClearBits(mask SWTRIGR)

func (*RSWTRIGR) Load

func (r *RSWTRIGR) Load() SWTRIGR

func (*RSWTRIGR) SetBits

func (r *RSWTRIGR) SetBits(mask SWTRIGR)

func (*RSWTRIGR) Store

func (r *RSWTRIGR) Store(b SWTRIGR)

func (*RSWTRIGR) StoreBits

func (r *RSWTRIGR) StoreBits(mask, b SWTRIGR)

type SWTRIGR

type SWTRIGR uint32
const (
	SWTRIG1 SWTRIGR = 0x01 << 0 //+ DAC channel1 software trigger.
	SWTRIG2 SWTRIGR = 0x01 << 1 //+ DAC channel2 software trigger.
)

func (SWTRIGR) Field

func (b SWTRIGR) Field(mask SWTRIGR) int

func (SWTRIGR) J

func (mask SWTRIGR) J(v int) SWTRIGR

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL