rogue
Loading...
Searching...
No Matches
Cmd.h
Go to the documentation of this file.
1
17#ifndef __ROGUE_PROTOCOLS_SRP_CMD_H__
18#define __ROGUE_PROTOCOLS_SRP_CMD_H__
19#include "rogue/Directives.h"
20
21#include <stdint.h>
22
23#include <memory>
24#include <thread>
25
27
28namespace rogue {
29namespace protocols {
30namespace srp {
31
49 public:
60 static std::shared_ptr<rogue::protocols::srp::Cmd> create();
61
63 static void setup_python();
64
72 Cmd();
73
75 ~Cmd();
76
83 void sendCmd(uint8_t opCode, uint32_t context);
84};
85
86// Convenience
87typedef std::shared_ptr<rogue::protocols::srp::Cmd> CmdPtr;
88} // namespace srp
89} // namespace protocols
90} // namespace rogue
91#endif
Stream master endpoint.
Definition Master.h:65
Lightweight command protocol transmitter for opcode/context messages.
Definition Cmd.h:48
static std::shared_ptr< rogue::protocols::srp::Cmd > create()
Creates an SRP command interface instance.
Definition Cmd.cpp:39
void sendCmd(uint8_t opCode, uint32_t context)
Sends an SRP command frame.
Definition Cmd.cpp:60
Cmd()
Constructs an SRP command interface.
Definition Cmd.cpp:54
~Cmd()
Destroys the SRP command interface.
Definition Cmd.cpp:57
static void setup_python()
Registers Python bindings for this class.
Definition Cmd.cpp:45
std::shared_ptr< rogue::protocols::srp::Cmd > CmdPtr
Definition Cmd.h:87