2#define XRP_TAG_MOTOR 0x12
13 static constexpr uint8_t
value = XRP_TAG_MOTOR;
14 static constexpr bool hasId =
true;
42 void setData(
const void* dataPtr)
override
44 if (dataPtr !=
nullptr) {
62 int channelID = (uint8_t)buf[pos + 1];
float networkToFloat(char *buf, int offset)
Definition byteutils.cpp:9
Definition message_type.h:3
Definition xrp_motor.h:19
XrpMotor(uint8_t id, float value)
Definition xrp_motor.h:25
xrp_motor_t data
Definition xrp_motor.h:72
int getTag() override
Definition xrp_motor.h:30
void * getData() override
Definition xrp_motor.h:48
bool hasId() override
Definition xrp_motor.h:34
int fromNetworkBuffer(char *buf, int pos, int end) override
Definition xrp_motor.h:56
void setData(const void *dataPtr) override
Definition xrp_motor.h:42
int toNetworkBuffer(char *buffer, int pos, int end) override
Definition xrp_motor.h:52
XrpMotor()
Definition xrp_motor.h:21
uint8_t getId() override
Definition xrp_motor.h:38
Definition message_type.h:18
static constexpr uint8_t value
Definition message_type.h:19
uint8_t id
Definition xrp_motor.h:7
float value
Definition xrp_motor.h:8