|
| Queue (char const *name=0) |
| Constructor.
|
|
bool | add (T const &item, TickType_t time=portMAX_DELAY) |
| add an item at end of the Queue.
|
|
bool | add_ISR (T const &item, portBASE_TYPE &waswoken) |
| add an item at end of the Queue.
|
|
unsigned | available () const |
| Return number of spaces available in Queue.
|
|
bool | empty () |
| Check if Queue is Empty.
|
|
bool | empty_ISR () |
| Is Queue Empty.
|
|
bool | full () |
| Check if Queue is Full.
|
|
bool | full_ISR () |
| Is Queue Full.
|
|
bool | peek (T &var, TickType_t time=0) |
| Look at the first item in the Queue.
|
|
bool | peek_ISR (T &var, portBASE_TYPE &waswoken) |
| Look at the first item in the Queue.
|
|
bool | pop (T &var, TickType_t time=portMAX_DELAY) |
| Get an item from the Queue.
|
|
bool | pop_ISR (T &var, portBASE_TYPE &waswoken) |
| Get an item from the Queue.
|
|
bool | push (T const &item, TickType_t time=portMAX_DELAY) |
| Push an item onto the Queue.
|
|
bool | push_ISR (T const &item, portBASE_TYPE &waswoken) |
| Push an item onto the Queue.
|
|
void | reset () |
| Reset the Queue.
|
|
unsigned | waiting () const |
| Get number of items in the Queue.
|
|
unsigned | waiting_ISR () |
| Get number of message waiting.
|
|
template<class T, unsigned queueLength>
class Queue< T, queueLength >
Queue Wrapper.
Note, is a template on the type of object to place on the queue, which makes the Queue more typesafe.
- Template Parameters
-
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(). |
queuelength | The number of elements to reserve space for in the queue. If 0 (which is the default value) then length will be provided to the constructor dynamically. |
- Todo
add Overwrite operation
add QueueSet Functionality