FreeRTOS C++ Wrappers
1.6.0
C++ interface to FreeRTOS
|
#include <queue.hpp>
Public Member Functions | |
BinaryQueue (UBaseType_t itemSize) | |
virtual bool | Enqueue (void *item) |
virtual bool | EnqueueFromISR (void *item, BaseType_t *pxHigherPriorityTaskWoken) |
Public Member Functions inherited from cpp_freertos::Queue | |
Queue (UBaseType_t maxItems, UBaseType_t itemSize) | |
virtual | ~Queue () |
virtual bool | Enqueue (void *item, TickType_t Timeout) |
bool | Dequeue (void *item, TickType_t Timeout=portMAX_DELAY) |
bool | Peek (void *item, TickType_t Timeout=portMAX_DELAY) |
bool | DequeueFromISR (void *item, BaseType_t *pxHigherPriorityTaskWoken) |
bool | PeekFromISR (void *item) |
bool | IsEmpty () |
bool | IsFull () |
void | Flush () |
UBaseType_t | NumItems () |
UBaseType_t | NumSpacesLeft () |
Additional Inherited Members | |
Protected Attributes inherited from cpp_freertos::Queue | |
QueueHandle_t | handle |
Binary queue with overwrite. This queue can only hold one item. If sucessive Enqueue operations are called, that item is overwritten with whatever the last item was.
|
explicit |
Our constructor.
QueueCreateException |
itemSize | Size of an item in a queue. |
Definition at line 196 of file cqueue.cpp.
|
virtual |
Add an item to the queue.
item | The item you are adding. |
Reimplemented from cpp_freertos::Queue.
Definition at line 202 of file cqueue.cpp.
|
virtual |
Add an item to the queue in ISR context.
item | The item you are adding. |
pxHigherPriorityTaskWoken | Did this operation result in a rescheduling event. |
Reimplemented from cpp_freertos::Queue.
Definition at line 209 of file cqueue.cpp.