arduino-audio-tools
|
FIFO Queue whch is based on the FreeRTOS queue API. The default allocator will allocate the memory from psram if available. More...
#include <QueueRTOS.h>
Public Member Functions | |
QueueRTOS (int size, TickType_t writeMaxWait=portMAX_DELAY, TickType_t readMaxWait=portMAX_DELAY, Allocator &allocator=DefaultAllocator) | |
bool | clear () |
bool | dequeue (T &data) |
bool | empty () |
bool | enqueue (T &data) |
bool | peek (T &data) |
bool | resize (int size) |
(Re-)defines the size | |
void | setReadMaxWait (TickType_t ticks) |
void | setWriteMaxWait (TickType_t ticks) |
size_t | size () |
Protected Member Functions | |
void | end () |
bool | setup () |
Protected Attributes | |
Allocator * | p_allocator = nullptr |
uint8_t * | p_data = nullptr |
StaticQueue_t | queue_buffer |
int | queue_size |
TickType_t | read_max_wait = portMAX_DELAY |
TickType_t | write_max_wait = portMAX_DELAY |
QueueHandle_t | xQueue = nullptr |
FIFO Queue whch is based on the FreeRTOS queue API. The default allocator will allocate the memory from psram if available.
T |