FreeRTOS C++ Wrappers
|
#include <QueueCPP.h>
Public Member Functions | |
Queue (unsigned portBASE_TYPE length, char const *name) | |
~Queue () | |
unsigned portBASE_TYPE | waiting () const |
bool | push (T const &item, TickType_t time=portMAX_DELAY) |
bool | add (T const &item, TickType_t time=portMAX_DELAY) |
bool | pop (T &var, TickType_t time=portMAX_DELAY) |
bool | peek (T &var, TickType_t time=portMAX_DELAY) |
bool | full () |
bool | empty () |
bool | push_ISR (T const &item) |
bool | add_ISR (T const &item) |
bool | pop_ISR (T &var) |
bool | peek_ISR (T &var) |
bool | full_ISR () |
bool | empty_ISR () |
unsigned | waiting_ISR () |
void | start_ISR (portBASE_TYPE &flag) |
Queue Wrapper.
Note, is a template on the type of object to place on the queue, which makes the Queue more typesafe.
T | The type of object to be placed on the queue. Note also, this type needs to be trivially copyable, and preferably a POD as the FreeRTOS queue code will copy it with memcpy(). |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |