pub struct Rwdt(/* private fields */);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 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.
Auto Trait Implementations§
impl Freeze for Rwdt
impl RefUnwindSafe for Rwdt
impl Send for Rwdt
impl Sync for Rwdt
impl Unpin for Rwdt
impl UnsafeUnpin for Rwdt
impl UnwindSafe for Rwdt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more