All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
evtimer.h File Reference

evtimer API definitions More...

Detailed Description

evtimer API definitions

Author
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e
Martine Lenders m.len.nosp@m.ders.nosp@m.@fu-b.nosp@m.erli.nosp@m.n.de

Definition in file evtimer.h.

#include <stdint.h>
#include "modules.h"
#include "ztimer.h"
+ Include dependency graph for evtimer.h:
+ This graph shows which files directly or indirectly include this file:

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.
 
void evtimer_add (evtimer_t *evtimer, evtimer_event_t *event)
 Adds event to an event timer.
 
void evtimer_del (evtimer_t *evtimer, evtimer_event_t *event)
 Removes an event from an event timer.
 
void evtimer_print (const evtimer_t *evtimer)
 Print overview of current state of an event timer.
 
static uint32_t evtimer_now_msec (void)
 Return the current system time in msec.