#[repr(C)]pub struct RegisterBlock {Show 18 fields
pub cr1: CR1,
pub cr2: CR2,
pub smcr: SMCR,
pub dier: DIER,
pub sr: SR,
pub egr: EGR,
pub ccmr1_output: CCMR1_OUTPUT,
pub ccmr2_output: CCMR2_OUTPUT,
pub ccer: CCER,
pub cnt: CNT,
pub psc: PSC,
pub arr: ARR,
pub ccr1: CCR1,
pub ccr2: CCR2,
pub ccr3: CCR3,
pub ccr4: CCR4,
pub dcr: DCR,
pub dmar: DMAR,
/* private fields */
}Expand description
Register block
Fields§
§cr1: CR10x00 - control register 1
cr2: CR20x04 - control register 2
smcr: SMCR0x08 - slave mode control register
dier: DIER0x0c - DMA/Interrupt enable register
sr: SR0x10 - status register
egr: EGR0x14 - event generation register
ccmr1_output: CCMR1_OUTPUT0x18 - capture/compare mode register 1 (output mode)
ccmr2_output: CCMR2_OUTPUT0x1c - capture/compare mode register 2 (output mode)
ccer: CCER0x20 - capture/compare enable register
cnt: CNT0x24 - counter
psc: PSC0x28 - prescaler
arr: ARR0x2c - auto-reload register
ccr1: CCR10x34 - capture/compare register 1
ccr2: CCR20x38 - capture/compare register 2
ccr3: CCR30x3c - capture/compare register 3
ccr4: CCR40x40 - capture/compare register 4
dcr: DCR0x48 - DMA control register
dmar: DMAR0x4c - DMA address for full transfer
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more