StreamBuffer wrapper.
More...
#include <StreamBufferCPP.h>
template<size_t size>
class StreamBuffer< size >
StreamBuffer wrapper.
- Template Parameters
-
size | The size of the stream buffer, 0 for dynamically created |
◆ StreamBuffer()
◆ ~StreamBuffer()
◆ available()
size_t StreamBufferBase::available |
( |
| ) |
const |
|
inlineinherited |
Get the amount of available space open in the StreamBuffer.
- Returns
- The number of bytes that can be sent before the buffer is full
◆ isEmpty()
bool StreamBufferBase::isEmpty |
( |
| ) |
const |
|
inlineinherited |
◆ isFull()
bool StreamBufferBase::isFull |
( |
| ) |
const |
|
inlineinherited |
◆ read()
size_t StreamBufferBase::read |
( |
void * | data, |
|
|
size_t | len, |
|
|
TickType_t | delay = portMAX_DELAY ) |
|
inlineinherited |
◆ read_ISR()
size_t StreamBufferBase::read_ISR |
( |
void * | data, |
|
|
size_t | len, |
|
|
BaseType_t & | wasWoken ) |
|
inlineinherited |
◆ reset()
bool StreamBufferBase::reset |
( |
| ) |
|
|
inlineinherited |
Resets the buffer to empty.
- Returns
- True if done, stream can not be reset if a task is waiting on the StreamBuffer.
◆ send()
size_t StreamBufferBase::send |
( |
const void * | data, |
|
|
size_t | len, |
|
|
TickType_t | delay = portMAX_DELAY ) |
|
inlineinherited |
◆ send_ISR()
size_t StreamBufferBase::send_ISR |
( |
const void * | data, |
|
|
size_t | len, |
|
|
BaseType_t & | wasWoken ) |
|
inlineinherited |
◆ trigger()
bool StreamBufferBase::trigger |
( |
size_t | trigger | ) |
|
|
inlineinherited |
Sets the Trigger Level for the StreamBuffer.
- Parameters
-
- Returns
- If trigger level was set (false means trigger bigger than the buffer size)
◆ waiting()
size_t StreamBufferBase::waiting |
( |
| ) |
const |
|
inlineinherited |
Get number of bytes of data available in the StreamBuffer.
- Returns
- The number of bytes that can be read
◆ streamHandle
StreamBufferHandle_t StreamBufferBase::streamHandle |
|
inherited |
The documentation for this class was generated from the following file: