#[repr(C)]pub struct RegisterBlock {Show 20 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 jofr1: Reg<JOFR1_SPEC>,
pub jofr2: Reg<JOFR2_SPEC>,
pub jofr3: Reg<JOFR3_SPEC>,
pub jofr4: Reg<JOFR4_SPEC>,
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 jdr1: Reg<JDR1_SPEC>,
pub jdr2: Reg<JDR2_SPEC>,
pub jdr3: Reg<JDR3_SPEC>,
pub jdr4: Reg<JDR4_SPEC>,
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
jofr1: Reg<JOFR1_SPEC>
0x14 - injected channel data offset register x
jofr2: Reg<JOFR2_SPEC>
0x18 - injected channel data offset register x
jofr3: Reg<JOFR3_SPEC>
0x1c - injected channel data offset register x
jofr4: Reg<JOFR4_SPEC>
0x20 - 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
jdr1: Reg<JDR1_SPEC>
0x3c - injected data register x
jdr2: Reg<JDR2_SPEC>
0x40 - injected data register x
jdr3: Reg<JDR3_SPEC>
0x44 - injected data register x
jdr4: Reg<JDR4_SPEC>
0x48 - injected data register x
dr: Reg<DR_SPEC>
0x4c - regular data register
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more