#[repr(transparent)]pub struct WakeTimerCtrl(pub u32);Expand description
Wake Timer Control. WAKE_FLAG is write-one-to-clear.
Tuple Fields§
§0: u32Implementations§
Source§impl WakeTimerCtrl
impl WakeTimerCtrl
Sourcepub const fn wake_flag(&self) -> bool
pub const fn wake_flag(&self) -> bool
Wake Timer Status Flag. Set when the counter times out. Writing one clears the flag; writing zero has no effect.
Sourcepub const fn set_wake_flag(&mut self, val: bool)
pub const fn set_wake_flag(&mut self, val: bool)
Wake Timer Status Flag. Set when the counter times out. Writing one clears the flag; writing zero has no effect.
Sourcepub const fn clr_wake_timer(&self) -> bool
pub const fn clr_wake_timer(&self) -> bool
Clear Wake Timer. Writing one clears the counter and halts counting until a new count is loaded. Writing zero has no effect. Always reads as zero.
Sourcepub const fn set_clr_wake_timer(&mut self, val: bool)
pub const fn set_clr_wake_timer(&mut self, val: bool)
Clear Wake Timer. Writing one clears the counter and halts counting until a new count is loaded. Writing zero has no effect. Always reads as zero.
Sourcepub const fn osc_div_ena(&self) -> bool
pub const fn osc_div_ena(&self) -> bool
Enables the divide-by-16 stage for the low-frequency oscillator input. Must be set for the wake timer to run. The source oscillator and its output clock must also be enabled.
Sourcepub const fn set_osc_div_ena(&mut self, val: bool)
pub const fn set_osc_div_ena(&mut self, val: bool)
Enables the divide-by-16 stage for the low-frequency oscillator input. Must be set for the wake timer to run. The source oscillator and its output clock must also be enabled.
Sourcepub const fn set_intr_en(&mut self, val: bool)
pub const fn set_intr_en(&mut self, val: bool)
Enables the interrupt when WAKE_FLAG is set.
Trait Implementations§
Source§impl Clone for WakeTimerCtrl
impl Clone for WakeTimerCtrl
Source§fn clone(&self) -> WakeTimerCtrl
fn clone(&self) -> WakeTimerCtrl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more