[][src]Struct esp32_hal::timer::watchdog::WatchdogConfig

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,
}

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

impl Debug for WatchdogConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.