45 #ifndef HW_WATCHDOG_DEFAULT_DEVICE 46 #define HW_WATCHDOG_DEFAULT_DEVICE "/dev/watchdog0" struct hw_watchdog_t hw_watchdog_t
Watchdog adapter handle.
uint32_t hw_watchdog_maxtimeout_ms(void)
Return the maximum supported watchdog timeout in milliseconds.
hw_watchdog_t * hw_watchdog_init(void)
Initialize the watchdog singleton.
void hw_watchdog_enable(hw_watchdog_t *watchdog, bool enable)
Enable or disable watchdog feeding mode.
hw_watchdog_t * hw_watchdog_init_device(const char *device)
Initialize the watchdog singleton for a specific device path.
void hw_watchdog_reset(hw_watchdog_t *watchdog, uint32_t delay_ms)
Trigger a delayed device reset (reboot).
void hw_watchdog_deinit(hw_watchdog_t *watchdog)
Deinitialize the watchdog singleton.
bool hw_watchdog_did_reset(hw_watchdog_t *watchdog)
Report whether the last reboot/reset was caused by the watchdog.