Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock {
Show 28 fields pub isr: ISR, pub ier: IER, pub cr: CR, pub cfgr: CFGR, pub cfgr2: CFGR2, pub smpr1: SMPR1, pub smpr2: SMPR2, pub tr1: TR1, pub tr2: TR2, pub tr3: TR3, pub sqr1: SQR1, pub sqr2: SQR2, pub sqr3: SQR3, pub sqr4: SQR4, pub dr: DR, pub jsqr: JSQR, pub ofr1: OFR1, pub ofr2: OFR2, pub ofr3: OFR3, pub ofr4: OFR4, pub jdr1: JDR1, pub jdr2: JDR2, pub jdr3: JDR3, pub jdr4: JDR4, pub awd2cr: AWD2CR, pub awd3cr: AWD3CR, pub difsel: DIFSEL, pub calfact: CALFACT, /* private fields */
}
Expand description

Register block

Fields§

§isr: ISR

0x00 - interrupt and status register

§ier: IER

0x04 - interrupt enable register

§cr: CR

0x08 - control register

§cfgr: CFGR

0x0c - configuration register

§cfgr2: CFGR2

0x10 - configuration register

§smpr1: SMPR1

0x14 - sample time register 1

§smpr2: SMPR2

0x18 - sample time register 2

§tr1: TR1

0x20 - watchdog threshold register 1

§tr2: TR2

0x24 - watchdog threshold register

§tr3: TR3

0x28 - watchdog threshold register 3

§sqr1: SQR1

0x30 - regular sequence register 1

§sqr2: SQR2

0x34 - regular sequence register 2

§sqr3: SQR3

0x38 - regular sequence register 3

§sqr4: SQR4

0x3c - regular sequence register 4

§dr: DR

0x40 - regular Data Register

§jsqr: JSQR

0x4c - injected sequence register

§ofr1: OFR1

0x60 - offset register 1

§ofr2: OFR2

0x64 - offset register 2

§ofr3: OFR3

0x68 - offset register 3

§ofr4: OFR4

0x6c - offset register 4

§jdr1: JDR1

0x80 - injected data register 1

§jdr2: JDR2

0x84 - injected data register 2

§jdr3: JDR3

0x88 - injected data register 3

§jdr4: JDR4

0x8c - injected data register 4

§awd2cr: AWD2CR

0xa0 - Analog Watchdog 2 Configuration Register

§awd3cr: AWD3CR

0xa4 - Analog Watchdog 3 Configuration Register

§difsel: DIFSEL

0xb0 - Differential Mode Selection Register 2

§calfact: CALFACT

0xb4 - Calibration Factors

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.