Open Lighting Architecture
Latest Git
|
Serializes RDMCommands.
This creates the binary representation of an RDMCommand. The binary representation is restricted to 231 bytes of parameter data. If the message is more than 231 bytes then the methods will return false.
Public Types | |
enum | { MAX_PARAM_DATA_LENGTH = 231 } |
The maximum parameter data a single command can contain. | |
Static Public Member Functions | |
static bool | Pack (const RDMCommand &command, ola::io::ByteString *output) |
Serialize a RDMCommand to a ByteString, without the RDM Start Code. More... | |
static bool | PackWithStartCode (const RDMCommand &command, ola::io::ByteString *output) |
Serialize a RDMCommand to a ByteString, with the RDM Start Code. More... | |
static unsigned int | RequiredSize (const RDMCommand &command) |
Return the number of bytes required to store the serialized version of the RDMCommand. More... | |
static bool | Pack (const RDMCommand &command, uint8_t *buffer, unsigned int *size) |
Serialize a RDMCommand to an array of bytes. More... | |
static bool | Write (const RDMCommand &command, ola::io::IOStack *stack) |
Write the binary representation of an RDMCommand to an IOStack. More... | |
|
static |
Serialize a RDMCommand to a ByteString, without the RDM Start Code.
command | the RDMCommand to serialize. | |
[out] | output | The ByteString to append to. |
|
static |
Serialize a RDMCommand to an array of bytes.
command | the RDMCommand to serialize. | |
buffer | The memory location to serialize to. | |
[in,out] | size | The size of the memory location. |
The size of the memory location should be at least as large as what was returned from RequiredSize().
|
static |
Serialize a RDMCommand to a ByteString, with the RDM Start Code.
command | the RDMCommand to serialize. | |
[out] | output | The ByteString to append to. |
|
static |
Return the number of bytes required to store the serialized version of the RDMCommand.
command | The RDMCommand which will be serialized. |
|
static |
Write the binary representation of an RDMCommand to an IOStack.
command | the RDMCommand |
stack | the IOStack to write to. |