FIFO for BLE packets: in framed mode the packet boundaries are kept, otherwise the data is handled as a byte stream. All methods are protected by the optional mutex, so that the buffer can be filled and consumed by different tasks.
More...
#include <BLESerialStream.h>
FIFO for BLE packets: in framed mode the packet boundaries are kept, otherwise the data is handled as a byte stream. All methods are protected by the optional mutex, so that the buffer can be filled and consumed by different tasks.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ available()
Number of available bytes: in framed mode the size of the next packet.
◆ availableForWrite()
| int availableForWrite |
( |
| ) |
|
|
inline |
Number of bytes which can be written.
◆ clear()
◆ isAllocated()
◆ read()
Provides the data: in framed mode the next complete packet if it fits into len bytes
◆ resize()
| void resize |
( |
int |
bytes, |
|
|
int |
packets, |
|
|
bool |
framed |
|
) |
| |
|
inline |
Allocates the buffer memory (if not already done)
◆ setMutex()
◆ write()
Adds a packet: in framed mode only complete packets are added.
◆ data
◆ is_framed
◆ p_mutex
◆ sizes
The documentation for this class was generated from the following file: