pub struct Watchdog { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl WatchdogDisable for Watchdog
Disables a running watchdog timer so the processor won’t be reset.
impl WatchdogDisable for Watchdog
Disables a running watchdog timer so the processor won’t be reset.
Source§impl WatchdogEnable for Watchdog
impl WatchdogEnable for Watchdog
Source§fn start<T>(&mut self, period: T)
fn start<T>(&mut self, period: T)
Enables a watchdog timer to reset the processor if software is frozen
or stalled. Pass WatchdogTimeout
as the period.
As WDT is driven by a 1024Hz clock, the time until timeout can be calculated
as (1 second/1024)*period
EG:
Timeout of 2048 cycles = (1/1024)*2048 = 2 seconds
Auto Trait Implementations§
impl Freeze for Watchdog
impl RefUnwindSafe for Watchdog
impl Send for Watchdog
impl !Sync for Watchdog
impl Unpin for Watchdog
impl UnwindSafe for Watchdog
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