Trait avr_oxide::hal::generic::watchdog::WatchdogController

source ·
pub trait WatchdogController {
    // Required methods
    fn disable(&mut self);
    fn enable(&mut self, min_gap: WatchdogPeriod, max_gap: WatchdogPeriod);
    fn protect(&mut self);
    fn kick(&self);
}

Required Methods§

source

fn disable(&mut self)

Disable the watchdog timer

source

fn enable(&mut self, min_gap: WatchdogPeriod, max_gap: WatchdogPeriod)

Start the watchdog timer. Once this method has been called, you must be sure to call the kick() function at least every max_gap ms, but no quicker than min_gap ms, or the watchdog will reset the processor.

source

fn protect(&mut self)

Protect the watchdog configuration - you can’t change the configuration once this has been called.

source

fn kick(&self)

Kick the watchdog - as long as the watchdog is enabled, this must be called within the configured time limits passed to enable()

Implementors§