Trait embedded_hal::watchdog::blocking::Enable[][src]

pub trait Enable {
    type Error: Debug;
    type Time;
    type Target: Watchdog;
    fn start<T>(self, period: T) -> Result<Self::Target, Self::Error>
    where
        T: Into<Self::Time>
; }
Expand description

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

Associated Types

An enumeration of Enable errors.

For infallible implementations, will be Infallible

Unit of time used by the watchdog.

The started watchdog that should be feed().

Required methods

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

This consumes the value and returns the Watchdog trait that you must feed().

Implementors