Struct esp32_hal::timer::watchdog::WatchdogConfig [−][src]
pub struct WatchdogConfig {
pub period1: NanoSecondsU64,
pub action1: WatchdogAction,
pub period2: NanoSecondsU64,
pub action2: WatchdogAction,
pub period3: NanoSecondsU64,
pub action3: WatchdogAction,
pub period4: NanoSecondsU64,
pub action4: WatchdogAction,
pub cpu_reset_duration: WatchDogResetDuration,
pub sys_reset_duration: WatchDogResetDuration,
pub divider: u16,
}Expand description
Watchdog configuration
The watchdog has four stages. Each of these stages can take a configurable action after expiry of the corresponding period. When this action is done, it will move to the next stage. The stage is reset to the first when the watchdog timer is fed.
Fields
period1: NanoSecondsU64action1: WatchdogActionperiod2: NanoSecondsU64action2: WatchdogActionperiod3: NanoSecondsU64action3: WatchdogActionperiod4: NanoSecondsU64action4: WatchdogActioncpu_reset_duration: WatchDogResetDurationDuration of the cpu reset signal
sys_reset_duration: WatchDogResetDurationDuration of the system reset signal
divider: u16Clock pre-scaling divider