Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock {
Show 20 fields pub sr: SR, pub cr1: CR1, pub cr2: CR2, pub smpr1: SMPR1, pub smpr2: SMPR2, pub jofr1: JOFR1, pub jofr2: JOFR2, pub jofr3: JOFR3, pub jofr4: JOFR4, pub htr: HTR, pub ltr: LTR, pub sqr1: SQR1, pub sqr2: SQR2, pub sqr3: SQR3, pub jsqr: JSQR, pub jdr1: JDR1, pub jdr2: JDR2, pub jdr3: JDR3, pub jdr4: JDR4, pub dr: DR,
}
Expand description

Register block

Fields§

§sr: SR

0x00 - status register

§cr1: CR1

0x04 - control register 1

§cr2: CR2

0x08 - control register 2

§smpr1: SMPR1

0x0c - sample time register 1

§smpr2: SMPR2

0x10 - sample time register 2

§jofr1: JOFR1

0x14 - injected channel data offset register x

§jofr2: JOFR2

0x18 - injected channel data offset register x

§jofr3: JOFR3

0x1c - injected channel data offset register x

§jofr4: JOFR4

0x20 - injected channel data offset register x

§htr: HTR

0x24 - watchdog higher threshold register

§ltr: LTR

0x28 - watchdog lower threshold register

§sqr1: SQR1

0x2c - regular sequence register 1

§sqr2: SQR2

0x30 - regular sequence register 2

§sqr3: SQR3

0x34 - regular sequence register 3

§jsqr: JSQR

0x38 - injected sequence register

§jdr1: JDR1

0x3c - injected data register x

§jdr2: JDR2

0x40 - injected data register x

§jdr3: JDR3

0x44 - injected data register x

§jdr4: JDR4

0x48 - injected data register x

§dr: DR

0x4c - regular data register

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.