FreeRTOScpp
|
Base class for the Various Stream Buffers. More...
#include <StreamBufferCPP.h>
Public Member Functions | |
StreamBufferBase (StreamBufferHandle_t sbHandle) | |
virtual | ~StreamBufferBase () |
size_t | available () const |
Get the amount of available space open in the StreamBuffer. More... | |
bool | isEmpty () const |
bool | isFull () const |
size_t | read (void *data, size_t len, TickType_t delay=portMAX_DELAY) |
size_t | read (void *data, size_t len, Time_ms delay) |
size_t | read_ISR (void *data, size_t len, BaseType_t &wasWoken) |
bool | reset () |
Resets the buffer to empty. More... | |
size_t | send (const void *data, size_t len, TickType_t delay=portMAX_DELAY) |
size_t | send (const void *data, size_t len, Time_ms delay) |
size_t | send_ISR (const void *data, size_t len, BaseType_t &wasWoken) |
bool | trigger (size_t trigger) |
Sets the Trigger Level for the StreamBuffer. More... | |
size_t | waiting () const |
Get number of bytes of data available in the StreamBuffer. More... | |
Public Attributes | |
StreamBufferHandle_t | streamHandle |
Base class for the Various Stream Buffers.
This class provides all the generic operations.
The derived class will create the buffer, or can be created as a wrapper from an existing streambuffer.
|
inline |
Referenced by FreeRTOScpp::StreamBuffer< size >::~StreamBuffer().
|
inlinevirtual |
|
inline |
Get the amount of available space open in the StreamBuffer.
References streamHandle.
|
inline |
References streamHandle.
|
inline |
References streamHandle.
|
inline |
References streamHandle.
|
inline |
|
inline |
References streamHandle.
|
inline |
Resets the buffer to empty.
References streamHandle.
|
inline |
References streamHandle.
|
inline |
|
inline |
References streamHandle.
|
inline |
Sets the Trigger Level for the StreamBuffer.
trigger | the Trigger Level |
References streamHandle.
Referenced by FreeRTOScpp::StreamBuffer< size >::~StreamBuffer().
|
inline |
Get number of bytes of data available in the StreamBuffer.
References streamHandle.
StreamBufferHandle_t FreeRTOScpp::StreamBufferBase::streamHandle |
Referenced by available(), isEmpty(), isFull(), read(), read_ISR(), reset(), send(), send_ISR(), trigger(), waiting(), and FreeRTOScpp::StreamBuffer< size >::~StreamBuffer().