pub struct Wdt<TG> { /* private fields */ }Expand description
Watchdog timer
Implementations§
source§impl<TG> Wdt<TG>where
TG: TimerGroupInstance,
impl<TG> Wdt<TG>where
TG: TimerGroupInstance,
Watchdog driver
sourcepub unsafe fn set_wdt_enabled(enabled: bool)
pub unsafe fn set_wdt_enabled(enabled: bool)
Forcibly enable or disable the watchdog timer
§Safety
This bypasses the usual ownership rules for the peripheral, so users must take care to ensure that no driver instance is active for the timer.
Trait Implementations§
source§impl<TG> Default for Wdt<TG>where
TG: TimerGroupInstance,
impl<TG> Default for Wdt<TG>where
TG: TimerGroupInstance,
source§impl<TG> Watchdog for Wdt<TG>where
TG: TimerGroupInstance,
impl<TG> Watchdog for Wdt<TG>where
TG: TimerGroupInstance,
source§impl<TG> WatchdogDisable for Wdt<TG>where
TG: TimerGroupInstance,
impl<TG> WatchdogDisable for Wdt<TG>where
TG: TimerGroupInstance,
source§impl<TG> WatchdogEnable for Wdt<TG>where
TG: TimerGroupInstance,
impl<TG> WatchdogEnable for Wdt<TG>where
TG: TimerGroupInstance,
Auto Trait Implementations§
impl<TG> Freeze for Wdt<TG>
impl<TG> RefUnwindSafe for Wdt<TG>where
TG: RefUnwindSafe,
impl<TG> Send for Wdt<TG>where
TG: Send,
impl<TG> Sync for Wdt<TG>where
TG: Sync,
impl<TG> Unpin for Wdt<TG>where
TG: Unpin,
impl<TG> UnwindSafe for Wdt<TG>where
TG: UnwindSafe,
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