![]() |
RTOS_MSPM0
1.1
ECE445M starter code
|
First in first out queue. More...
Files | |
| file | RTOS_FIFO.h |
| Provide functions for a first in first out queue. | |
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. | |
| #define | AddIndexFifo(NAME, SIZE, TYPE, SUCCESS, FAIL) |
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... | |
First in first out queue.
| #define AddIndexFifo | ( | NAME, | |
| SIZE, | |||
| TYPE, | |||
| SUCCESS, | |||
| FAIL | |||
| ) |
| char RxFifo_Get | ( | void | ) |
Get FIFO.
Get character from the receive FIFO
| none |
| void RxFifo_Init | ( | void | ) |
Initialize FIFO.
Initialize the receive FIFO
| none |
| int RxFifo_Put | ( | char | data | ) |
Put FIFO.
Put character into the receive FIFO
| data | is a new character to save |
| uint32_t RxFifo_Size | ( | void | ) |
number of elements in FIFO
Determine how many elements are currently stored in the receive FIFO
| none |
| char TxFifo_Get | ( | void | ) |
Get FIFO.
Get character from the transmit FIFO
| none |
| void TxFifo_Init | ( | void | ) |
Initialize FIFO.
Initialize the transmit FIFO
| none |
| int TxFifo_Put | ( | char | data | ) |
Put FIFO.
Put character into the transmit FIFO
| data | is a new character to save |
| uint32_t TxFifo_Size | ( | void | ) |
number of elements in FIFO
Determine how many elements are currently stored in the transmit FIFO
| none |