Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock {
Show 14 fields pub sr: Reg<SR_SPEC>, pub cr1: Reg<CR1_SPEC>, pub cr2: Reg<CR2_SPEC>, pub smpr1: Reg<SMPR1_SPEC>, pub smpr2: Reg<SMPR2_SPEC>, pub jofr: [Reg<JOFR_SPEC>; 4], pub htr: Reg<HTR_SPEC>, pub ltr: Reg<LTR_SPEC>, pub sqr1: Reg<SQR1_SPEC>, pub sqr2: Reg<SQR2_SPEC>, pub sqr3: Reg<SQR3_SPEC>, pub jsqr: Reg<JSQR_SPEC>, pub jdr: [Reg<JDR_SPEC>; 4], pub dr: Reg<DR_SPEC>,
}
Expand description

Register block

Fields§

§sr: Reg<SR_SPEC>

0x00 - status register

§cr1: Reg<CR1_SPEC>

0x04 - control register 1

§cr2: Reg<CR2_SPEC>

0x08 - control register 2

§smpr1: Reg<SMPR1_SPEC>

0x0c - sample time register 1

§smpr2: Reg<SMPR2_SPEC>

0x10 - sample time register 2

§jofr: [Reg<JOFR_SPEC>; 4]

0x14..0x24 - injected channel data offset register x

§htr: Reg<HTR_SPEC>

0x24 - watchdog higher threshold register

§ltr: Reg<LTR_SPEC>

0x28 - watchdog lower threshold register

§sqr1: Reg<SQR1_SPEC>

0x2c - regular sequence register 1

§sqr2: Reg<SQR2_SPEC>

0x30 - regular sequence register 2

§sqr3: Reg<SQR3_SPEC>

0x34 - regular sequence register 3

§jsqr: Reg<JSQR_SPEC>

0x38 - injected sequence register

§jdr: [Reg<JDR_SPEC>; 4]

0x3c..0x4c - injected data register x

§dr: Reg<DR_SPEC>

0x4c - regular data register

Implementations§

Source§

impl RegisterBlock

Source

pub fn jofr1(&self) -> &Reg<JOFR_SPEC>

0x14 - injected channel data offset register x

Source

pub fn jofr2(&self) -> &Reg<JOFR_SPEC>

0x18 - injected channel data offset register x

Source

pub fn jofr3(&self) -> &Reg<JOFR_SPEC>

0x1c - injected channel data offset register x

Source

pub fn jofr4(&self) -> &Reg<JOFR_SPEC>

0x20 - injected channel data offset register x

Source

pub fn jdr1(&self) -> &Reg<JDR_SPEC>

0x3c - injected data register x

Source

pub fn jdr2(&self) -> &Reg<JDR_SPEC>

0x40 - injected data register x

Source

pub fn jdr3(&self) -> &Reg<JDR_SPEC>

0x44 - injected data register x

Source

pub fn jdr4(&self) -> &Reg<JDR_SPEC>

0x48 - injected data register x

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, 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.