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§
sourcefn enable(&mut self, min_gap: WatchdogPeriod, max_gap: WatchdogPeriod)
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.