MSPM0_ValvanoWare  1.0
ECE445L starter code
Macros | Functions
FIFO.h File Reference

Provide functions for a first in first out queue. More...

Go to the source code of this file.

Macros

#define TXFIFOSIZE   64
 TXFIFOSIZE the size of the transmit FIFO, which can hold 0 to TXFIFOSIZE-1 elements. The size must be a power of 2.
 
#define RXFIFOSIZE   16
 RXFIFOSIZE the size of the receive FIFO, which can hold 0 to RXFIFOSIZE-1 elements The size must be a power of 2.
 

Functions

void TxFifo_Init (void)
 Initialize FIFO. More...
 
int TxFifo_Put (char data)
 Put FIFO. More...
 
char TxFifo_Get (void)
 Get FIFO. More...
 
uint32_t TxFifo_Size (void)
 number of elements in FIFO More...
 
void RxFifo_Init (void)
 Initialize FIFO. More...
 
int RxFifo_Put (char data)
 Put FIFO. More...
 
char RxFifo_Get (void)
 Get FIFO. More...
 
uint32_t RxFifo_Size (void)
 number of elements in FIFO More...
 

Detailed Description

Provide functions for a first in first out queue.

Runs on any Microcontroller. Provide functions that initialize a FIFO, put data in, get data out, and return the current size. The file includes two FIFOs using index implementation.

Version
ECE319K v1.0
Author
Daniel Valvano and Jonathan Valvano
Warning
AS-IS
Note
For more information see http://users.ece.utexas.edu/~valvano/
Date
August 13, 2023