[][src]Trait esp8266_hal::prelude::_embedded_hal_watchdog_WatchdogEnable

pub trait _embedded_hal_watchdog_WatchdogEnable {
    type Time;
    fn start<T>(&mut self, period: T)
    where
        T: Into<Self::Time>
; }

Enables A watchdog timer to reset the processor if software is frozen or stalled.

Associated Types

type Time

Unit of time used by the watchdog

Loading content...

Required methods

fn start<T>(&mut self, period: T) where
    T: Into<Self::Time>, 

Starts the watchdog with a given period, typically once this is done the watchdog needs to be kicked periodically or the processor is reset.

Loading content...

Implementors

impl WatchdogEnable for Watchdog[src]

type Time = (StageTimeout, StageTimeout)

fn start<T>(&mut self, period: T) where
    T: Into<Self::Time>, 
[src]

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.

Loading content...