|
PebbleOS v4.47.0-1312-gf1984a001
|
Watchdog driver operations. More...
#include <watchdog.h>
Data Fields | |
| int(* | init )(const struct pbl_watchdog *wdt) |
| Optional. | |
| int(* | feed )(const struct pbl_watchdog *wdt) |
| Restart the countdown. | |
| bool(* | is_running )(const struct pbl_watchdog *wdt) |
| Optional. | |
| int(* | start )(const struct pbl_watchdog *wdt) |
| Optional, with stop. | |
| int(* | stop )(const struct pbl_watchdog *wdt) |
| Optional. | |
| int(* | set_callback )(const struct pbl_watchdog *wdt, pbl_watchdog_callback_t cb, void *arg) |
| Optional. | |
Watchdog driver operations.
| int(* pbl_watchdog_ops::feed) (const struct pbl_watchdog *wdt) |
Restart the countdown.
| int(* pbl_watchdog_ops::init) (const struct pbl_watchdog *wdt) |
Optional.
Configure and start the watchdog.
| bool(* pbl_watchdog_ops::is_running) (const struct pbl_watchdog *wdt) |
Optional.
Whether the hardware runs, as when the bootloader left it running.
| int(* pbl_watchdog_ops::set_callback) (const struct pbl_watchdog *wdt, pbl_watchdog_callback_t cb, void *arg) |
Optional.
Subscribe to the watchdog expiring.
| int(* pbl_watchdog_ops::start) (const struct pbl_watchdog *wdt) |
Optional, with stop.
Start the watchdog again after a stop.
| int(* pbl_watchdog_ops::stop) (const struct pbl_watchdog *wdt) |
Optional.
Stop the watchdog.