Struct esp32_hal::clock_control::watchdog::WatchdogConfig [−][src]
pub struct WatchdogConfig {
pub period1: MicroSeconds,
pub action1: WatchdogAction,
pub period2: MicroSeconds,
pub action2: WatchdogAction,
pub period3: MicroSeconds,
pub action3: WatchdogAction,
pub period4: MicroSeconds,
pub action4: WatchdogAction,
pub cpu_reset_duration: WatchDogResetDuration,
pub sys_reset_duration: WatchDogResetDuration,
pub pause_in_sleep: bool,
pub reset_cpu: (bool, bool),
}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: MicroSecondsaction1: WatchdogActionperiod2: MicroSecondsaction2: WatchdogActionperiod3: MicroSecondsaction3: WatchdogActionperiod4: MicroSecondsaction4: WatchdogActioncpu_reset_duration: WatchDogResetDurationDuration of the cpu reset signal
sys_reset_duration: WatchDogResetDurationDuration of the system reset signal
pause_in_sleep: boolPause the watchdog timer when the system is in sleep mode
reset_cpu: (bool, bool)Indicates which cpu(s) will be reset when action is RESETCPU