Struct stm32l4xx_hal::watchdog::IndependentWatchdog
source · [−]pub struct IndependentWatchdog { /* private fields */ }
Expand description
Wraps the Independent Watchdog (IWDG) peripheral
Implementations
sourceimpl 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
Trait Implementations
sourceimpl Watchdog for IndependentWatchdog
impl Watchdog for IndependentWatchdog
sourceimpl WatchdogEnable for IndependentWatchdog
impl WatchdogEnable for IndependentWatchdog
Auto Trait Implementations
impl RefUnwindSafe for IndependentWatchdog
impl Send for IndependentWatchdog
impl !Sync for IndependentWatchdog
impl Unpin for IndependentWatchdog
impl UnwindSafe for IndependentWatchdog
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more