FIFO Library
Software FIFO
 All Data Structures Functions Variables Typedefs Groups Pages
Functions
ISR FUNCTIONS

Functions

void fifo_write_ISR (fifo_t *fifo, fifo_data_t data)
 FIFO write access without check for free space. More...
 
fifo_data_t fifo_read_ISR (fifo_t *fifo)
 FIFO read access without check for available data. More...
 
fifo_size_t fifo_get_level_ISR (fifo_t *fifo)
 Get fill level of FIFO. More...
 
fifo_size_t fifo_get_free_ISR (fifo_t *fifo)
 Get free space of fifo. More...
 

Detailed Description

Inline functions for fast FIFO access in ISR. Use in ISR only!

Function Documentation

fifo_size_t fifo_get_free_ISR ( fifo_t fifo)
inline

Get free space of fifo.

Parameters
*fifopointer to FIFO struct
Returns
free space of fifo in elements
fifo_size_t fifo_get_level_ISR ( fifo_t fifo)
inline

Get fill level of FIFO.

Parameters
*fifopointer to FIFO struct
Returns
fill level of fifo in elements
fifo_data_t fifo_read_ISR ( fifo_t fifo)
inline

FIFO read access without check for available data.

Parameters
*fifopointer to FIFO struct
Returns
read data
void fifo_write_ISR ( fifo_t fifo,
fifo_data_t  data 
)
inline

FIFO write access without check for free space.

Parameters
*fifopointer to FIFO struct
datawrite data
Returns
none