|
PebbleOS v4.43.0-118-gb6c5f89a9
|
#include <pbl/kernel/types.h>Data Structures | |
| struct | pbl_timer |
| Software timer. More... | |
Macros | |
| #define | PBL_TIMER_INITIALIZER(_fn) {.fn = (_fn)} |
| Static initializer for a timer. | |
Typedefs | |
| typedef void(* | pbl_timer_fn_t) (struct pbl_timer *timer) |
| Timer callback, run in the tick ISR. | |
Functions | |
| void | pbl_timer_init (struct pbl_timer *timer, pbl_timer_fn_t fn) |
| Initialize a timer. | |
| void | pbl_timer_start (struct pbl_timer *timer, pbl_timeout_t delay) |
| Start a timer, or restart it if it is active. | |
| void | pbl_timer_stop (struct pbl_timer *timer) |
| Stop a timer. | |
| bool | pbl_timer_is_active (const struct pbl_timer *timer) |
| Check whether a timer is active. | |