PebbleOS v4.47.0-1312-gf1984a001
Loading...
Searching...
No Matches
pbl_watchdog_ops Struct Reference

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.
 

Detailed Description

Watchdog driver operations.

Field Documentation

◆ feed

int(* pbl_watchdog_ops::feed) (const struct pbl_watchdog *wdt)

Restart the countdown.

◆ init

int(* pbl_watchdog_ops::init) (const struct pbl_watchdog *wdt)

Optional.

Configure and start the watchdog.

◆ is_running

bool(* pbl_watchdog_ops::is_running) (const struct pbl_watchdog *wdt)

Optional.

Whether the hardware runs, as when the bootloader left it running.

◆ set_callback

int(* pbl_watchdog_ops::set_callback) (const struct pbl_watchdog *wdt, pbl_watchdog_callback_t cb, void *arg)

Optional.

Subscribe to the watchdog expiring.

◆ start

int(* pbl_watchdog_ops::start) (const struct pbl_watchdog *wdt)

Optional, with stop.

Start the watchdog again after a stop.

◆ stop

int(* pbl_watchdog_ops::stop) (const struct pbl_watchdog *wdt)

Optional.

Stop the watchdog.


The documentation for this struct was generated from the following file: