GlobLib
HAL and API libraries for MCUs and hardware.
fifo8.c File Reference

Source file for fifo8.h. More...

#include "fifo8.h"

Go to the source code of this file.

Functions

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...
 
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...
 
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.
 

Detailed Description

Source file for fifo8.h.

Author
Stuart Ianna
Version
1.0
Date
June 2018
Warning
None
Bug:
Verified Compilers
  • arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)

Definition in file fifo8.c.