tetl 0.1.0
Embedded Template Library
|
Wrapper around a FreeRTOS queue. More...
#include <queue.hpp>
Public Types | |
using | size_type = etl::uint32_t |
using | value_type = T |
Public Member Functions | |
queue () | |
Creates a new queue. RAM is automatically allocated from the FreeRTOS heap. | |
queue (queue &&)=delete | |
queue (queue const &)=delete | |
~queue () | |
Delete a queue - freeing all the memory allocated for storing of items placed on the queue. | |
auto | capacity () const -> size_type |
Returns the capacity of the internal buffer. | |
auto | messages_waiting () const -> etl::uint32_t |
auto | operator= (queue &&) -> queue &=delete |
auto | operator= (queue const &) -> queue &=delete |
auto | receive (T &data, TickType_t ticksToWait=0) const -> bool |
Pop an element of the queue. | |
auto | receive (TickType_t ticksToWait=0) const -> pair< bool, T > |
Pop an element of the queue. | |
auto | reset () const -> bool |
auto | send (T const &data, TickType_t ticksToWait=0) const -> bool |
Push an element on to the queue. | |
Wrapper around a FreeRTOS queue.
https://www.freertos.org/Embedded-RTOS-Queues.html
T | The type that's being stored inside the queue. |
Size | The maximum capacity of the queue. |
using value_type = T |
|
inline |
Creates a new queue. RAM is automatically allocated from the FreeRTOS heap.
|
inline |
Delete a queue - freeing all the memory allocated for storing of items placed on the queue.
|
inline |
|
inline |
Pop an element of the queue.
|
inline |
Pop an element of the queue.
|
inline |
Push an element on to the queue.