4 #include <twr_common.h>
size_t twr_fifo_irq_read(twr_fifo_t *fifo, void *buffer, size_t length)
Read data from FIFO from interrupt.
void twr_fifo_purge(twr_fifo_t *fifo)
Purge FIFO buffer.
size_t twr_fifo_write(twr_fifo_t *fifo, const void *buffer, size_t length)
Write data to FIFO.
bool twr_fifo_is_empty(twr_fifo_t *fifo)
Is empty.
size_t twr_fifo_irq_write(twr_fifo_t *fifo, const void *buffer, size_t length)
Write data to FIFO from interrupt.
size_t twr_fifo_read(twr_fifo_t *fifo, void *buffer, size_t length)
Read data from FIFO.
void twr_fifo_init(twr_fifo_t *fifo, void *buffer, size_t size)
Initialize FIFO buffer.
Structure of FIFO instance.
void * buffer
Pointer to buffer where FIFO holds data.
size_t head
Position of FIFO's head.
size_t tail
Position of FIFO's tail.
size_t size
Size of buffer where FIFO holds data.