void fifo_init(fifo_t *f)
Initialize a FIFO to empty state.
#define FIFO_SIZE
Definition fifo.h:7
bool fifo_write(fifo_t *f, const void *data, uint16_t len)
Write bytes into the FIFO.
bool fifo_read(fifo_t *f, void *data, uint16_t len)
Read bytes from the FIFO.
uint16_t head
Definition fifo.h:12
uint16_t tail
Definition fifo.h:13
uint16_t used
Definition fifo.h:14