[][src]Struct trellis_m4::watchdog::Watchdog

pub struct Watchdog { /* fields omitted */ }

Implementations

impl Watchdog[src]

pub fn new(wdt: WDT) -> Watchdog[src]

Trait Implementations

impl Watchdog for Watchdog[src]

pub fn feed(&mut self)[src]

Feeds an existing watchdog to ensure the processor isn't reset. Sometimes commonly referred to as "kicking" or "refreshing".

impl WatchdogDisable for Watchdog[src]

Disables a running watchdog timer so the processor won't be reset.

impl WatchdogEnable for Watchdog[src]

type Time = u8

Unit of time used by the watchdog

pub fn start<T>(&mut self, period: T) where
    T: Into<<Watchdog as WatchdogEnable>::Time>, 
[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.