evtimer API definitions More...
evtimer API definitions
Definition in file evtimer.h.
Go to the source code of this file.
Data Structures | |
struct | evtimer_event |
Generic event. More... | |
struct | evtimer_t |
Event timer. More... | |
Typedefs | |
typedef struct evtimer_event | evtimer_event_t |
Generic event. | |
typedef void(* | evtimer_callback_t) (evtimer_event_t *event) |
Event timer callback type. | |
Functions | |
void | evtimer_init (evtimer_t *evtimer, evtimer_callback_t handler) |
Initializes an event timer. More... | |
void | evtimer_add (evtimer_t *evtimer, evtimer_event_t *event) |
Adds event to an event timer. More... | |
void | evtimer_del (evtimer_t *evtimer, evtimer_event_t *event) |
Removes an event from an event timer. More... | |
void | evtimer_print (const evtimer_t *evtimer) |
Print overview of current state of an event timer. More... | |
static uint32_t | evtimer_now_msec (void) |
Return the current system time in msec. | |
static uint32_t | evtimer_now_min (void) |
Return the current system time in minutes. | |