Struct kea_hal::system::watchdog::WatchDog[][src]

pub struct WatchDog<State, UpdateState> { /* fields omitted */ }
Expand description

The Watchdog interface presented to the user.

Implementations

Load a configuration and start the watchdog

per KEA64RM 16.3.2 pg193-194, all registers except count must be written to for configuration to take effect. The Window register may be omited if not in windowed mode.

Note: Configuring in an unlocked state with the debugger is attached will have little useful effect.

Disable the WatchDog

Unlock and disable the WatchDog

Service the Watchdog

Restart the countdown for MCU reset. This is often called petting, feeding, or kicking the watchdog.

Return the current value of the watchdog’s counter

This function swaps the bytes from the big endian registers to little endian representation used.

Unlock, enable, and reconfigure

Note: Configuring in a locked state with the debugger attached will trigger an immediate reset.

Seals the WatchDog peripheral.

This prevents any further modifications to the watchdog, aside from servicing as needed.

Returns a WDogConfig containing the current state of the peripheral

Checks if the interrupt_ran.

If acknowledge argument is true, then clear the interrupt flag if it is set.

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.