29 #ifndef INCLUDE_OLA_RDM_RDMCOMMANDSERIALIZER_H_
30 #define INCLUDE_OLA_RDM_RDMCOMMANDSERIALIZER_H_
33 #include <ola/io/ByteString.h>
34 #include <ola/io/IOStack.h>
106 enum { MAX_PARAM_DATA_LENGTH = 231 };
109 static const unsigned int CHECKSUM_LENGTH = 2;
116 #endif // INCLUDE_OLA_RDM_RDMCOMMANDSERIALIZER_H_
Definition: RDMPacket.h:44
A RDM unique identifier (UID).
static bool Pack(const RDMCommand &command, ola::io::ByteString *output)
Serialize a RDMCommand to a ByteString, without the RDM Start Code.
Definition: RDMCommandSerializer.cpp:43
The base class that all RDM requests & responses inherit from.
Definition: RDMCommand.h:59
Serializes RDMCommands.
Definition: RDMCommandSerializer.h:49
static bool Write(const RDMCommand &command, ola::io::IOStack *stack)
Write the binary representation of an RDMCommand to an IOStack.
Definition: RDMCommandSerializer.cpp:102
static bool PackWithStartCode(const RDMCommand &command, ola::io::ByteString *output)
Serialize a RDMCommand to a ByteString, with the RDM Start Code.
Definition: RDMCommandSerializer.cpp:68
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
std::basic_string< uint8_t > ByteString
A contiguous block of uint8_t data.
Definition: ByteString.h:40
static unsigned int RequiredSize(const RDMCommand &command)
Return the number of bytes required to store the serialized version of the RDMCommand.
Definition: RDMCommandSerializer.cpp:34
Classes that represent RDM commands.