#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Control Register"] pub ctrl: crate::Reg, #[doc = "0x04 - The value that counter start from after reaching 0."] pub rst_value: crate::Reg, #[doc = "0x08 - The current value of the counter"] pub cnt_value: crate::Reg, #[doc = "0x0c - Alternate access to the Counter ENABLE bit in the CTRL Register"] pub enable: crate::Reg, #[doc = "0x10 - The Cascade Control Register. Controls the counter external enable signals"] pub csd_ctrl: crate::Reg, #[doc = "0x14 - Cascade Enable Selection"] pub cascade0: crate::Reg, #[doc = "0x18 - Cascade Enable Selection"] pub cascade1: crate::Reg, #[doc = "0x1c - Cascade Enable Selection"] pub cascade2: crate::Reg, _reserved_8_pwm_value: [u8; 0x04], #[doc = "0x24 - The Pulse Width Modulation ValueB"] pub pwmb_value: crate::Reg, _reserved10: [u8; 0x03d4], #[doc = "0x3fc - Peripheral ID Register"] pub perid: crate::Reg, } impl RegisterBlock { #[doc = "0x20 - The Pulse Width Modulation ValueA"] #[inline(always)] pub fn pwma_value(&self) -> &crate::Reg { unsafe { &*(((self as *const Self) as *const u8).add(32usize) as *const crate::Reg) } } #[doc = "0x20 - The Pulse Width Modulation Value"] #[inline(always)] pub fn pwm_value(&self) -> &crate::Reg { unsafe { &*(((self as *const Self) as *const u8).add(32usize) as *const crate::Reg) } } } #[doc = "CTRL register accessor: an alias for `Reg`"] pub type CTRL = crate::Reg; #[doc = "Control Register"] pub mod ctrl; #[doc = "RST_VALUE register accessor: an alias for `Reg`"] pub type RST_VALUE = crate::Reg; #[doc = "The value that counter start from after reaching 0."] pub mod rst_value; #[doc = "CNT_VALUE register accessor: an alias for `Reg`"] pub type CNT_VALUE = crate::Reg; #[doc = "The current value of the counter"] pub mod cnt_value; #[doc = "ENABLE register accessor: an alias for `Reg`"] pub type ENABLE = crate::Reg; #[doc = "Alternate access to the Counter ENABLE bit in the CTRL Register"] pub mod enable; #[doc = "CSD_CTRL register accessor: an alias for `Reg`"] pub type CSD_CTRL = crate::Reg; #[doc = "The Cascade Control Register. Controls the counter external enable signals"] pub mod csd_ctrl; #[doc = "CASCADE0 register accessor: an alias for `Reg`"] pub type CASCADE0 = crate::Reg; #[doc = "Cascade Enable Selection"] pub mod cascade0; #[doc = "CASCADE1 register accessor: an alias for `Reg`"] pub type CASCADE1 = crate::Reg; #[doc = "Cascade Enable Selection"] pub mod cascade1; #[doc = "CASCADE2 register accessor: an alias for `Reg`"] pub type CASCADE2 = crate::Reg; #[doc = "Cascade Enable Selection"] pub mod cascade2; #[doc = "PWM_VALUE register accessor: an alias for `Reg`"] pub type PWM_VALUE = crate::Reg; #[doc = "The Pulse Width Modulation Value"] pub mod pwm_value; #[doc = "PWMA_VALUE register accessor: an alias for `Reg`"] pub type PWMA_VALUE = crate::Reg; #[doc = "The Pulse Width Modulation ValueA"] pub mod pwma_value; #[doc = "PWMB_VALUE register accessor: an alias for `Reg`"] pub type PWMB_VALUE = crate::Reg; #[doc = "The Pulse Width Modulation ValueB"] pub mod pwmb_value; #[doc = "PERID register accessor: an alias for `Reg`"] pub type PERID = crate::Reg; #[doc = "Peripheral ID Register"] pub mod perid;