arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QueueRTOS< T > Class Template Reference

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

Allocatorp_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
 

Detailed Description

template<class T>
class audio_tools::QueueRTOS< T >

FIFO Queue whch is based on the FreeRTOS queue API. The default allocator will allocate the memory from psram if available.

Author
Phil Schatzmann
Template Parameters
T

The documentation for this class was generated from the following file: