GlobLib
HAL and API libraries for MCUs and hardware.
|
Header file for 8-bit circular FIFO software buffer. More...
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | FIFO8 |
Data structure for FIFO8 perihperal interface. More... | |
Enumerations |
Functions | |
fifo8_error_t | FIFO8_init (FIFO8 *target, fifo8_mode_t mode, uint8_t *buffer, uint16_t size, void(*output)(uint8_t byte)) |
Initializes the FIFO8 buffer. More... | |
fifo8_error_t | FIFO8_put (FIFO8 *target, uint8_t byte) |
Adds a character to the buffer. More... | |
fifo8_error_t | FIFO8_get (FIFO8 *target) |
Takes a character from the buffer. More... | |
uint16_t | FIFO8_size (FIFO8 *target) |
Return the size in bytes of the FIFO8 buffer. More... | |
fifo8_error_t | FIFO8_flush (FIFO8 *target) |
Flush all contents of the FIFO8 to the output function. More... | |
uint8_t | FIFO8_pop (FIFO8 *target) |
Reset the fifo buffer and set its size to 0. | |
Header file for 8-bit circular FIFO software buffer.
Definition in file fifo8.h.