FIFO declarations.
Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
#include <stdint.h>
#include <stdbool.h>
Data Structures | |
struct | fifo_handle_tag |
Typedefs | |
typedef struct fifo_handle_tag | fifo_t |
Functions | |
uint8_t | fifo_empty (fifo_t *const fifo) |
uint8_t | fifo_full (fifo_t *const fifo) |
uint8_t | fifo_get (fifo_t *const fifo, uint8_t *const byte) |
uint8_t | fifo_init (fifo_t *const fifo, uint8_t *const buffer, const uint32_t size) |
uint8_t | fifo_put (fifo_t *const fifo, const uint8_t byte) |
typedef struct fifo_handle_tag fifo_t |
uint8_t fifo_empty | ( | fifo_t *const | fifo | ) |
References fifo_handle_tag::rd_idx, and fifo_handle_tag::wr_idx.
Referenced by fifo_get(), and interface_process_fifo_data().
uint8_t fifo_full | ( | fifo_t *const | fifo | ) |
References fifo_handle_tag::rd_idx, fifo_handle_tag::size, and fifo_handle_tag::wr_idx.
Referenced by fifo_put(), and store_uart_data().
uint8_t fifo_get | ( | fifo_t *const | fifo, |
uint8_t *const | byte | ||
) |
References fifo_handle_tag::buffer, fifo_empty(), fifo_handle_tag::mask, and fifo_handle_tag::rd_idx.
Referenced by interface_process_fifo_data().
uint8_t fifo_init | ( | fifo_t *const | fifo, |
uint8_t *const | buffer, | ||
const uint32_t | size | ||
) |
References buffer, fifo_handle_tag::buffer, fifo_handle_tag::mask, NULL, fifo_handle_tag::rd_idx, fifo_handle_tag::size, and fifo_handle_tag::wr_idx.
Referenced by init_fifo().
uint8_t fifo_put | ( | fifo_t *const | fifo, |
const uint8_t | byte | ||
) |
References fifo_handle_tag::buffer, fifo_full(), fifo_handle_tag::mask, and fifo_handle_tag::wr_idx.
Referenced by store_uart_data().