arduino-audio-tools
Loading...
Searching...
No Matches
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:
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy