inline functions for fast FIFO access in ISR use in ISR ONLY !
| uint16_t fifo_get_free_ISR |
( |
fifo_t * |
fifo | ) |
|
|
inline |
Get free space of fifo.
- Parameters
-
| *fifo | pointer to FIFO struct |
- Returns
- free space of fifo in bytes
| uint16_t fifo_get_level_ISR |
( |
fifo_t * |
fifo | ) |
|
|
inline |
Get fill level of FIFO.
- Parameters
-
| *fifo | pointer to FIFO struct |
- Returns
- fill level of fifo in bytes
| uint8_t fifo_read_ISR |
( |
fifo_t * |
fifo | ) |
|
|
inline |
FIFO read access without check for available data.
- Parameters
-
| *fifo | pointer to FIFO struct |
- Returns
- read data
| void fifo_write_ISR |
( |
fifo_t * |
fifo, |
|
|
uint8_t |
data |
|
) |
| |
|
inline |
FIFO write access without check for free space.
- Parameters
-
| *fifo | pointer to FIFO struct |
| data | write data |
- Returns
- none