pub struct Rwdt;
Available on crate feature
unstable
only.Expand description
RTC Watchdog Timer.
Implementations§
Source§impl Rwdt
RTC Watchdog Timer driver.
impl Rwdt
RTC Watchdog Timer driver.
Sourcepub fn enable(&mut self)
pub fn enable(&mut self)
Enable the watchdog timer instance.
Watchdog starts with default settings (stage 0
resets the system, the
others are deactivated)
Sourcepub fn clear_interrupt(&mut self)
pub fn clear_interrupt(&mut self)
Clear interrupt.
Sourcepub fn is_interrupt_set(&self) -> bool
pub fn is_interrupt_set(&self) -> bool
Check if the interrupt is set.
Sourcepub fn set_timeout(&mut self, stage: RwdtStage, timeout: Duration)
pub fn set_timeout(&mut self, stage: RwdtStage, timeout: Duration)
Configure timeout value in ms for the selected stage.
Sourcepub fn set_stage_action(&mut self, stage: RwdtStage, action: RwdtStageAction)
pub fn set_stage_action(&mut self, stage: RwdtStage, action: RwdtStageAction)
Set the action for a specific stage.