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.
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.