Trait gd32vf103_hal::prelude::_embedded_hal_watchdog_Disable[][src]

pub trait _embedded_hal_watchdog_Disable {
    type Error;
    type Target: Enable;
    pub fn try_disable(self) -> Result<Self::Target, Self::Error>;
}

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

type Error[src]

An enumeration of Disable errors.

For infallible implementations, will be Infallible

type Target: Enable[src]

Disabled watchdog instance that can be enabled.

Loading content...

Required methods

pub fn try_disable(self) -> Result<Self::Target, Self::Error>[src]

Disables the watchdog.

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

Loading content...

Implementors

Loading content...