|
arduino-audio-tools
|
FIFO Queue implementation based on Zephyr message queues. More...
#include <QueueZephyr.h>
Public Member Functions | |
| QueueZephyr (int size, TickType_t writeMaxWait=UINT32_MAX, TickType_t readMaxWait=UINT32_MAX, Allocator &allocator=DefaultAllocator) | |
| ~QueueZephyr () | |
| bool | clear () |
| bool | dequeue (T &data) |
| bool | empty () |
| bool | enqueue (T &data) |
| bool | peek (T &data) |
| bool | resize (size_t 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 | |
| bool | is_active = false |
| struct k_msgq | msgq |
| Allocator * | p_allocator = nullptr |
| uint8_t * | p_data = nullptr |
| int | queue_size = 0 |
| TickType_t | read_max_wait = UINT32_MAX |
| TickType_t | write_max_wait = UINT32_MAX |
FIFO Queue implementation based on Zephyr message queues.
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |