35#include "periph_cpu.h"
41#ifndef HAVE_CB_MUX_CBID_T
void cb_mux_add(cb_mux_t **head, cb_mux_t *entry)
Add a new entry to the end of a cb_mux list.
struct cb_mux cb_mux_t
cb_mux list entry structure
cb_mux_t * cb_mux_find_low(cb_mux_t *head)
Find the entry with the lowest ID.
void cb_mux_del(cb_mux_t **head, cb_mux_t *entry)
Remove a entry from a cb_mux list.
void(* cb_mux_cb_t)(void *)
cb_mux callback type
unsigned int cb_mux_cbid_t
cb_mux identifier type
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.
cb_mux_cbid_t cb_mux_find_free_id(cb_mux_t *head)
Find the lowest unused ID.
cb_mux_t * cb_mux_find_high(cb_mux_t *head)
Find the entry with the highest ID.
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.
void(* cb_mux_iter_t)(cb_mux_t *, void *)
cb_mux iterate function callback type for cb_mux_iter
cb_mux list entry structure
struct cb_mux * next
next entry in the cb_mux list
cb_mux_cbid_t cbid
identifier for this callback
cb_mux_cb_t cb
callback function
void * arg
argument for callback function
void * info
optional extra information