![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
#include <bsp.hpp>
Public Member Functions | |
| msgq () | |
| size_t | size () |
| A virtual method that returns the current number of messages in the queue. | |
| uint32_t | free_space () |
| int | put (const T &msg, size_t timeout_ms) |
| A virtual method that enqueues a message into the queue. | |
| int | put_isr (const T &msg) |
| A virtual method that enqueues a message into the queue from an interrupt context. | |
| int | peek (T *msg) |
| A virtual method that peeks at the next message in the queue without removing it. | |
| void | purge () |
| int | get (T *msg, size_t timeout_ms) |
| A virtual method that retrieves a message from the queue. | |
| int | get_isr (T *msg) |
| A virtual method that retrieves a message from the queue from an interrupt context. | |
| Public Member Functions inherited from satnogs::comms::lib::bsp::msgq< T, LEN > | |
| msgq () | |
| Public Member Functions inherited from satnogs::comms::lib::bsp::imsgq< T > | |
| imsgq (size_t len) | |
| Constructs an imsgq object with a specified maximum size. | |
| imsgq (const imsgq &)=delete | |
| size_t | max_size () const |
| A method that returns the maximum size of the message queue. | |
Additional Inherited Members | |
| Protected Attributes inherited from satnogs::comms::lib::bsp::imsgq< T > | |
| const size_t | m_len |
|
inline |
|
inline |
|
inlinevirtual |
A virtual method that retrieves a message from the queue.
| msg | Pointer to store the retrieved message of type T. |
| timeout_ms | The timeout in milliseconds to wait if the queue is empty. |
Implements satnogs::comms::lib::bsp::imsgq< T >.
|
inlinevirtual |
A virtual method that retrieves a message from the queue from an interrupt context.
| msg | Pointer to store the retrieved message. |
Implements satnogs::comms::lib::bsp::imsgq< T >.
|
inlinevirtual |
A virtual method that peeks at the next message in the queue without removing it.
| msg | Pointer to store the peeked message of type T. |
Implements satnogs::comms::lib::bsp::imsgq< T >.
|
inline |
|
inlinevirtual |
A virtual method that enqueues a message into the queue.
| msg | The message of type T to enqueue. |
| timeout_ms | The timeout in milliseconds to wait if the queue is full. |
Implements satnogs::comms::lib::bsp::imsgq< T >.
|
inlinevirtual |
A virtual method that enqueues a message into the queue from an interrupt context.
| msg | The message of type T to enqueue. |
Implements satnogs::comms::lib::bsp::imsgq< T >.
|
inlinevirtual |
A virtual method that returns the current number of messages in the queue.
Implements satnogs::comms::lib::bsp::imsgq< T >.