#[repr(C)]pub struct RegisterBlock {
pub isr: Reg<ISR_SPEC>,
pub ier: Reg<IER_SPEC>,
pub cr: Reg<CR_SPEC>,
pub cfgr1: Reg<CFGR1_SPEC>,
pub cfgr2: Reg<CFGR2_SPEC>,
pub smpr: Reg<SMPR_SPEC>,
pub tr: Reg<TR_SPEC>,
pub chselr: Reg<CHSELR_SPEC>,
pub dr: Reg<DR_SPEC>,
pub ccr: Reg<CCR_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
cfgr1: Reg<CFGR1_SPEC>
0x0c - configuration register 1
cfgr2: Reg<CFGR2_SPEC>
0x10 - configuration register 2
smpr: Reg<SMPR_SPEC>
0x14 - sampling time register
tr: Reg<TR_SPEC>
0x20 - watchdog threshold register
chselr: Reg<CHSELR_SPEC>
0x28 - channel selection register
dr: Reg<DR_SPEC>
0x40 - data register
ccr: Reg<CCR_SPEC>
0x308 - common configuration 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