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.

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.