Go to the documentation of this file.
35 #include "periph_cpu.h"
41 #ifndef HAVE_CB_MUX_CBID_T
void * arg
argument for callback function
void(* cb_mux_cb_t)(void *)
cb_mux callback type
void * info
optional extra information
void cb_mux_add(cb_mux_t **head, cb_mux_t *entry)
Add a new entry to the end of a cb_mux list.
cb_mux_t * cb_mux_find_high(cb_mux_t *head)
Find the entry with the highest ID.
cb_mux list entry structure
struct cb_mux cb_mux_t
cb_mux list entry structure
void cb_mux_iter(cb_mux_t *head, cb_mux_iter_t func, void *arg)
Run a function on every item in the cb_mux list.
cb_mux_cb_t cb
callback function
cb_mux_cbid_t cbid
identifier for this callback
struct cb_mux * next
next entry in the cb_mux list
void cb_mux_del(cb_mux_t **head, cb_mux_t *entry)
Remove a entry from a cb_mux list.
cb_mux_cbid_t cb_mux_find_free_id(cb_mux_t *head)
Find the lowest unused ID.
cb_mux_t * cb_mux_find_low(cb_mux_t *head)
Find the entry with the lowest ID.
cb_mux_t * cb_mux_find_cbid(cb_mux_t *head, cb_mux_cbid_t cbid_val)
Find an entry in the list by ID.
void(* cb_mux_iter_t)(cb_mux_t *, void *)
cb_mux iterate function callback type for cb_mux_iter
unsigned int cb_mux_cbid_t
cb_mux identifier type