a basic one-way communication line between threads. Should handle all the Serial protocol.
More...
#include <Emulator.h>
a basic one-way communication line between threads. Should handle all the Serial protocol.
- See also
- Serial, SerialTest.
void Emulator::Fifo::flush |
( |
| ) |
|
Wait for the queue to empty.
- Exceptions
-
after | 1sec if there is still bytes in the queue. |
void Emulator::Fifo::purge |
( |
| ) |
|
Delete all pending bytes from the queue.
- Parameters
-
[in] | data | pointer to store bytes received from the queue. |
[in] | len | number of bytes to wait for. |
- Exceptions
-
when | timeout is exceeded while waitting for the next byte. |
Wait for the next byte from the queue, and return it.
- Exceptions
-
void Emulator::Fifo::writeBlock |
( |
const byte * |
data, |
|
|
int |
len |
|
) |
| |
- Parameters
-
[in] | data | pointer to bytes to send to the queue. |
[in] | len | number of bytes. |
Send one byte to the queue.
- Note
- there is not fifo size limit, which is not very realist...
int Emulator::Fifo::timeout |
Read max wait delay, in millisecondes.
The documentation for this class was generated from the following files: