|
BCNP 3.2.1
Batched Command Network Protocol
|
Legacy CommandQueue - use MessageQueue<DriveCmd> for new code. More...
#include <command_queue.h>
Public Member Functions | |
| CommandQueue (MessageQueueConfig config={}) | |
| void | NotifyPacketReceived (Clock::time_point now) |
| std::optional< DriveCmd > | ActiveCommand () const |
| void | IncrementParseErrors () |
Public Member Functions inherited from bcnp::MessageQueue< DriveCmd > | |
| MessageQueue (MessageQueueConfig config={}) | |
| void | Clear () |
| Remove all messages from the queue. | |
| bool | Push (const DriveCmd &message) |
| Add a message to the back of the queue. | |
| std::size_t | Size () const |
| Get the current number of queued messages. | |
| void | NotifyReceived (Clock::time_point now) |
| Notify that messages were received from the network. | |
| void | Update (Clock::time_point now) |
| Update queue state - call once per control loop iteration. | |
| std::optional< DriveCmd > | ActiveMessage () const |
| Get the currently executing message. | |
| bool | IsConnected (Clock::time_point now) const |
| Check if the connection is still active. | |
| MessageQueueMetrics | GetMetrics () const |
| Get current queue metrics. | |
| void | ResetMetrics () |
| Reset all metrics to zero. | |
| void | SetConfig (const MessageQueueConfig &config) |
| Update queue configuration. | |
| MessageQueueConfig | GetConfig () const |
| Transaction | BeginTransaction () |
Additional Inherited Members | |
Public Types inherited from bcnp::MessageQueue< DriveCmd > | |
| using | Clock |
Legacy CommandQueue - use MessageQueue<DriveCmd> for new code.
Definition at line 16 of file command_queue.h.
|
inlineexplicit |
Definition at line 18 of file command_queue.h.
|
inline |
|
inline |
Definition at line 24 of file command_queue.h.
|
inline |