#[repr(C)]
pub struct RegisterBlock {
Show 28 fields pub isr: Reg<ISR_SPEC>, pub ier: Reg<IER_SPEC>, pub cr: Reg<CR_SPEC>, pub cfgr: Reg<CFGR_SPEC>, pub cfgr2: Reg<CFGR2_SPEC>, pub smpr1: Reg<SMPR1_SPEC>, pub smpr2: Reg<SMPR2_SPEC>, pub tr1: Reg<TR1_SPEC>, pub tr2: Reg<TR2_SPEC>, pub tr3: Reg<TR3_SPEC>, pub sqr1: Reg<SQR1_SPEC>, pub sqr2: Reg<SQR2_SPEC>, pub sqr3: Reg<SQR3_SPEC>, pub sqr4: Reg<SQR4_SPEC>, pub dr: Reg<DR_SPEC>, pub jsqr: Reg<JSQR_SPEC>, pub ofr1: Reg<OFR1_SPEC>, pub ofr2: Reg<OFR2_SPEC>, pub ofr3: Reg<OFR3_SPEC>, pub ofr4: Reg<OFR4_SPEC>, pub jdr1: Reg<JDR1_SPEC>, pub jdr2: Reg<JDR2_SPEC>, pub jdr3: Reg<JDR3_SPEC>, pub jdr4: Reg<JDR4_SPEC>, pub awd2cr: Reg<AWD2CR_SPEC>, pub awd3cr: Reg<AWD3CR_SPEC>, pub difsel: Reg<DIFSEL_SPEC>, pub calfact: Reg<CALFACT_SPEC>, /* private fields */
}
Expand description

Register block

Fields

isr: Reg<ISR_SPEC>

0x00 - interrupt and status register

ier: Reg<IER_SPEC>

0x04 - interrupt enable register

cr: Reg<CR_SPEC>

0x08 - control register

cfgr: Reg<CFGR_SPEC>

0x0c - configuration register

cfgr2: Reg<CFGR2_SPEC>

0x10 - configuration register

smpr1: Reg<SMPR1_SPEC>

0x14 - sample time register 1

smpr2: Reg<SMPR2_SPEC>

0x18 - sample time register 2

tr1: Reg<TR1_SPEC>

0x20 - watchdog threshold register 1

tr2: Reg<TR2_SPEC>

0x24 - watchdog threshold register

tr3: Reg<TR3_SPEC>

0x28 - watchdog threshold register 3

sqr1: Reg<SQR1_SPEC>

0x30 - regular sequence register 1

sqr2: Reg<SQR2_SPEC>

0x34 - regular sequence register 2

sqr3: Reg<SQR3_SPEC>

0x38 - regular sequence register 3

sqr4: Reg<SQR4_SPEC>

0x3c - regular sequence register 4

dr: Reg<DR_SPEC>

0x40 - regular Data Register

jsqr: Reg<JSQR_SPEC>

0x4c - injected sequence register

ofr1: Reg<OFR1_SPEC>

0x60 - offset register 1

ofr2: Reg<OFR2_SPEC>

0x64 - offset register 2

ofr3: Reg<OFR3_SPEC>

0x68 - offset register 3

ofr4: Reg<OFR4_SPEC>

0x6c - offset register 4

jdr1: Reg<JDR1_SPEC>

0x80 - injected data register 1

jdr2: Reg<JDR2_SPEC>

0x84 - injected data register 2

jdr3: Reg<JDR3_SPEC>

0x88 - injected data register 3

jdr4: Reg<JDR4_SPEC>

0x8c - injected data register 4

awd2cr: Reg<AWD2CR_SPEC>

0xa0 - Analog Watchdog 2 Configuration Register

awd3cr: Reg<AWD3CR_SPEC>

0xa4 - Analog Watchdog 3 Configuration Register

difsel: Reg<DIFSEL_SPEC>

0xb0 - Differential Mode Selection Register 2

calfact: Reg<CALFACT_SPEC>

0xb4 - Calibration Factors

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.