31 #ifndef MOTORMESSAGE_H 32 #define MOTORMESSAGE_H 35 #include <boost/array.hpp>
static const uint8_t delimeter
MotorMessage::MessageTypes getType() const
void setData(int32_t data)
static uint8_t generateChecksum(const std::vector< uint8_t > &data)
MotorMessage::Registers getRegister() const
boost::array< uint8_t, 8 > RawMotorMessage
static const uint8_t protocol_version
static const uint8_t valid_types[]
static int verifyType(uint8_t t)
RawMotorMessage serialize() const
boost::array< uint8_t, 4 > data
void setRegister(MotorMessage::Registers reg)
void setType(MotorMessage::MessageTypes type)
static const uint8_t valid_registers[]
static int verifyRegister(uint8_t r)
int deserialize(const RawMotorMessage &serialized)