Open Lighting Architecture  0.9.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Static Public Member Functions | List of all members
ola::rdm::RDMCommandSerializer Class Reference

Public Types

enum  { MAX_PARAM_DATA_LENGTH = 231 }

Static Public Member Functions

static unsigned int RequiredSize (const RDMCommand &command)
static bool Pack (const RDMCommand &command, uint8_t *buffer, unsigned int *size)
static bool Pack (const RDMRequest &request, uint8_t *buffer, unsigned int *size, const UID &source, uint8_t transaction_number, uint8_t port_id)
static bool Write (const RDMCommand &command, ola::io::IOStack *stack)
static bool Write (const RDMRequest &request, ola::io::IOStack *stack, const UID &source, uint8_t transaction_number, uint8_t port_id)

Member Function Documentation

bool ola::rdm::RDMCommandSerializer::Pack ( const RDMCommand command,
uint8_t *  buffer,
unsigned int *  size 
)
static

Pack this RDMCommand into a memory buffer.

Parameters
commandthe RDMCommand to pack
buffera pointer to the memory location to use
sizethe size of the memory location. Update with the number of bytes written.
Returns
true if successful, false otherwise.
bool ola::rdm::RDMCommandSerializer::Pack ( const RDMRequest request,
uint8_t *  buffer,
unsigned int *  size,
const UID source,
uint8_t  transaction_number,
uint8_t  port_id 
)
static

Pack this RDMRequest into a memory buffer, using the supplied parameters to override what's in the request.

Parameters
requestthe RDMRequest to pack
buffera pointer to the memory location to use
sizethe size of the memory location. Update with the number of bytes written.
sourcethe source UID
transaction_numberthe RDM transaction number
port_idthe RDM port id
Returns
true if successful, false otherwise.

The documentation for this class was generated from the following files: