Definition at line 20 of file fifo_evl.cpp.
◆ evlFifo() [1/3]
RT::OS::evlFifo::evlFifo | ( | size_t | size | ) | |
| explicit |
◆ evlFifo() [2/3]
RT::OS::evlFifo::evlFifo | ( | const evlFifo & | fifo | ) | |
| delete |
◆ evlFifo() [3/3]
RT::OS::evlFifo::evlFifo | ( | evlFifo && | | ) | |
| default |
◆ ~evlFifo()
RT::OS::evlFifo::~evlFifo | ( | | ) | |
| override |
◆ buffer_fd()
int RT::OS::evlFifo::buffer_fd | ( | | ) | const |
◆ close()
void RT::OS::evlFifo::close | ( | | ) | |
| overridevirtual |
◆ getCapacity()
size_t RT::OS::evlFifo::getCapacity | ( | | ) | |
| overridevirtual |
Get the memory capacity of the fifo
- Returns
- The maximum amount of memory the fifo can hold
Implements RT::OS::Fifo.
Definition at line 119 of file fifo_evl.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ poll()
void RT::OS::evlFifo::poll | ( | | ) | |
| overridevirtual |
Checks whether there is available data to read on the non-rt side
This function is primarily for non-rt threads to wait on available data from the rt thread. It blocks (sleeps) the calling thread until woken by data availability. SHOULD NOT RUN IN REAL TIME!!
Implements RT::OS::Fifo.
Definition at line 95 of file fifo_evl.cpp.
◆ read()
int64_t RT::OS::evlFifo::read | ( | void * | buf, | | | size_t | data_size | | ) | | |
| overridevirtual |
Read the data stored in the FIFO written by realtime thread. Must be run from non-rt thread.
- Parameters
buf | The buffer where the data from the buffer should be written to |
data_size | The size of the data to read from the buffer |
- Returns
- n Number of elements read. Same as size.
Implements RT::OS::Fifo.
Definition at line 73 of file fifo_evl.cpp.
◆ readRT()
int64_t RT::OS::evlFifo::readRT | ( | void * | buf, | | | size_t | data_size | | ) | | |
| overridevirtual |
Read the data stored in the FIFO written by non-RT thread. Must be run from realtime thread.
- Parameters
buf | The buffer where the data from the buffer should be written to |
data_size | The size of the data to read from the buffer |
- Returns
- n Number of elements read. Same as size.
Implements RT::OS::Fifo.
Definition at line 85 of file fifo_evl.cpp.
◆ write()
int64_t RT::OS::evlFifo::write | ( | void * | buf, | | | size_t | data_size | | ) | | |
| overridevirtual |
Write to the FIFO storage for the realtime thread. Must be run from non-rt thread.
- Parameters
buf | The buffer holding the data to write to the FIFO. |
data_size | The size of the data to read from the buffer |
- Returns
- n Number of elements written. Same as size.
Implements RT::OS::Fifo.
Definition at line 79 of file fifo_evl.cpp.
◆ writeRT()
int64_t RT::OS::evlFifo::writeRT | ( | void * | buf, | | | size_t | data_size | | ) | | |
| overridevirtual |
Write to the FIFO storage for the non-RT thread. Must be run from realtime thread.
- Parameters
buf | The buffer holding the data to write to the FIFO. |
data_size | The size of the data to read from the buffer |
- Returns
- n Number of elements written. Same as size.
Implements RT::OS::Fifo.
Definition at line 90 of file fifo_evl.cpp.
The documentation for this class was generated from the following file: