Struct kea_hal::system::watchdog::WDogConfig [−][src]
pub struct WDogConfig { pub interrupt: bool, pub debug_mode: bool, pub wait_mode: bool, pub stop_mode: bool, pub windowed: bool, pub prescale: bool, pub clock: WDogClock, pub period: u16, pub window: u16, }
Expand description
Holds watchdog configuration.
Generated by WatchDog::configuration and consumed by WatchDog::configure.
Fields
interrupt: bool
Watchdog Generates Intterupts
debug_mode: bool
Watchdog Operates in Debug mode
wait_mode: bool
Watchdog Operates in Wait mode
stop_mode: bool
Watchdog Operates in Stop mode
windowed: bool
Windowed Watchdog Mode
prescale: bool
Use watchdog clock prescaler (fixed 1:256)
clock: WDogClock
Set the clock used by the watchdog
period: u16
When counter >= period, reset.
window: u16
Refresh window
If windowed is set and the watchdog is serviced while counter <= window reset. In other words, in windowed mode, the watchdog will trigger a reset unless serviced when window < counter < period.