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: WatchDogResetDuration

Duration of the cpu reset signal

sys_reset_duration: WatchDogResetDuration

Duration of the system reset signal

divider: u16

Clock pre-scaling divider

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.