Struct esp8266_hal::watchdog::Watchdog
source · [−]pub struct Watchdog { /* private fields */ }
Trait Implementations
sourceimpl WatchdogDisable for Watchdog
impl WatchdogDisable for Watchdog
sourceimpl WatchdogEnable for Watchdog
impl WatchdogEnable for Watchdog
sourcefn start<T>(&mut self, period: T) where
T: Into<Self::Time>,
fn start<T>(&mut self, period: T) where
T: Into<Self::Time>,
Start the watchdog timer
You can provide the time period either as a value in Milliseconds
or Seconds
, a single StageTimeOut
or a pair of StageTimeout
If the period is provided as a time unit, the actual period will be an approximation of the provided period that is at least as long as the provided period or the maximum period of 53680 milliseconds.
Note that the default clock frequency of 80Mhz is assumed when converting from time units.
type Time = (StageTimeout, StageTimeout)
type Time = (StageTimeout, StageTimeout)
Unit of time used by the watchdog
Auto Trait Implementations
impl RefUnwindSafe for Watchdog
impl Send for Watchdog
impl !Sync for Watchdog
impl Unpin for Watchdog
impl UnwindSafe for Watchdog
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