pub struct IndependentWatchdog<'d, T: Instance> { /* private fields */ }
Expand description
Independent watchdog (IWDG) driver.
Implementations§
Source§impl<'d, T: Instance> IndependentWatchdog<'d, T>
impl<'d, T: Instance> IndependentWatchdog<'d, T>
Sourcepub fn new(_instance: impl Peripheral<P = T> + 'd, timeout_us: u32) -> Self
pub fn new(_instance: impl Peripheral<P = T> + 'd, timeout_us: u32) -> Self
Creates an IWDG (Independent Watchdog) instance with a given timeout value in microseconds.
Self has to be started with Self::unleash(). Once timer expires, MCU will be reset. To prevent this, timer must be reloaded by repeatedly calling Self::pet() within timeout interval.
Auto Trait Implementations§
impl<'d, T> Freeze for IndependentWatchdog<'d, T>
impl<'d, T> RefUnwindSafe for IndependentWatchdog<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for IndependentWatchdog<'d, T>where
T: Send,
impl<'d, T> Sync for IndependentWatchdog<'d, T>where
T: Sync,
impl<'d, T> Unpin for IndependentWatchdog<'d, T>
impl<'d, T> !UnwindSafe for IndependentWatchdog<'d, T>
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