Struct stm32f0xx_hal::pac::adc::RegisterBlock [−][src]
#[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>,
// some fields omitted
}
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