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
-
command | the RDMCommand to pack |
buffer | a pointer to the memory location to use |
size | the 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
-
request | the RDMRequest to pack |
buffer | a pointer to the memory location to use |
size | the size of the memory location. Update with the number of bytes written. |
source | the source UID |
transaction_number | the RDM transaction number |
port_id | the RDM port id |
- Returns
- true if successful, false otherwise.
The documentation for this class was generated from the following files: