FreeRTOScpp
|
#include <QueueCPP.h>
Public Member Functions | |
bool | add (T const &item, TickType_t time=portMAX_DELAY) |
add an item at end of the Queue. More... | |
bool | add (T const &item, Time_ms time) |
add an item at end of the Queue. More... | |
bool | add_ISR (T const &item, portBASE_TYPE &waswoken) |
add an item at end of the Queue. More... | |
unsigned | available () const |
Return number of spaces available in Queue. More... | |
bool | empty () |
Check if Queue is Empty. More... | |
bool | empty_ISR () |
Is Queue Empty. More... | |
bool | full () |
Check if Queue is Full. More... | |
bool | full_ISR () |
Is Queue Full. More... | |
bool | peek (T &var, TickType_t time=0) |
Look at the first item in the Queue. More... | |
bool | peek (T &var, Time_ms time) |
Look at the first item in the Queue. More... | |
bool | peek_ISR (T &var, portBASE_TYPE &waswoken) |
Look at the first item in the Queue. More... | |
bool | pop (T &var, TickType_t time=portMAX_DELAY) |
Get an item from the Queue. More... | |
bool | pop (T &var, Time_ms time) |
Get an item from the Queue. More... | |
bool | pop_ISR (T &var, portBASE_TYPE &waswoken) |
Get an item from the Queue. More... | |
bool | push (T const &item, TickType_t time=portMAX_DELAY) |
Push an item onto the Queue. More... | |
bool | push (T const &item, Time_ms time) |
Push an item onto the Queue. More... | |
bool | push_ISR (T const &item, portBASE_TYPE &waswoken) |
Push an item onto the Queue. More... | |
void | reset () |
Reset the Queue. More... | |
unsigned | waiting () const |
Get number of items in the Queue. More... | |
unsigned | waiting_ISR () |
Get number of message waiting. More... | |
Protected Member Functions | |
QueueTypeBase (QueueHandle_t handle_) | |
Protected Attributes | |
QueueHandle_t | queueHandle |
Typed Queue Wrapper.
This Base Class provides the Type Dependent functionality for a Queue
|
inlineprotected |
|
inline |
add an item at end of the Queue.
Puts an item onto the Queue so it will be the last item to remove.
References FreeRTOScpp::QueueBase::queueHandle.
|
inline |
add an item at end of the Queue.
Puts an item onto the Queue so it will be the last item to remove.
References FreeRTOScpp::ms2ticks(), and FreeRTOScpp::QueueBase::queueHandle.
|
inline |
add an item at end of the Queue.
Puts an item onto the Queue so it will be the last item to remove.
Note: Interrupt service routines should only call _ISR routines.
item | The item to put on the Queue. |
waswoken | Flag variable to determine if context switch is needed. |
References FreeRTOScpp::QueueBase::queueHandle.
|
inlineinherited |
Return number of spaces available in Queue.
References FreeRTOScpp::QueueBase::queueHandle.
|
inlineinherited |
Check if Queue is Empty.
References FreeRTOScpp::QueueBase::queueHandle.
|
inlineinherited |
Is Queue Empty.
Note: Interrupt service routines should only call _ISR routines.
References FreeRTOScpp::QueueBase::queueHandle.
|
inlineinherited |
Check if Queue is Full.
References FreeRTOScpp::QueueBase::queueHandle.
|
inlineinherited |
Is Queue Full.
Note: Interrupt service routines should only call _ISR routines.
References FreeRTOScpp::QueueBase::queueHandle.
|
inline |
Look at the first item in the Queue.
Gets the first item from the Queue leaving it there.
var | Variable to place the item |
time | How long to wait for an item to be available. |
References FreeRTOScpp::QueueBase::queueHandle.
|
inline |
Look at the first item in the Queue.
Gets the first item from the Queue leaving it there.
var | Variable to place the item |
time | How long to wait for an item to be available. |
References FreeRTOScpp::ms2ticks(), and FreeRTOScpp::QueueBase::queueHandle.
|
inline |
Look at the first item in the Queue.
Gets the first item from the Queue leaving it there.
Note: Interrupt service routines should only call _ISR routines.
var | Variable to place the item |
waswoken | Flag variable to determine if context switch is needed. |
References FreeRTOScpp::QueueBase::queueHandle.
|
inline |
Get an item from the Queue.
Gets the first item from the Queue
var | Variable to place the item |
time | How long to wait for an item to be available. |
References FreeRTOScpp::QueueBase::queueHandle.
|
inline |
Get an item from the Queue.
Gets the first item from the Queue
var | Variable to place the item |
time | How long to wait for an item to be available. |
References FreeRTOScpp::ms2ticks(), and FreeRTOScpp::QueueBase::queueHandle.
|
inline |
Get an item from the Queue.
Gets the first item from the Queue
Note: Interrupt service routines should only call _ISR routines.
var | Variable to place the item |
waswoken | Flag variable to determine if context switch is needed. |
References FreeRTOScpp::QueueBase::queueHandle.
|
inline |
Push an item onto the Queue.
Puts an item onto the Queue so it will be the next item to remove.
References FreeRTOScpp::QueueBase::queueHandle.
|
inline |
Push an item onto the Queue.
Puts an item onto the Queue so it will be the next item to remove.
References FreeRTOScpp::ms2ticks(), and FreeRTOScpp::QueueBase::queueHandle.
|
inline |
Push an item onto the Queue.
Puts an item onto the Queue so it will be the next item to remove.
Note: Interrupt service routines should only call _ISR routines.
item | The item to put on the Queue. |
waswoken | Flag variable to determine if context switch is needed. |
References FreeRTOScpp::QueueBase::queueHandle.
|
inlineinherited |
Reset the Queue.
Resets the Queue to an empty state.
References FreeRTOScpp::QueueBase::queueHandle.
|
inlineinherited |
Get number of items in the Queue.
References FreeRTOScpp::QueueBase::queueHandle.
|
inlineinherited |
Get number of message waiting.
Note: Interrupt service routines should only call _ISR routines.
References FreeRTOScpp::QueueBase::queueHandle.
|
protectedinherited |
Referenced by FreeRTOScpp::QueueTypeBase< T >::add(), FreeRTOScpp::QueueTypeBase< T >::add_ISR(), FreeRTOScpp::QueueBase::available(), FreeRTOScpp::QueueBase::empty(), FreeRTOScpp::QueueBase::empty_ISR(), FreeRTOScpp::QueueBase::full(), FreeRTOScpp::QueueBase::full_ISR(), FreeRTOScpp::QueueTypeBase< T >::peek(), FreeRTOScpp::QueueTypeBase< T >::peek_ISR(), FreeRTOScpp::QueueTypeBase< T >::pop(), FreeRTOScpp::QueueTypeBase< T >::pop_ISR(), FreeRTOScpp::QueueTypeBase< T >::push(), FreeRTOScpp::QueueTypeBase< T >::push_ISR(), FreeRTOScpp::Queue< T, queueLength >::Queue(), FreeRTOScpp::QueueBase::reset(), FreeRTOScpp::QueueBase::waiting(), FreeRTOScpp::QueueBase::waiting_ISR(), and FreeRTOScpp::QueueBase::~QueueBase().