DUNE: Uniform Navigational Environment
2.4.1
|
All Iridium messages subclass this type.
Public Member Functions | |
virtual int | serialize (uint8_t *buffer)=0 |
virtual int | deserialize (uint8_t *data, uint16_t len)=0 |
virtual | ~IridiumMessage () |
Static Public Member Functions | |
static IridiumMessage * | deserialize (const DUNE::IMC::IridiumMsgRx *msg) |
Public Attributes | |
uint16_t | source |
uint16_t | destination |
uint16_t | msg_id |
|
inlinevirtual |
|
static |
Parse a received message received into an Iridium message.
References DUNE::IMC::IridiumMsgRx::data, DUNE::IMC::GenericIridiumMessage::deserialize(), DUNE::IMC::DeviceUpdate::deserialize(), DUNE::IMC::ActivateSpotSubscription::deserialize(), DUNE::IMC::DeactivateSpotSubscription::deserialize(), DUNE::IMC::IridiumCommand::deserialize(), and msg_id.
Referenced by Transports::Iridium::Task::consume().
|
pure virtual |
Deserialize an Iridium data buffer.
Implemented in DUNE::IMC::IridiumCommand, DUNE::IMC::DeactivateSpotSubscription, DUNE::IMC::ActivateSpotSubscription, DUNE::IMC::DeviceUpdate, and DUNE::IMC::GenericIridiumMessage.
|
pure virtual |
Serialize this message into a data buffer (to be sent via Iridium)
Implemented in DUNE::IMC::IridiumCommand, DUNE::IMC::DeactivateSpotSubscription, DUNE::IMC::ActivateSpotSubscription, DUNE::IMC::DeviceUpdate, and DUNE::IMC::GenericIridiumMessage.
uint16_t DUNE::IMC::IridiumMessage::destination |
The imc id of this message's destination.
Referenced by DUNE::IMC::GenericIridiumMessage::deserialize(), DUNE::IMC::DeviceUpdate::deserialize(), DUNE::IMC::ActivateSpotSubscription::deserialize(), DUNE::IMC::DeactivateSpotSubscription::deserialize(), DUNE::IMC::IridiumCommand::deserialize(), Transports::Iridium::Task::send_device_updates(), DUNE::IMC::GenericIridiumMessage::serialize(), DUNE::IMC::DeviceUpdate::serialize(), DUNE::IMC::ActivateSpotSubscription::serialize(), DUNE::IMC::DeactivateSpotSubscription::serialize(), and DUNE::IMC::IridiumCommand::serialize().
uint16_t DUNE::IMC::IridiumMessage::msg_id |
The message id (can wither be an IMC id or an Iridium extension.
Referenced by DUNE::IMC::ActivateSpotSubscription::ActivateSpotSubscription(), Transports::Iridium::Task::consume(), DUNE::IMC::DeactivateSpotSubscription::DeactivateSpotSubscription(), deserialize(), DUNE::IMC::GenericIridiumMessage::deserialize(), DUNE::IMC::DeviceUpdate::deserialize(), DUNE::IMC::ActivateSpotSubscription::deserialize(), DUNE::IMC::DeactivateSpotSubscription::deserialize(), DUNE::IMC::IridiumCommand::deserialize(), DUNE::IMC::DeviceUpdate::DeviceUpdate(), DUNE::IMC::GenericIridiumMessage::GenericIridiumMessage(), DUNE::IMC::IridiumCommand::IridiumCommand(), DUNE::IMC::GenericIridiumMessage::serialize(), DUNE::IMC::DeviceUpdate::serialize(), DUNE::IMC::ActivateSpotSubscription::serialize(), DUNE::IMC::DeactivateSpotSubscription::serialize(), and DUNE::IMC::IridiumCommand::serialize().
uint16_t DUNE::IMC::IridiumMessage::source |
The imc id of this message's origin.
Referenced by DUNE::IMC::GenericIridiumMessage::deserialize(), DUNE::IMC::DeviceUpdate::deserialize(), DUNE::IMC::ActivateSpotSubscription::deserialize(), DUNE::IMC::DeactivateSpotSubscription::deserialize(), DUNE::IMC::IridiumCommand::deserialize(), Transports::Iridium::Task::send_device_updates(), DUNE::IMC::GenericIridiumMessage::serialize(), DUNE::IMC::DeviceUpdate::serialize(), DUNE::IMC::ActivateSpotSubscription::serialize(), DUNE::IMC::DeactivateSpotSubscription::serialize(), and DUNE::IMC::IridiumCommand::serialize().