adc

package
v0.0.0-...-3d984ba Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package adc provides interface to Analog to Digital Converter.

Peripheral: ADC_Periph Analog to Digital Converter. Instances:

ADC1  mmap.ADC1_BASE
ADC2  mmap.ADC2_BASE
ADC3  mmap.ADC3_BASE

Registers:

0x00 32  SR
0x04 32  CR1
0x08 32  CR2
0x0C 32  SMPR1
0x10 32  SMPR2
0x14 32  JOFR1
0x18 32  JOFR2
0x1C 32  JOFR3
0x20 32  JOFR4
0x24 32  HTR
0x28 32  LTR
0x2C 32  SQR1
0x30 32  SQR2
0x34 32  SQR3
0x38 32  JSQR
0x3C 32  JDR[4] Injected data registers.
0x4C 32  DR

Import:

stm32/o/f10x_hd/mmap

Index

Constants

View Source
const (
	AWDn   = 0
	EOCn   = 1
	JEOCn  = 2
	JSTRTn = 3
	STRTn  = 4
)
View Source
const (
	AWDCHn   = 0
	EOCIEn   = 5
	AWDIEn   = 6
	JEOCIEn  = 7
	SCANn    = 8
	AWDSGLn  = 9
	JAUTOn   = 10
	DISCENn  = 11
	JDISCENn = 12
	DISCNUMn = 13
	DUALMODn = 16
	JAWDENn  = 22
	AWDENn   = 23
)
View Source
const (
	ADONn     = 0
	CONTn     = 1
	CALn      = 2
	RSTCALn   = 3
	DMAn      = 8
	ALIGNn    = 11
	JEXTSELn  = 12
	JEXTTRIGn = 15
	EXTSELn   = 17
	EXTTRIGn  = 20
	JSWSTARTn = 21
	SWSTARTn  = 22
	TSVREFEn  = 23
)
View Source
const (
	SMP10n = 0
	SMP11n = 3
	SMP12n = 6
	SMP13n = 9
	SMP14n = 12
	SMP15n = 15
	SMP16n = 18
	SMP17n = 21
)
View Source
const (
	SMP0n = 0
	SMP1n = 3
	SMP2n = 6
	SMP3n = 9
	SMP4n = 12
	SMP5n = 15
	SMP6n = 18
	SMP7n = 21
	SMP8n = 24
	SMP9n = 27
)
View Source
const (
	SQ13n = 0
	SQ14n = 5
	SQ15n = 10
	SQ16n = 15
	Ln    = 20
)
View Source
const (
	SQ7n  = 0
	SQ8n  = 5
	SQ9n  = 10
	SQ10n = 15
	SQ11n = 20
	SQ12n = 25
)
View Source
const (
	SQ1n = 0
	SQ2n = 5
	SQ3n = 10
	SQ4n = 15
	SQ5n = 20
	SQ6n = 25
)
View Source
const (
	JSQ1n = 0
	JSQ2n = 5
	JSQ3n = 10
	JSQ4n = 15
	JLn   = 20
)
View Source
const (
	DATAn     = 0
	ADC2DATAn = 16
)
View Source
const (
	HTn = 0
)
View Source
const (
	JDATAn = 0
)
View Source
const (
	JOFFSET1n = 0
)
View Source
const (
	JOFFSET2n = 0
)
View Source
const (
	JOFFSET3n = 0
)
View Source
const (
	JOFFSET4n = 0
)
View Source
const (
	LTn = 0
)

Variables

Functions

This section is empty.

Types

type ADC_Periph

type ADC_Periph struct {
	SR    RSR
	CR1   RCR1
	CR2   RCR2
	SMPR1 RSMPR1
	SMPR2 RSMPR2
	JOFR1 RJOFR1
	JOFR2 RJOFR2
	JOFR3 RJOFR3
	JOFR4 RJOFR4
	HTR   RHTR
	LTR   RLTR
	SQR1  RSQR1
	SQR2  RSQR2
	SQR3  RSQR3
	JSQR  RJSQR
	JDR   [4]RJDR
	DR    RDR
}

func (*ADC_Periph) ADC2DATA

func (p *ADC_Periph) ADC2DATA() RMDR

func (*ADC_Periph) ADON

func (p *ADC_Periph) ADON() RMCR2

func (*ADC_Periph) ALIGN

func (p *ADC_Periph) ALIGN() RMCR2

func (*ADC_Periph) AWD

func (p *ADC_Periph) AWD() RMSR

func (*ADC_Periph) AWDCH

func (p *ADC_Periph) AWDCH() RMCR1

func (*ADC_Periph) AWDEN

func (p *ADC_Periph) AWDEN() RMCR1

func (*ADC_Periph) AWDIE

func (p *ADC_Periph) AWDIE() RMCR1

func (*ADC_Periph) AWDSGL

func (p *ADC_Periph) AWDSGL() RMCR1

func (*ADC_Periph) BaseAddr

func (p *ADC_Periph) BaseAddr() uintptr

func (*ADC_Periph) CAL

func (p *ADC_Periph) CAL() RMCR2

func (*ADC_Periph) CONT

func (p *ADC_Periph) CONT() RMCR2

func (*ADC_Periph) DATA

func (p *ADC_Periph) DATA() RMDR

func (*ADC_Periph) DISCEN

func (p *ADC_Periph) DISCEN() RMCR1

func (*ADC_Periph) DISCNUM

func (p *ADC_Periph) DISCNUM() RMCR1

func (*ADC_Periph) DMA

func (p *ADC_Periph) DMA() RMCR2

func (*ADC_Periph) DUALMOD

func (p *ADC_Periph) DUALMOD() RMCR1

func (*ADC_Periph) EOC

func (p *ADC_Periph) EOC() RMSR

func (*ADC_Periph) EOCIE

func (p *ADC_Periph) EOCIE() RMCR1

func (*ADC_Periph) EXTSEL

func (p *ADC_Periph) EXTSEL() RMCR2

func (*ADC_Periph) EXTTRIG

func (p *ADC_Periph) EXTTRIG() RMCR2

func (*ADC_Periph) HT

func (p *ADC_Periph) HT() RMHTR

func (*ADC_Periph) JAUTO

func (p *ADC_Periph) JAUTO() RMCR1

func (*ADC_Periph) JAWDEN

func (p *ADC_Periph) JAWDEN() RMCR1

func (*ADC_Periph) JDATA

func (p *ADC_Periph) JDATA(n int) RMJDR

func (*ADC_Periph) JDISCEN

func (p *ADC_Periph) JDISCEN() RMCR1

func (*ADC_Periph) JEOC

func (p *ADC_Periph) JEOC() RMSR

func (*ADC_Periph) JEOCIE

func (p *ADC_Periph) JEOCIE() RMCR1

func (*ADC_Periph) JEXTSEL

func (p *ADC_Periph) JEXTSEL() RMCR2

func (*ADC_Periph) JEXTTRIG

func (p *ADC_Periph) JEXTTRIG() RMCR2

func (*ADC_Periph) JL

func (p *ADC_Periph) JL() RMJSQR

func (*ADC_Periph) JOFFSET1

func (p *ADC_Periph) JOFFSET1() RMJOFR1

func (*ADC_Periph) JOFFSET2

func (p *ADC_Periph) JOFFSET2() RMJOFR2

func (*ADC_Periph) JOFFSET3

func (p *ADC_Periph) JOFFSET3() RMJOFR3

func (*ADC_Periph) JOFFSET4

func (p *ADC_Periph) JOFFSET4() RMJOFR4

func (*ADC_Periph) JSQ1

func (p *ADC_Periph) JSQ1() RMJSQR

func (*ADC_Periph) JSQ2

func (p *ADC_Periph) JSQ2() RMJSQR

func (*ADC_Periph) JSQ3

func (p *ADC_Periph) JSQ3() RMJSQR

func (*ADC_Periph) JSQ4

func (p *ADC_Periph) JSQ4() RMJSQR

func (*ADC_Periph) JSTRT

func (p *ADC_Periph) JSTRT() RMSR

func (*ADC_Periph) JSWSTART

func (p *ADC_Periph) JSWSTART() RMCR2

func (*ADC_Periph) L

func (p *ADC_Periph) L() RMSQR1

func (*ADC_Periph) LT

func (p *ADC_Periph) LT() RMLTR

func (*ADC_Periph) RSTCAL

func (p *ADC_Periph) RSTCAL() RMCR2

func (*ADC_Periph) SCAN

func (p *ADC_Periph) SCAN() RMCR1

func (*ADC_Periph) SMP0

func (p *ADC_Periph) SMP0() RMSMPR2

func (*ADC_Periph) SMP1

func (p *ADC_Periph) SMP1() RMSMPR2

func (*ADC_Periph) SMP10

func (p *ADC_Periph) SMP10() RMSMPR1

func (*ADC_Periph) SMP11

func (p *ADC_Periph) SMP11() RMSMPR1

func (*ADC_Periph) SMP12

func (p *ADC_Periph) SMP12() RMSMPR1

func (*ADC_Periph) SMP13

func (p *ADC_Periph) SMP13() RMSMPR1

func (*ADC_Periph) SMP14

func (p *ADC_Periph) SMP14() RMSMPR1

func (*ADC_Periph) SMP15

func (p *ADC_Periph) SMP15() RMSMPR1

func (*ADC_Periph) SMP16

func (p *ADC_Periph) SMP16() RMSMPR1

func (*ADC_Periph) SMP17

func (p *ADC_Periph) SMP17() RMSMPR1

func (*ADC_Periph) SMP2

func (p *ADC_Periph) SMP2() RMSMPR2

func (*ADC_Periph) SMP3

func (p *ADC_Periph) SMP3() RMSMPR2

func (*ADC_Periph) SMP4

func (p *ADC_Periph) SMP4() RMSMPR2

func (*ADC_Periph) SMP5

func (p *ADC_Periph) SMP5() RMSMPR2

func (*ADC_Periph) SMP6

func (p *ADC_Periph) SMP6() RMSMPR2

func (*ADC_Periph) SMP7

func (p *ADC_Periph) SMP7() RMSMPR2

func (*ADC_Periph) SMP8

func (p *ADC_Periph) SMP8() RMSMPR2

func (*ADC_Periph) SMP9

func (p *ADC_Periph) SMP9() RMSMPR2

func (*ADC_Periph) SQ1

func (p *ADC_Periph) SQ1() RMSQR3

func (*ADC_Periph) SQ10

func (p *ADC_Periph) SQ10() RMSQR2

func (*ADC_Periph) SQ11

func (p *ADC_Periph) SQ11() RMSQR2

func (*ADC_Periph) SQ12

func (p *ADC_Periph) SQ12() RMSQR2

func (*ADC_Periph) SQ13

func (p *ADC_Periph) SQ13() RMSQR1

func (*ADC_Periph) SQ14

func (p *ADC_Periph) SQ14() RMSQR1

func (*ADC_Periph) SQ15

func (p *ADC_Periph) SQ15() RMSQR1

func (*ADC_Periph) SQ16

func (p *ADC_Periph) SQ16() RMSQR1

func (*ADC_Periph) SQ2

func (p *ADC_Periph) SQ2() RMSQR3

func (*ADC_Periph) SQ3

func (p *ADC_Periph) SQ3() RMSQR3

func (*ADC_Periph) SQ4

func (p *ADC_Periph) SQ4() RMSQR3

func (*ADC_Periph) SQ5

func (p *ADC_Periph) SQ5() RMSQR3

func (*ADC_Periph) SQ6

func (p *ADC_Periph) SQ6() RMSQR3

func (*ADC_Periph) SQ7

func (p *ADC_Periph) SQ7() RMSQR2

func (*ADC_Periph) SQ8

func (p *ADC_Periph) SQ8() RMSQR2

func (*ADC_Periph) SQ9

func (p *ADC_Periph) SQ9() RMSQR2

func (*ADC_Periph) STRT

func (p *ADC_Periph) STRT() RMSR

func (*ADC_Periph) SWSTART

func (p *ADC_Periph) SWSTART() RMCR2

func (*ADC_Periph) TSVREFE

func (p *ADC_Periph) TSVREFE() RMCR2

type CR1

type CR1 uint32
const (
	AWDCH     CR1 = 0x1F << 0  //+ AWDCH[4:0] bits (Analog watchdog channel select bits).
	AWDCH_0   CR1 = 0x01 << 0  //  Bit 0.
	AWDCH_1   CR1 = 0x02 << 0  //  Bit 1.
	AWDCH_2   CR1 = 0x04 << 0  //  Bit 2.
	AWDCH_3   CR1 = 0x08 << 0  //  Bit 3.
	AWDCH_4   CR1 = 0x10 << 0  //  Bit 4.
	EOCIE     CR1 = 0x01 << 5  //+ Interrupt enable for EOC.
	AWDIE     CR1 = 0x01 << 6  //+ Analog Watchdog interrupt enable.
	JEOCIE    CR1 = 0x01 << 7  //+ Interrupt enable for injected channels.
	SCAN      CR1 = 0x01 << 8  //+ Scan mode.
	AWDSGL    CR1 = 0x01 << 9  //+ Enable the watchdog on a single channel in scan mode.
	JAUTO     CR1 = 0x01 << 10 //+ Automatic injected group conversion.
	DISCEN    CR1 = 0x01 << 11 //+ Discontinuous mode on regular channels.
	JDISCEN   CR1 = 0x01 << 12 //+ Discontinuous mode on injected channels.
	DISCNUM   CR1 = 0x07 << 13 //+ DISCNUM[2:0] bits (Discontinuous mode channel count).
	DISCNUM_0 CR1 = 0x01 << 13 //  Bit 0.
	DISCNUM_1 CR1 = 0x02 << 13 //  Bit 1.
	DISCNUM_2 CR1 = 0x04 << 13 //  Bit 2.
	DUALMOD   CR1 = 0x0F << 16 //+ DUALMOD[3:0] bits (Dual mode selection).
	DUALMOD_0 CR1 = 0x01 << 16 //  Bit 0.
	DUALMOD_1 CR1 = 0x02 << 16 //  Bit 1.
	DUALMOD_2 CR1 = 0x04 << 16 //  Bit 2.
	DUALMOD_3 CR1 = 0x08 << 16 //  Bit 3.
	JAWDEN    CR1 = 0x01 << 22 //+ Analog watchdog enable on injected channels.
	AWDEN     CR1 = 0x01 << 23 //+ Analog watchdog enable on regular channels.
)

func (CR1) Field

func (b CR1) Field(mask CR1) int

func (CR1) J

func (mask CR1) J(v int) CR1

type CR2

type CR2 uint32
const (
	ADON      CR2 = 0x01 << 0  //+ A/D Converter ON / OFF.
	CONT      CR2 = 0x01 << 1  //+ Continuous Conversion.
	CAL       CR2 = 0x01 << 2  //+ A/D Calibration.
	RSTCAL    CR2 = 0x01 << 3  //+ Reset Calibration.
	DMA       CR2 = 0x01 << 8  //+ Direct Memory access mode.
	ALIGN     CR2 = 0x01 << 11 //+ Data Alignment.
	JEXTSEL   CR2 = 0x07 << 12 //+ JEXTSEL[2:0] bits (External event select for injected group).
	JEXTSEL_0 CR2 = 0x01 << 12 //  Bit 0.
	JEXTSEL_1 CR2 = 0x02 << 12 //  Bit 1.
	JEXTSEL_2 CR2 = 0x04 << 12 //  Bit 2.
	JEXTTRIG  CR2 = 0x01 << 15 //+ External Trigger Conversion mode for injected channels.
	EXTSEL    CR2 = 0x07 << 17 //+ EXTSEL[2:0] bits (External Event Select for regular group).
	EXTSEL_0  CR2 = 0x01 << 17 //  Bit 0.
	EXTSEL_1  CR2 = 0x02 << 17 //  Bit 1.
	EXTSEL_2  CR2 = 0x04 << 17 //  Bit 2.
	EXTTRIG   CR2 = 0x01 << 20 //+ External Trigger Conversion mode for regular channels.
	JSWSTART  CR2 = 0x01 << 21 //+ Start Conversion of injected channels.
	SWSTART   CR2 = 0x01 << 22 //+ Start Conversion of regular channels.
	TSVREFE   CR2 = 0x01 << 23 //+ Temperature Sensor and VREFINT Enable.
)

func (CR2) Field

func (b CR2) Field(mask CR2) int

func (CR2) J

func (mask CR2) J(v int) CR2

type DR

type DR uint32
const (
	DATA     DR = 0xFFFF << 0  //+ Regular data.
	ADC2DATA DR = 0xFFFF << 16 //+ ADC2 data.
)

func (DR) Field

func (b DR) Field(mask DR) int

func (DR) J

func (mask DR) J(v int) DR

type HTR

type HTR uint32
const (
	HT HTR = 0xFFF << 0 //+ Analog watchdog high threshold.
)

func (HTR) Field

func (b HTR) Field(mask HTR) int

func (HTR) J

func (mask HTR) J(v int) HTR

type JDR

type JDR uint32
const (
	JDATA JDR = 0xFFFF << 0 //+ Injected data.
)

func (JDR) Field

func (b JDR) Field(mask JDR) int

func (JDR) J

func (mask JDR) J(v int) JDR

type JOFR1

type JOFR1 uint32
const (
	JOFFSET1 JOFR1 = 0xFFF << 0 //+ Data offset for injected channel 1.
)

func (JOFR1) Field

func (b JOFR1) Field(mask JOFR1) int

func (JOFR1) J

func (mask JOFR1) J(v int) JOFR1

type JOFR2

type JOFR2 uint32
const (
	JOFFSET2 JOFR2 = 0xFFF << 0 //+ Data offset for injected channel 2.
)

func (JOFR2) Field

func (b JOFR2) Field(mask JOFR2) int

func (JOFR2) J

func (mask JOFR2) J(v int) JOFR2

type JOFR3

type JOFR3 uint32
const (
	JOFFSET3 JOFR3 = 0xFFF << 0 //+ Data offset for injected channel 3.
)

func (JOFR3) Field

func (b JOFR3) Field(mask JOFR3) int

func (JOFR3) J

func (mask JOFR3) J(v int) JOFR3

type JOFR4

type JOFR4 uint32
const (
	JOFFSET4 JOFR4 = 0xFFF << 0 //+ Data offset for injected channel 4.
)

func (JOFR4) Field

func (b JOFR4) Field(mask JOFR4) int

func (JOFR4) J

func (mask JOFR4) J(v int) JOFR4

type JSQR

type JSQR uint32
const (
	JSQ1   JSQR = 0x1F << 0  //+ JSQ1[4:0] bits (1st conversion in injected sequence).
	JSQ1_0 JSQR = 0x01 << 0  //  Bit 0.
	JSQ1_1 JSQR = 0x02 << 0  //  Bit 1.
	JSQ1_2 JSQR = 0x04 << 0  //  Bit 2.
	JSQ1_3 JSQR = 0x08 << 0  //  Bit 3.
	JSQ1_4 JSQR = 0x10 << 0  //  Bit 4.
	JSQ2   JSQR = 0x1F << 5  //+ JSQ2[4:0] bits (2nd conversion in injected sequence).
	JSQ2_0 JSQR = 0x01 << 5  //  Bit 0.
	JSQ2_1 JSQR = 0x02 << 5  //  Bit 1.
	JSQ2_2 JSQR = 0x04 << 5  //  Bit 2.
	JSQ2_3 JSQR = 0x08 << 5  //  Bit 3.
	JSQ2_4 JSQR = 0x10 << 5  //  Bit 4.
	JSQ3   JSQR = 0x1F << 10 //+ JSQ3[4:0] bits (3rd conversion in injected sequence).
	JSQ3_0 JSQR = 0x01 << 10 //  Bit 0.
	JSQ3_1 JSQR = 0x02 << 10 //  Bit 1.
	JSQ3_2 JSQR = 0x04 << 10 //  Bit 2.
	JSQ3_3 JSQR = 0x08 << 10 //  Bit 3.
	JSQ3_4 JSQR = 0x10 << 10 //  Bit 4.
	JSQ4   JSQR = 0x1F << 15 //+ JSQ4[4:0] bits (4th conversion in injected sequence).
	JSQ4_0 JSQR = 0x01 << 15 //  Bit 0.
	JSQ4_1 JSQR = 0x02 << 15 //  Bit 1.
	JSQ4_2 JSQR = 0x04 << 15 //  Bit 2.
	JSQ4_3 JSQR = 0x08 << 15 //  Bit 3.
	JSQ4_4 JSQR = 0x10 << 15 //  Bit 4.
	JL     JSQR = 0x03 << 20 //+ JL[1:0] bits (Injected Sequence length).
	JL_0   JSQR = 0x01 << 20 //  Bit 0.
	JL_1   JSQR = 0x02 << 20 //  Bit 1.
)

func (JSQR) Field

func (b JSQR) Field(mask JSQR) int

func (JSQR) J

func (mask JSQR) J(v int) JSQR

type LTR

type LTR uint32
const (
	LT LTR = 0xFFF << 0 //+ Analog watchdog low threshold.
)

func (LTR) Field

func (b LTR) Field(mask LTR) int

func (LTR) J

func (mask LTR) J(v int) LTR

type RCR1

type RCR1 struct{ mmio.U32 }

func (*RCR1) AtomicClearBits

func (r *RCR1) AtomicClearBits(mask CR1)

func (*RCR1) AtomicSetBits

func (r *RCR1) AtomicSetBits(mask CR1)

func (*RCR1) AtomicStoreBits

func (r *RCR1) AtomicStoreBits(mask, b CR1)

func (*RCR1) Bits

func (r *RCR1) Bits(mask CR1) CR1

func (*RCR1) ClearBits

func (r *RCR1) ClearBits(mask CR1)

func (*RCR1) Load

func (r *RCR1) Load() CR1

func (*RCR1) SetBits

func (r *RCR1) SetBits(mask CR1)

func (*RCR1) Store

func (r *RCR1) Store(b CR1)

func (*RCR1) StoreBits

func (r *RCR1) StoreBits(mask, b CR1)

type RCR2

type RCR2 struct{ mmio.U32 }

func (*RCR2) AtomicClearBits

func (r *RCR2) AtomicClearBits(mask CR2)

func (*RCR2) AtomicSetBits

func (r *RCR2) AtomicSetBits(mask CR2)

func (*RCR2) AtomicStoreBits

func (r *RCR2) AtomicStoreBits(mask, b CR2)

func (*RCR2) Bits

func (r *RCR2) Bits(mask CR2) CR2

func (*RCR2) ClearBits

func (r *RCR2) ClearBits(mask CR2)

func (*RCR2) Load

func (r *RCR2) Load() CR2

func (*RCR2) SetBits

func (r *RCR2) SetBits(mask CR2)

func (*RCR2) Store

func (r *RCR2) Store(b CR2)

func (*RCR2) StoreBits

func (r *RCR2) StoreBits(mask, b CR2)

type RDR

type RDR struct{ mmio.U32 }

func (*RDR) AtomicClearBits

func (r *RDR) AtomicClearBits(mask DR)

func (*RDR) AtomicSetBits

func (r *RDR) AtomicSetBits(mask DR)

func (*RDR) AtomicStoreBits

func (r *RDR) AtomicStoreBits(mask, b DR)

func (*RDR) Bits

func (r *RDR) Bits(mask DR) DR

func (*RDR) ClearBits

func (r *RDR) ClearBits(mask DR)

func (*RDR) Load

func (r *RDR) Load() DR

func (*RDR) SetBits

func (r *RDR) SetBits(mask DR)

func (*RDR) Store

func (r *RDR) Store(b DR)

func (*RDR) StoreBits

func (r *RDR) StoreBits(mask, b DR)

type RHTR

type RHTR struct{ mmio.U32 }

func (*RHTR) AtomicClearBits

func (r *RHTR) AtomicClearBits(mask HTR)

func (*RHTR) AtomicSetBits

func (r *RHTR) AtomicSetBits(mask HTR)

func (*RHTR) AtomicStoreBits

func (r *RHTR) AtomicStoreBits(mask, b HTR)

func (*RHTR) Bits

func (r *RHTR) Bits(mask HTR) HTR

func (*RHTR) ClearBits

func (r *RHTR) ClearBits(mask HTR)

func (*RHTR) Load

func (r *RHTR) Load() HTR

func (*RHTR) SetBits

func (r *RHTR) SetBits(mask HTR)

func (*RHTR) Store

func (r *RHTR) Store(b HTR)

func (*RHTR) StoreBits

func (r *RHTR) StoreBits(mask, b HTR)

type RJDR

type RJDR struct{ mmio.U32 }

func (*RJDR) AtomicClearBits

func (r *RJDR) AtomicClearBits(mask JDR)

func (*RJDR) AtomicSetBits

func (r *RJDR) AtomicSetBits(mask JDR)

func (*RJDR) AtomicStoreBits

func (r *RJDR) AtomicStoreBits(mask, b JDR)

func (*RJDR) Bits

func (r *RJDR) Bits(mask JDR) JDR

func (*RJDR) ClearBits

func (r *RJDR) ClearBits(mask JDR)

func (*RJDR) Load

func (r *RJDR) Load() JDR

func (*RJDR) SetBits

func (r *RJDR) SetBits(mask JDR)

func (*RJDR) Store

func (r *RJDR) Store(b JDR)

func (*RJDR) StoreBits

func (r *RJDR) StoreBits(mask, b JDR)

type RJOFR1

type RJOFR1 struct{ mmio.U32 }

func (*RJOFR1) AtomicClearBits

func (r *RJOFR1) AtomicClearBits(mask JOFR1)

func (*RJOFR1) AtomicSetBits

func (r *RJOFR1) AtomicSetBits(mask JOFR1)

func (*RJOFR1) AtomicStoreBits

func (r *RJOFR1) AtomicStoreBits(mask, b JOFR1)

func (*RJOFR1) Bits

func (r *RJOFR1) Bits(mask JOFR1) JOFR1

func (*RJOFR1) ClearBits

func (r *RJOFR1) ClearBits(mask JOFR1)

func (*RJOFR1) Load

func (r *RJOFR1) Load() JOFR1

func (*RJOFR1) SetBits

func (r *RJOFR1) SetBits(mask JOFR1)

func (*RJOFR1) Store

func (r *RJOFR1) Store(b JOFR1)

func (*RJOFR1) StoreBits

func (r *RJOFR1) StoreBits(mask, b JOFR1)

type RJOFR2

type RJOFR2 struct{ mmio.U32 }

func (*RJOFR2) AtomicClearBits

func (r *RJOFR2) AtomicClearBits(mask JOFR2)

func (*RJOFR2) AtomicSetBits

func (r *RJOFR2) AtomicSetBits(mask JOFR2)

func (*RJOFR2) AtomicStoreBits

func (r *RJOFR2) AtomicStoreBits(mask, b JOFR2)

func (*RJOFR2) Bits

func (r *RJOFR2) Bits(mask JOFR2) JOFR2

func (*RJOFR2) ClearBits

func (r *RJOFR2) ClearBits(mask JOFR2)

func (*RJOFR2) Load

func (r *RJOFR2) Load() JOFR2

func (*RJOFR2) SetBits

func (r *RJOFR2) SetBits(mask JOFR2)

func (*RJOFR2) Store

func (r *RJOFR2) Store(b JOFR2)

func (*RJOFR2) StoreBits

func (r *RJOFR2) StoreBits(mask, b JOFR2)

type RJOFR3

type RJOFR3 struct{ mmio.U32 }

func (*RJOFR3) AtomicClearBits

func (r *RJOFR3) AtomicClearBits(mask JOFR3)

func (*RJOFR3) AtomicSetBits

func (r *RJOFR3) AtomicSetBits(mask JOFR3)

func (*RJOFR3) AtomicStoreBits

func (r *RJOFR3) AtomicStoreBits(mask, b JOFR3)

func (*RJOFR3) Bits

func (r *RJOFR3) Bits(mask JOFR3) JOFR3

func (*RJOFR3) ClearBits

func (r *RJOFR3) ClearBits(mask JOFR3)

func (*RJOFR3) Load

func (r *RJOFR3) Load() JOFR3

func (*RJOFR3) SetBits

func (r *RJOFR3) SetBits(mask JOFR3)

func (*RJOFR3) Store

func (r *RJOFR3) Store(b JOFR3)

func (*RJOFR3) StoreBits

func (r *RJOFR3) StoreBits(mask, b JOFR3)

type RJOFR4

type RJOFR4 struct{ mmio.U32 }

func (*RJOFR4) AtomicClearBits

func (r *RJOFR4) AtomicClearBits(mask JOFR4)

func (*RJOFR4) AtomicSetBits

func (r *RJOFR4) AtomicSetBits(mask JOFR4)

func (*RJOFR4) AtomicStoreBits

func (r *RJOFR4) AtomicStoreBits(mask, b JOFR4)

func (*RJOFR4) Bits

func (r *RJOFR4) Bits(mask JOFR4) JOFR4

func (*RJOFR4) ClearBits

func (r *RJOFR4) ClearBits(mask JOFR4)

func (*RJOFR4) Load

func (r *RJOFR4) Load() JOFR4

func (*RJOFR4) SetBits

func (r *RJOFR4) SetBits(mask JOFR4)

func (*RJOFR4) Store

func (r *RJOFR4) Store(b JOFR4)

func (*RJOFR4) StoreBits

func (r *RJOFR4) StoreBits(mask, b JOFR4)

type RJSQR

type RJSQR struct{ mmio.U32 }

func (*RJSQR) AtomicClearBits

func (r *RJSQR) AtomicClearBits(mask JSQR)

func (*RJSQR) AtomicSetBits

func (r *RJSQR) AtomicSetBits(mask JSQR)

func (*RJSQR) AtomicStoreBits

func (r *RJSQR) AtomicStoreBits(mask, b JSQR)

func (*RJSQR) Bits

func (r *RJSQR) Bits(mask JSQR) JSQR

func (*RJSQR) ClearBits

func (r *RJSQR) ClearBits(mask JSQR)

func (*RJSQR) Load

func (r *RJSQR) Load() JSQR

func (*RJSQR) SetBits

func (r *RJSQR) SetBits(mask JSQR)

func (*RJSQR) Store

func (r *RJSQR) Store(b JSQR)

func (*RJSQR) StoreBits

func (r *RJSQR) StoreBits(mask, b JSQR)

type RLTR

type RLTR struct{ mmio.U32 }

func (*RLTR) AtomicClearBits

func (r *RLTR) AtomicClearBits(mask LTR)

func (*RLTR) AtomicSetBits

func (r *RLTR) AtomicSetBits(mask LTR)

func (*RLTR) AtomicStoreBits

func (r *RLTR) AtomicStoreBits(mask, b LTR)

func (*RLTR) Bits

func (r *RLTR) Bits(mask LTR) LTR

func (*RLTR) ClearBits

func (r *RLTR) ClearBits(mask LTR)

func (*RLTR) Load

func (r *RLTR) Load() LTR

func (*RLTR) SetBits

func (r *RLTR) SetBits(mask LTR)

func (*RLTR) Store

func (r *RLTR) Store(b LTR)

func (*RLTR) StoreBits

func (r *RLTR) StoreBits(mask, b LTR)

type RMCR1

type RMCR1 struct{ mmio.UM32 }

func (RMCR1) Load

func (rm RMCR1) Load() CR1

func (RMCR1) Store

func (rm RMCR1) Store(b CR1)

type RMCR2

type RMCR2 struct{ mmio.UM32 }

func (RMCR2) Load

func (rm RMCR2) Load() CR2

func (RMCR2) Store

func (rm RMCR2) Store(b CR2)

type RMDR

type RMDR struct{ mmio.UM32 }

func (RMDR) Load

func (rm RMDR) Load() DR

func (RMDR) Store

func (rm RMDR) Store(b DR)

type RMHTR

type RMHTR struct{ mmio.UM32 }

func (RMHTR) Load

func (rm RMHTR) Load() HTR

func (RMHTR) Store

func (rm RMHTR) Store(b HTR)

type RMJDR

type RMJDR struct{ mmio.UM32 }

func (RMJDR) Load

func (rm RMJDR) Load() JDR

func (RMJDR) Store

func (rm RMJDR) Store(b JDR)

type RMJOFR1

type RMJOFR1 struct{ mmio.UM32 }

func (RMJOFR1) Load

func (rm RMJOFR1) Load() JOFR1

func (RMJOFR1) Store

func (rm RMJOFR1) Store(b JOFR1)

type RMJOFR2

type RMJOFR2 struct{ mmio.UM32 }

func (RMJOFR2) Load

func (rm RMJOFR2) Load() JOFR2

func (RMJOFR2) Store

func (rm RMJOFR2) Store(b JOFR2)

type RMJOFR3

type RMJOFR3 struct{ mmio.UM32 }

func (RMJOFR3) Load

func (rm RMJOFR3) Load() JOFR3

func (RMJOFR3) Store

func (rm RMJOFR3) Store(b JOFR3)

type RMJOFR4

type RMJOFR4 struct{ mmio.UM32 }

func (RMJOFR4) Load

func (rm RMJOFR4) Load() JOFR4

func (RMJOFR4) Store

func (rm RMJOFR4) Store(b JOFR4)

type RMJSQR

type RMJSQR struct{ mmio.UM32 }

func (RMJSQR) Load

func (rm RMJSQR) Load() JSQR

func (RMJSQR) Store

func (rm RMJSQR) Store(b JSQR)

type RMLTR

type RMLTR struct{ mmio.UM32 }

func (RMLTR) Load

func (rm RMLTR) Load() LTR

func (RMLTR) Store

func (rm RMLTR) Store(b LTR)

type RMSMPR1

type RMSMPR1 struct{ mmio.UM32 }

func (RMSMPR1) Load

func (rm RMSMPR1) Load() SMPR1

func (RMSMPR1) Store

func (rm RMSMPR1) Store(b SMPR1)

type RMSMPR2

type RMSMPR2 struct{ mmio.UM32 }

func (RMSMPR2) Load

func (rm RMSMPR2) Load() SMPR2

func (RMSMPR2) Store

func (rm RMSMPR2) Store(b SMPR2)

type RMSQR1

type RMSQR1 struct{ mmio.UM32 }

func (RMSQR1) Load

func (rm RMSQR1) Load() SQR1

func (RMSQR1) Store

func (rm RMSQR1) Store(b SQR1)

type RMSQR2

type RMSQR2 struct{ mmio.UM32 }

func (RMSQR2) Load

func (rm RMSQR2) Load() SQR2

func (RMSQR2) Store

func (rm RMSQR2) Store(b SQR2)

type RMSQR3

type RMSQR3 struct{ mmio.UM32 }

func (RMSQR3) Load

func (rm RMSQR3) Load() SQR3

func (RMSQR3) Store

func (rm RMSQR3) Store(b SQR3)

type RMSR

type RMSR struct{ mmio.UM32 }

func (RMSR) Load

func (rm RMSR) Load() SR

func (RMSR) Store

func (rm RMSR) Store(b SR)

type RSMPR1

type RSMPR1 struct{ mmio.U32 }

func (*RSMPR1) AtomicClearBits

func (r *RSMPR1) AtomicClearBits(mask SMPR1)

func (*RSMPR1) AtomicSetBits

func (r *RSMPR1) AtomicSetBits(mask SMPR1)

func (*RSMPR1) AtomicStoreBits

func (r *RSMPR1) AtomicStoreBits(mask, b SMPR1)

func (*RSMPR1) Bits

func (r *RSMPR1) Bits(mask SMPR1) SMPR1

func (*RSMPR1) ClearBits

func (r *RSMPR1) ClearBits(mask SMPR1)

func (*RSMPR1) Load

func (r *RSMPR1) Load() SMPR1

func (*RSMPR1) SetBits

func (r *RSMPR1) SetBits(mask SMPR1)

func (*RSMPR1) Store

func (r *RSMPR1) Store(b SMPR1)

func (*RSMPR1) StoreBits

func (r *RSMPR1) StoreBits(mask, b SMPR1)

type RSMPR2

type RSMPR2 struct{ mmio.U32 }

func (*RSMPR2) AtomicClearBits

func (r *RSMPR2) AtomicClearBits(mask SMPR2)

func (*RSMPR2) AtomicSetBits

func (r *RSMPR2) AtomicSetBits(mask SMPR2)

func (*RSMPR2) AtomicStoreBits

func (r *RSMPR2) AtomicStoreBits(mask, b SMPR2)

func (*RSMPR2) Bits

func (r *RSMPR2) Bits(mask SMPR2) SMPR2

func (*RSMPR2) ClearBits

func (r *RSMPR2) ClearBits(mask SMPR2)

func (*RSMPR2) Load

func (r *RSMPR2) Load() SMPR2

func (*RSMPR2) SetBits

func (r *RSMPR2) SetBits(mask SMPR2)

func (*RSMPR2) Store

func (r *RSMPR2) Store(b SMPR2)

func (*RSMPR2) StoreBits

func (r *RSMPR2) StoreBits(mask, b SMPR2)

type RSQR1

type RSQR1 struct{ mmio.U32 }

func (*RSQR1) AtomicClearBits

func (r *RSQR1) AtomicClearBits(mask SQR1)

func (*RSQR1) AtomicSetBits

func (r *RSQR1) AtomicSetBits(mask SQR1)

func (*RSQR1) AtomicStoreBits

func (r *RSQR1) AtomicStoreBits(mask, b SQR1)

func (*RSQR1) Bits

func (r *RSQR1) Bits(mask SQR1) SQR1

func (*RSQR1) ClearBits

func (r *RSQR1) ClearBits(mask SQR1)

func (*RSQR1) Load

func (r *RSQR1) Load() SQR1

func (*RSQR1) SetBits

func (r *RSQR1) SetBits(mask SQR1)

func (*RSQR1) Store

func (r *RSQR1) Store(b SQR1)

func (*RSQR1) StoreBits

func (r *RSQR1) StoreBits(mask, b SQR1)

type RSQR2

type RSQR2 struct{ mmio.U32 }

func (*RSQR2) AtomicClearBits

func (r *RSQR2) AtomicClearBits(mask SQR2)

func (*RSQR2) AtomicSetBits

func (r *RSQR2) AtomicSetBits(mask SQR2)

func (*RSQR2) AtomicStoreBits

func (r *RSQR2) AtomicStoreBits(mask, b SQR2)

func (*RSQR2) Bits

func (r *RSQR2) Bits(mask SQR2) SQR2

func (*RSQR2) ClearBits

func (r *RSQR2) ClearBits(mask SQR2)

func (*RSQR2) Load

func (r *RSQR2) Load() SQR2

func (*RSQR2) SetBits

func (r *RSQR2) SetBits(mask SQR2)

func (*RSQR2) Store

func (r *RSQR2) Store(b SQR2)

func (*RSQR2) StoreBits

func (r *RSQR2) StoreBits(mask, b SQR2)

type RSQR3

type RSQR3 struct{ mmio.U32 }

func (*RSQR3) AtomicClearBits

func (r *RSQR3) AtomicClearBits(mask SQR3)

func (*RSQR3) AtomicSetBits

func (r *RSQR3) AtomicSetBits(mask SQR3)

func (*RSQR3) AtomicStoreBits

func (r *RSQR3) AtomicStoreBits(mask, b SQR3)

func (*RSQR3) Bits

func (r *RSQR3) Bits(mask SQR3) SQR3

func (*RSQR3) ClearBits

func (r *RSQR3) ClearBits(mask SQR3)

func (*RSQR3) Load

func (r *RSQR3) Load() SQR3

func (*RSQR3) SetBits

func (r *RSQR3) SetBits(mask SQR3)

func (*RSQR3) Store

func (r *RSQR3) Store(b SQR3)

func (*RSQR3) StoreBits

func (r *RSQR3) StoreBits(mask, b SQR3)

type RSR

type RSR struct{ mmio.U32 }

func (*RSR) AtomicClearBits

func (r *RSR) AtomicClearBits(mask SR)

func (*RSR) AtomicSetBits

func (r *RSR) AtomicSetBits(mask SR)

func (*RSR) AtomicStoreBits

func (r *RSR) AtomicStoreBits(mask, b SR)

func (*RSR) Bits

func (r *RSR) Bits(mask SR) SR

func (*RSR) ClearBits

func (r *RSR) ClearBits(mask SR)

func (*RSR) Load

func (r *RSR) Load() SR

func (*RSR) SetBits

func (r *RSR) SetBits(mask SR)

func (*RSR) Store

func (r *RSR) Store(b SR)

func (*RSR) StoreBits

func (r *RSR) StoreBits(mask, b SR)

type SMPR1

type SMPR1 uint32
const (
	SMP10   SMPR1 = 0x07 << 0  //+ SMP10[2:0] bits (Channel 10 Sample time selection).
	SMP10_0 SMPR1 = 0x01 << 0  //  Bit 0.
	SMP10_1 SMPR1 = 0x02 << 0  //  Bit 1.
	SMP10_2 SMPR1 = 0x04 << 0  //  Bit 2.
	SMP11   SMPR1 = 0x07 << 3  //+ SMP11[2:0] bits (Channel 11 Sample time selection).
	SMP11_0 SMPR1 = 0x01 << 3  //  Bit 0.
	SMP11_1 SMPR1 = 0x02 << 3  //  Bit 1.
	SMP11_2 SMPR1 = 0x04 << 3  //  Bit 2.
	SMP12   SMPR1 = 0x07 << 6  //+ SMP12[2:0] bits (Channel 12 Sample time selection).
	SMP12_0 SMPR1 = 0x01 << 6  //  Bit 0.
	SMP12_1 SMPR1 = 0x02 << 6  //  Bit 1.
	SMP12_2 SMPR1 = 0x04 << 6  //  Bit 2.
	SMP13   SMPR1 = 0x07 << 9  //+ SMP13[2:0] bits (Channel 13 Sample time selection).
	SMP13_0 SMPR1 = 0x01 << 9  //  Bit 0.
	SMP13_1 SMPR1 = 0x02 << 9  //  Bit 1.
	SMP13_2 SMPR1 = 0x04 << 9  //  Bit 2.
	SMP14   SMPR1 = 0x07 << 12 //+ SMP14[2:0] bits (Channel 14 Sample time selection).
	SMP14_0 SMPR1 = 0x01 << 12 //  Bit 0.
	SMP14_1 SMPR1 = 0x02 << 12 //  Bit 1.
	SMP14_2 SMPR1 = 0x04 << 12 //  Bit 2.
	SMP15   SMPR1 = 0x07 << 15 //+ SMP15[2:0] bits (Channel 15 Sample time selection).
	SMP15_0 SMPR1 = 0x01 << 15 //  Bit 0.
	SMP15_1 SMPR1 = 0x02 << 15 //  Bit 1.
	SMP15_2 SMPR1 = 0x04 << 15 //  Bit 2.
	SMP16   SMPR1 = 0x07 << 18 //+ SMP16[2:0] bits (Channel 16 Sample time selection).
	SMP16_0 SMPR1 = 0x01 << 18 //  Bit 0.
	SMP16_1 SMPR1 = 0x02 << 18 //  Bit 1.
	SMP16_2 SMPR1 = 0x04 << 18 //  Bit 2.
	SMP17   SMPR1 = 0x07 << 21 //+ SMP17[2:0] bits (Channel 17 Sample time selection).
	SMP17_0 SMPR1 = 0x01 << 21 //  Bit 0.
	SMP17_1 SMPR1 = 0x02 << 21 //  Bit 1.
	SMP17_2 SMPR1 = 0x04 << 21 //  Bit 2.
)

func (SMPR1) Field

func (b SMPR1) Field(mask SMPR1) int

func (SMPR1) J

func (mask SMPR1) J(v int) SMPR1

type SMPR2

type SMPR2 uint32
const (
	SMP0   SMPR2 = 0x07 << 0  //+ SMP0[2:0] bits (Channel 0 Sample time selection).
	SMP0_0 SMPR2 = 0x01 << 0  //  Bit 0.
	SMP0_1 SMPR2 = 0x02 << 0  //  Bit 1.
	SMP0_2 SMPR2 = 0x04 << 0  //  Bit 2.
	SMP1   SMPR2 = 0x07 << 3  //+ SMP1[2:0] bits (Channel 1 Sample time selection).
	SMP1_0 SMPR2 = 0x01 << 3  //  Bit 0.
	SMP1_1 SMPR2 = 0x02 << 3  //  Bit 1.
	SMP1_2 SMPR2 = 0x04 << 3  //  Bit 2.
	SMP2   SMPR2 = 0x07 << 6  //+ SMP2[2:0] bits (Channel 2 Sample time selection).
	SMP2_0 SMPR2 = 0x01 << 6  //  Bit 0.
	SMP2_1 SMPR2 = 0x02 << 6  //  Bit 1.
	SMP2_2 SMPR2 = 0x04 << 6  //  Bit 2.
	SMP3   SMPR2 = 0x07 << 9  //+ SMP3[2:0] bits (Channel 3 Sample time selection).
	SMP3_0 SMPR2 = 0x01 << 9  //  Bit 0.
	SMP3_1 SMPR2 = 0x02 << 9  //  Bit 1.
	SMP3_2 SMPR2 = 0x04 << 9  //  Bit 2.
	SMP4   SMPR2 = 0x07 << 12 //+ SMP4[2:0] bits (Channel 4 Sample time selection).
	SMP4_0 SMPR2 = 0x01 << 12 //  Bit 0.
	SMP4_1 SMPR2 = 0x02 << 12 //  Bit 1.
	SMP4_2 SMPR2 = 0x04 << 12 //  Bit 2.
	SMP5   SMPR2 = 0x07 << 15 //+ SMP5[2:0] bits (Channel 5 Sample time selection).
	SMP5_0 SMPR2 = 0x01 << 15 //  Bit 0.
	SMP5_1 SMPR2 = 0x02 << 15 //  Bit 1.
	SMP5_2 SMPR2 = 0x04 << 15 //  Bit 2.
	SMP6   SMPR2 = 0x07 << 18 //+ SMP6[2:0] bits (Channel 6 Sample time selection).
	SMP6_0 SMPR2 = 0x01 << 18 //  Bit 0.
	SMP6_1 SMPR2 = 0x02 << 18 //  Bit 1.
	SMP6_2 SMPR2 = 0x04 << 18 //  Bit 2.
	SMP7   SMPR2 = 0x07 << 21 //+ SMP7[2:0] bits (Channel 7 Sample time selection).
	SMP7_0 SMPR2 = 0x01 << 21 //  Bit 0.
	SMP7_1 SMPR2 = 0x02 << 21 //  Bit 1.
	SMP7_2 SMPR2 = 0x04 << 21 //  Bit 2.
	SMP8   SMPR2 = 0x07 << 24 //+ SMP8[2:0] bits (Channel 8 Sample time selection).
	SMP8_0 SMPR2 = 0x01 << 24 //  Bit 0.
	SMP8_1 SMPR2 = 0x02 << 24 //  Bit 1.
	SMP8_2 SMPR2 = 0x04 << 24 //  Bit 2.
	SMP9   SMPR2 = 0x07 << 27 //+ SMP9[2:0] bits (Channel 9 Sample time selection).
	SMP9_0 SMPR2 = 0x01 << 27 //  Bit 0.
	SMP9_1 SMPR2 = 0x02 << 27 //  Bit 1.
	SMP9_2 SMPR2 = 0x04 << 27 //  Bit 2.
)

func (SMPR2) Field

func (b SMPR2) Field(mask SMPR2) int

func (SMPR2) J

func (mask SMPR2) J(v int) SMPR2

type SQR1

type SQR1 uint32
const (
	SQ13   SQR1 = 0x1F << 0  //+ SQ13[4:0] bits (13th conversion in regular sequence).
	SQ13_0 SQR1 = 0x01 << 0  //  Bit 0.
	SQ13_1 SQR1 = 0x02 << 0  //  Bit 1.
	SQ13_2 SQR1 = 0x04 << 0  //  Bit 2.
	SQ13_3 SQR1 = 0x08 << 0  //  Bit 3.
	SQ13_4 SQR1 = 0x10 << 0  //  Bit 4.
	SQ14   SQR1 = 0x1F << 5  //+ SQ14[4:0] bits (14th conversion in regular sequence).
	SQ14_0 SQR1 = 0x01 << 5  //  Bit 0.
	SQ14_1 SQR1 = 0x02 << 5  //  Bit 1.
	SQ14_2 SQR1 = 0x04 << 5  //  Bit 2.
	SQ14_3 SQR1 = 0x08 << 5  //  Bit 3.
	SQ14_4 SQR1 = 0x10 << 5  //  Bit 4.
	SQ15   SQR1 = 0x1F << 10 //+ SQ15[4:0] bits (15th conversion in regular sequence).
	SQ15_0 SQR1 = 0x01 << 10 //  Bit 0.
	SQ15_1 SQR1 = 0x02 << 10 //  Bit 1.
	SQ15_2 SQR1 = 0x04 << 10 //  Bit 2.
	SQ15_3 SQR1 = 0x08 << 10 //  Bit 3.
	SQ15_4 SQR1 = 0x10 << 10 //  Bit 4.
	SQ16   SQR1 = 0x1F << 15 //+ SQ16[4:0] bits (16th conversion in regular sequence).
	SQ16_0 SQR1 = 0x01 << 15 //  Bit 0.
	SQ16_1 SQR1 = 0x02 << 15 //  Bit 1.
	SQ16_2 SQR1 = 0x04 << 15 //  Bit 2.
	SQ16_3 SQR1 = 0x08 << 15 //  Bit 3.
	SQ16_4 SQR1 = 0x10 << 15 //  Bit 4.
	L      SQR1 = 0x0F << 20 //+ L[3:0] bits (Regular channel sequence length).
	L_0    SQR1 = 0x01 << 20 //  Bit 0.
	L_1    SQR1 = 0x02 << 20 //  Bit 1.
	L_2    SQR1 = 0x04 << 20 //  Bit 2.
	L_3    SQR1 = 0x08 << 20 //  Bit 3.
)

func (SQR1) Field

func (b SQR1) Field(mask SQR1) int

func (SQR1) J

func (mask SQR1) J(v int) SQR1

type SQR2

type SQR2 uint32
const (
	SQ7    SQR2 = 0x1F << 0  //+ SQ7[4:0] bits (7th conversion in regular sequence).
	SQ7_0  SQR2 = 0x01 << 0  //  Bit 0.
	SQ7_1  SQR2 = 0x02 << 0  //  Bit 1.
	SQ7_2  SQR2 = 0x04 << 0  //  Bit 2.
	SQ7_3  SQR2 = 0x08 << 0  //  Bit 3.
	SQ7_4  SQR2 = 0x10 << 0  //  Bit 4.
	SQ8    SQR2 = 0x1F << 5  //+ SQ8[4:0] bits (8th conversion in regular sequence).
	SQ8_0  SQR2 = 0x01 << 5  //  Bit 0.
	SQ8_1  SQR2 = 0x02 << 5  //  Bit 1.
	SQ8_2  SQR2 = 0x04 << 5  //  Bit 2.
	SQ8_3  SQR2 = 0x08 << 5  //  Bit 3.
	SQ8_4  SQR2 = 0x10 << 5  //  Bit 4.
	SQ9    SQR2 = 0x1F << 10 //+ SQ9[4:0] bits (9th conversion in regular sequence).
	SQ9_0  SQR2 = 0x01 << 10 //  Bit 0.
	SQ9_1  SQR2 = 0x02 << 10 //  Bit 1.
	SQ9_2  SQR2 = 0x04 << 10 //  Bit 2.
	SQ9_3  SQR2 = 0x08 << 10 //  Bit 3.
	SQ9_4  SQR2 = 0x10 << 10 //  Bit 4.
	SQ10   SQR2 = 0x1F << 15 //+ SQ10[4:0] bits (10th conversion in regular sequence).
	SQ10_0 SQR2 = 0x01 << 15 //  Bit 0.
	SQ10_1 SQR2 = 0x02 << 15 //  Bit 1.
	SQ10_2 SQR2 = 0x04 << 15 //  Bit 2.
	SQ10_3 SQR2 = 0x08 << 15 //  Bit 3.
	SQ10_4 SQR2 = 0x10 << 15 //  Bit 4.
	SQ11   SQR2 = 0x1F << 20 //+ SQ11[4:0] bits (11th conversion in regular sequence).
	SQ11_0 SQR2 = 0x01 << 20 //  Bit 0.
	SQ11_1 SQR2 = 0x02 << 20 //  Bit 1.
	SQ11_2 SQR2 = 0x04 << 20 //  Bit 2.
	SQ11_3 SQR2 = 0x08 << 20 //  Bit 3.
	SQ11_4 SQR2 = 0x10 << 20 //  Bit 4.
	SQ12   SQR2 = 0x1F << 25 //+ SQ12[4:0] bits (12th conversion in regular sequence).
	SQ12_0 SQR2 = 0x01 << 25 //  Bit 0.
	SQ12_1 SQR2 = 0x02 << 25 //  Bit 1.
	SQ12_2 SQR2 = 0x04 << 25 //  Bit 2.
	SQ12_3 SQR2 = 0x08 << 25 //  Bit 3.
	SQ12_4 SQR2 = 0x10 << 25 //  Bit 4.
)

func (SQR2) Field

func (b SQR2) Field(mask SQR2) int

func (SQR2) J

func (mask SQR2) J(v int) SQR2

type SQR3

type SQR3 uint32
const (
	SQ1   SQR3 = 0x1F << 0  //+ SQ1[4:0] bits (1st conversion in regular sequence).
	SQ1_0 SQR3 = 0x01 << 0  //  Bit 0.
	SQ1_1 SQR3 = 0x02 << 0  //  Bit 1.
	SQ1_2 SQR3 = 0x04 << 0  //  Bit 2.
	SQ1_3 SQR3 = 0x08 << 0  //  Bit 3.
	SQ1_4 SQR3 = 0x10 << 0  //  Bit 4.
	SQ2   SQR3 = 0x1F << 5  //+ SQ2[4:0] bits (2nd conversion in regular sequence).
	SQ2_0 SQR3 = 0x01 << 5  //  Bit 0.
	SQ2_1 SQR3 = 0x02 << 5  //  Bit 1.
	SQ2_2 SQR3 = 0x04 << 5  //  Bit 2.
	SQ2_3 SQR3 = 0x08 << 5  //  Bit 3.
	SQ2_4 SQR3 = 0x10 << 5  //  Bit 4.
	SQ3   SQR3 = 0x1F << 10 //+ SQ3[4:0] bits (3rd conversion in regular sequence).
	SQ3_0 SQR3 = 0x01 << 10 //  Bit 0.
	SQ3_1 SQR3 = 0x02 << 10 //  Bit 1.
	SQ3_2 SQR3 = 0x04 << 10 //  Bit 2.
	SQ3_3 SQR3 = 0x08 << 10 //  Bit 3.
	SQ3_4 SQR3 = 0x10 << 10 //  Bit 4.
	SQ4   SQR3 = 0x1F << 15 //+ SQ4[4:0] bits (4th conversion in regular sequence).
	SQ4_0 SQR3 = 0x01 << 15 //  Bit 0.
	SQ4_1 SQR3 = 0x02 << 15 //  Bit 1.
	SQ4_2 SQR3 = 0x04 << 15 //  Bit 2.
	SQ4_3 SQR3 = 0x08 << 15 //  Bit 3.
	SQ4_4 SQR3 = 0x10 << 15 //  Bit 4.
	SQ5   SQR3 = 0x1F << 20 //+ SQ5[4:0] bits (5th conversion in regular sequence).
	SQ5_0 SQR3 = 0x01 << 20 //  Bit 0.
	SQ5_1 SQR3 = 0x02 << 20 //  Bit 1.
	SQ5_2 SQR3 = 0x04 << 20 //  Bit 2.
	SQ5_3 SQR3 = 0x08 << 20 //  Bit 3.
	SQ5_4 SQR3 = 0x10 << 20 //  Bit 4.
	SQ6   SQR3 = 0x1F << 25 //+ SQ6[4:0] bits (6th conversion in regular sequence).
	SQ6_0 SQR3 = 0x01 << 25 //  Bit 0.
	SQ6_1 SQR3 = 0x02 << 25 //  Bit 1.
	SQ6_2 SQR3 = 0x04 << 25 //  Bit 2.
	SQ6_3 SQR3 = 0x08 << 25 //  Bit 3.
	SQ6_4 SQR3 = 0x10 << 25 //  Bit 4.
)

func (SQR3) Field

func (b SQR3) Field(mask SQR3) int

func (SQR3) J

func (mask SQR3) J(v int) SQR3

type SR

type SR uint32
const (
	AWD   SR = 0x01 << 0 //+ Analog watchdog flag.
	EOC   SR = 0x01 << 1 //+ End of conversion.
	JEOC  SR = 0x01 << 2 //+ Injected channel end of conversion.
	JSTRT SR = 0x01 << 3 //+ Injected channel Start flag.
	STRT  SR = 0x01 << 4 //+ Regular channel Start flag.
)

func (SR) Field

func (b SR) Field(mask SR) int

func (SR) J

func (mask SR) J(v int) SR

Jump to

Keyboard shortcuts

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