DUNE: Uniform Navigational Environment
2016.09.0
|
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::ImcIridiumMessage::deserialize(), DUNE::IMC::DeviceUpdate::deserialize(), DUNE::IMC::ExtendedDeviceUpdate::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::ExtendedDeviceUpdate, DUNE::IMC::DeviceUpdate, and DUNE::IMC::ImcIridiumMessage.
|
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::ExtendedDeviceUpdate, DUNE::IMC::DeviceUpdate, and DUNE::IMC::ImcIridiumMessage.
uint16_t DUNE::IMC::IridiumMessage::destination |
The imc id of this message's destination.
Referenced by DUNE::IMC::ImcIridiumMessage::deserialize(), DUNE::IMC::DeviceUpdate::deserialize(), DUNE::IMC::ExtendedDeviceUpdate::deserialize(), DUNE::IMC::ActivateSpotSubscription::deserialize(), DUNE::IMC::DeactivateSpotSubscription::deserialize(), DUNE::IMC::IridiumCommand::deserialize(), Transports::Iridium::Task::sendAnnounce(), Transports::Iridium::Task::sendDeviceUpdates(), DUNE::IMC::ImcIridiumMessage::serialize(), DUNE::IMC::DeviceUpdate::serialize(), DUNE::IMC::ExtendedDeviceUpdate::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::ImcIridiumMessage::deserialize(), DUNE::IMC::DeviceUpdate::deserialize(), DUNE::IMC::ExtendedDeviceUpdate::deserialize(), DUNE::IMC::ActivateSpotSubscription::deserialize(), DUNE::IMC::DeactivateSpotSubscription::deserialize(), DUNE::IMC::IridiumCommand::deserialize(), DUNE::IMC::DeviceUpdate::DeviceUpdate(), DUNE::IMC::ExtendedDeviceUpdate::ExtendedDeviceUpdate(), DUNE::IMC::ImcIridiumMessage::ImcIridiumMessage(), DUNE::IMC::IridiumCommand::IridiumCommand(), DUNE::IMC::ImcIridiumMessage::serialize(), DUNE::IMC::DeviceUpdate::serialize(), DUNE::IMC::ExtendedDeviceUpdate::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::ImcIridiumMessage::deserialize(), DUNE::IMC::DeviceUpdate::deserialize(), DUNE::IMC::ExtendedDeviceUpdate::deserialize(), DUNE::IMC::ActivateSpotSubscription::deserialize(), DUNE::IMC::DeactivateSpotSubscription::deserialize(), DUNE::IMC::IridiumCommand::deserialize(), Transports::Iridium::Task::sendAnnounce(), Transports::Iridium::Task::sendDeviceUpdates(), DUNE::IMC::ImcIridiumMessage::serialize(), DUNE::IMC::DeviceUpdate::serialize(), DUNE::IMC::ExtendedDeviceUpdate::serialize(), DUNE::IMC::ActivateSpotSubscription::serialize(), DUNE::IMC::DeactivateSpotSubscription::serialize(), and DUNE::IMC::IridiumCommand::serialize().