DUNE: Uniform Navigational Environment
2016.05.0
|
This struct has methods to encode/decode several Reference IMC messages into single UamTxFrame/UamRxFrame IMC messages.
Static Public Member Functions | |
static void | encodeById (const IMC::Reference *msg, IMC::UamTxFrame *frame, uint8_t id) |
static IMC::Message * | decodeById (const IMC::UamRxFrame *frame, uint8_t id) |
static size_t | getPayloadSize (uint8_t num) |
Static Public Attributes | |
static const uint8_t | c_id |
|
inlinestatic |
Decode an UamRxFrame by System ID to retrieve a Reference message.
[in] | frame | UamRxFrame pointer. |
[in] | id | System ID. |
References DUNE::IMC::UamRxFrame::data.
|
inlinestatic |
Encode a Reference message to a UamTxFrame by System ID.
[in] | msg | Reference pointer. |
[out] | frame | UamTxFrame pointer. |
[in] | id | System ID. |
References DUNE::IMC::UamTxFrame::data.
|
inlinestatic |
Get payload size by number of Reference messages.
|
static |
Code to identify Reference.