pub struct IndependentWatchdog { /* private fields */ }
Expand description
Wraps the Independent Watchdog (IWDG) peripheral
Implementations§
Source§impl IndependentWatchdog
impl IndependentWatchdog
Sourcepub fn new(iwdg: IWDG) -> Self
pub fn new(iwdg: IWDG) -> Self
Creates a new IndependentWatchDog
without starting it. Call start
to start the watchdog.
See WatchdogEnable
and Watchdog
for more info.
Sourcepub fn stop_on_debug(&self, dbgmcu: &DBGMCU, stop: bool)
pub fn stop_on_debug(&self, dbgmcu: &DBGMCU, stop: bool)
Debug independent watchdog stopped when core is halted
Sourcepub fn interval(&self) -> MilliSeconds
pub fn interval(&self) -> MilliSeconds
Returns the interval in ms
pub fn start(&mut self, period: MilliSeconds)
pub fn feed(&mut self)
Trait Implementations§
Source§impl Debug for IndependentWatchdog
impl Debug for IndependentWatchdog
Source§impl Format for IndependentWatchdog
impl Format for IndependentWatchdog
Source§impl Watchdog for IndependentWatchdog
impl Watchdog for IndependentWatchdog
Source§impl WatchdogEnable for IndependentWatchdog
impl WatchdogEnable for IndependentWatchdog
Auto Trait Implementations§
impl Freeze for IndependentWatchdog
impl !RefUnwindSafe for IndependentWatchdog
impl Send for IndependentWatchdog
impl !Sync for IndependentWatchdog
impl Unpin for IndependentWatchdog
impl UnwindSafe for IndependentWatchdog
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