Struct Ccr
#[repr(transparent)]pub struct Ccr(pub u32);Expand description
LPTIM capture/compare register.
Tuple Fields§
§0: u32Implementations§
§impl Ccr
impl Ccr
pub const fn ccr(&self) -> u16
pub const fn ccr(&self) -> u16
Capture/compare x value. If channel CCx is configured as output: value to be compared to the counter LPTIM_CNT and signaled on OCx output; depending on the PRELOAD option, it is updated immediately (PRELOAD = 0) or at the next LPTIM update event (PRELOAD = 1). If channel CCx is configured as input: counter value transferred by the last input capture x event (read-only). If the LPTIM does not implement any channel: value compared to LPTIM_CNT and signaled on the LPTIM output.
pub const fn set_ccr(&mut self, val: u16)
pub const fn set_ccr(&mut self, val: u16)
Capture/compare x value. If channel CCx is configured as output: value to be compared to the counter LPTIM_CNT and signaled on OCx output; depending on the PRELOAD option, it is updated immediately (PRELOAD = 0) or at the next LPTIM update event (PRELOAD = 1). If channel CCx is configured as input: counter value transferred by the last input capture x event (read-only). If the LPTIM does not implement any channel: value compared to LPTIM_CNT and signaled on the LPTIM output.