#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - control register 1"] pub cr1: crate::Reg, #[doc = "0x04 - control register 2"] pub cr2: crate::Reg, _reserved2: [u8; 0x04], #[doc = "0x0c - DMA/Interrupt enable register"] pub dier: crate::Reg, #[doc = "0x10 - status register"] pub sr: crate::Reg, #[doc = "0x14 - event generation register"] pub egr: crate::Reg, _reserved5: [u8; 0x0c], #[doc = "0x24 - counter"] pub cnt: crate::Reg, #[doc = "0x28 - prescaler"] pub psc: crate::Reg, #[doc = "0x2c - auto-reload register"] pub arr: crate::Reg, } #[doc = "CR1 register accessor: an alias for `Reg`"] pub type CR1 = crate::Reg; #[doc = "control register 1"] pub mod cr1; #[doc = "CR2 register accessor: an alias for `Reg`"] pub type CR2 = crate::Reg; #[doc = "control register 2"] pub mod cr2; #[doc = "DIER register accessor: an alias for `Reg`"] pub type DIER = crate::Reg; #[doc = "DMA/Interrupt enable register"] pub mod dier; #[doc = "SR register accessor: an alias for `Reg`"] pub type SR = crate::Reg; #[doc = "status register"] pub mod sr; #[doc = "EGR register accessor: an alias for `Reg`"] pub type EGR = crate::Reg; #[doc = "event generation register"] pub mod egr; #[doc = "CNT register accessor: an alias for `Reg`"] pub type CNT = crate::Reg; #[doc = "counter"] pub mod cnt; #[doc = "PSC register accessor: an alias for `Reg`"] pub type PSC = crate::Reg; #[doc = "prescaler"] pub mod psc; #[doc = "ARR register accessor: an alias for `Reg`"] pub type ARR = crate::Reg; #[doc = "auto-reload register"] pub mod arr;