DUNE: Uniform Navigational Environment
2019.02.0
|
An Iridium message that encapsulates an IMC message.
Public Member Functions | |
ImcIridiumMessage () | |
ImcIridiumMessage (DUNE::IMC::Message *msg) | |
int | serialize (uint8_t *buffer) |
int | deserialize (uint8_t *data, uint16_t len) |
~ImcIridiumMessage () | |
Public Member Functions inherited from DUNE::IMC::IridiumMessage | |
virtual | ~IridiumMessage () |
Public Attributes | |
DUNE::IMC::Message * | msg |
Public Attributes inherited from DUNE::IMC::IridiumMessage | |
uint16_t | source |
uint16_t | destination |
uint16_t | msg_id |
Additional Inherited Members | |
Static Public Member Functions inherited from DUNE::IMC::IridiumMessage | |
static IridiumMessage * | deserialize (const DUNE::IMC::IridiumMsgRx *msg) |
DUNE::IMC::ImcIridiumMessage::ImcIridiumMessage | ( | ) |
References msg, and DUNE::IMC::IridiumMessage::msg_id.
DUNE::IMC::ImcIridiumMessage::ImcIridiumMessage | ( | DUNE::IMC::Message * | msg | ) |
References msg, and DUNE::IMC::IridiumMessage::msg_id.
DUNE::IMC::ImcIridiumMessage::~ImcIridiumMessage | ( | ) |
References msg.
|
virtual |
Deserialize an Iridium data buffer.
Implements DUNE::IMC::IridiumMessage.
References DUNE::IMC::deserialize(), DUNE::IMC::Message::deserializeFields(), DUNE::IMC::IridiumMessage::destination, msg, DUNE::IMC::IridiumMessage::msg_id, DUNE::IMC::Factory::produce(), DUNE::IMC::Message::setTimeStamp(), and DUNE::IMC::IridiumMessage::source.
Referenced by DUNE::IMC::IridiumMessage::deserialize().
|
virtual |
Serialize this message into a data buffer (to be sent via Iridium)
Implements DUNE::IMC::IridiumMessage.
References DUNE::IMC::IridiumMessage::destination, DUNE::IMC::Message::getId(), DUNE::IMC::Message::getTimeStamp(), msg, DUNE::IMC::IridiumMessage::msg_id, DUNE::IMC::serialize(), DUNE::IMC::Message::serializeFields(), and DUNE::IMC::IridiumMessage::source.
Referenced by Transports::Iridium::Task::sendAnnounce().
DUNE::IMC::Message* DUNE::IMC::ImcIridiumMessage::msg |
Referenced by Transports::Iridium::Task::consume(), deserialize(), ImcIridiumMessage(), serialize(), and ~ImcIridiumMessage().