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

pub trait Disable {
    type Error: Debug;
    type Target: Enable;
    fn disable(self) -> Result<Self::Target, Self::Error>;
}
Expand description

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

Not all watchdog timers support disable operation after they’ve been enabled. In this case, hardware support libraries would not implement this trait and hardware-agnostic libraries should consider not requiring it.

Associated Types

An enumeration of Disable errors.

For infallible implementations, will be Infallible

Disabled watchdog instance that can be enabled.

Required methods

Disables the watchdog.

This stops the watchdog and returns an instance implementing the Enable trait so that it can be started again.

Implementors