#include <fifo.h>
|
| | Fifo (size_t) |
| |
| | ~Fifo (void) |
| |
| size_t | read (void *, size_t, bool=true) |
| |
| size_t | write (const void *, size_t) |
| |
Simple FIFO(First In First Out) for data transfer between components in RTXI
- See also
- AtomicFifo
Definition at line 31 of file fifo.h.
◆ Fifo()
FIFO constructor. Builds a simple FIFO object.
- Parameters
Definition at line 26 of file fifo.cpp.
◆ ~Fifo()
FIFO Destructor
Definition at line 34 of file fifo.cpp.
◆ read()
| size_t Fifo::read | ( | void * | buffer, |
| | size_t | n, |
| | bool | blocking = true |
| ) | | |
Read the data stored in the FIFO. clears out the data after the operation is complete.
- Parameters
| buffer | The buffer where the data from the buffer should be written to |
| size | The size of the data to read from the buffer |
| blocking | Whether the thread should expect to be blocked or not |
- Returns
- n Number of elements read. Same as size.
Definition at line 42 of file fifo.cpp.
◆ write()
| size_t Fifo::write | ( | const void * | buffer, |
| | size_t | n |
| ) | | |
Write to the FIFO.
- Parameters
| buffer | The buffer holding the data to write to the FIFO. |
| size | The size of the data to read from the buffer |
- Returns
- n Number of elements written. Same as size.
Definition at line 81 of file fifo.cpp.
The documentation for this class was generated from the following files: