Trait gd32vf103_hal::prelude::_embedded_hal_watchdog_Enable[][src]

pub trait _embedded_hal_watchdog_Enable {
    type Error;
    type Time;
    type Target: Watchdog;
    pub fn try_start<T>(self, period: T) -> Result<Self::Target, Self::Error>
    where
        T: Into<Self::Time>
; }

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

Associated Types

type Error[src]

An enumeration of Enable errors.

For infallible implementations, will be Infallible

type Time[src]

Unit of time used by the watchdog.

type Target: Watchdog[src]

The started watchdog that should be feed().

Loading content...

Required methods

pub fn try_start<T>(self, period: T) -> Result<Self::Target, Self::Error> where
    T: Into<Self::Time>, 
[src]

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().

Loading content...

Implementors

impl Enable for Free<Disabled>[src]

type Error = Infallible

type Time = MicroSeconds

type Target = Free<Enabled>

Loading content...