DUNE: Uniform Navigational Environment
2020.01.0
|
Public Types |
Public Member Functions | |
Packet (void) | |
void | setProtocolVersion (uint8_t version) |
uint8_t | getProtocolVersion (void) const |
void | setMessageType (uint16_t type) |
uint16_t | getMessageType (void) const |
void | setMessageSize (uint32_t size) |
uint32_t | getMessageSize (void) const |
uint8_t * | getMessageData (void) |
const uint8_t * | getMessageData (void) const |
void | setCommandType (uint8_t type) |
uint8_t | getCommandType (void) const |
void | setChannel (uint8_t channel) |
uint8_t | getChannel (void) const |
void | setSubsystemNumber (uint8_t subsys) |
uint8_t | getSubsystemNumber (void) const |
void | setValue (uint32_t value) |
uint32_t | getValue (void) const |
void | setDataByte (unsigned index, uint8_t byte) |
void | setHeaderByte (unsigned index, uint8_t byte) |
unsigned | getSize (void) const |
uint8_t * | getData (void) |
const uint8_t * | getData (void) const |
template<typename T > | |
void | set (const T &value, unsigned index) |
template<typename T > | |
void | get (T &value, unsigned index) const |
unsigned | getMaximumMessageSize (void) const |
void | dump (void) const |
uint64_t | getTimeStamp (void) const |
void | setTimeStamp (uint64_t time_stamp) |
|
inline |
References HDR_IDX_MARKER, and HDR_IDX_VERSION.
|
inline |
References getSize().
|
inline |
|
inline |
Retrieve channel.
References HDR_IDX_CHANNEL.
Referenced by Sensors::Edgetech2205::CommandLink::shutdown().
|
inline |
Retrieve command type.
References HDR_IDX_CMD_TYPE.
Referenced by Sensors::Edgetech2205::CommandLink::shutdown().
|
inline |
|
inline |
|
inline |
Referenced by Sensors::Edgetech2205::Parser::parse().
|
inline |
Retrieve message data.
References getData().
Referenced by get(), set(), and Sensors::Edgetech2205::Task::writeSubsystemData().
|
inline |
|
inline |
Retrieve message size.
References getData(), and HDR_IDX_MSG_SIZE.
Referenced by getSize(), and Sensors::Edgetech2205::Parser::parse().
|
inline |
Retrieve message type.
References getData(), and HDR_IDX_MSG_TYPE.
Referenced by Sensors::Edgetech2205::Task::handlePacket(), and Sensors::Edgetech2205::CommandLink::shutdown().
|
inline |
Retrieve protocol version.
|
inline |
Retrieve the size of the packet.
References getMessageSize().
Referenced by dump(), Sensors::Edgetech2205::Log::get(), and Sensors::Edgetech2205::CommandLink::shutdown().
|
inline |
Retrieve subsystem number.
References HDR_IDX_SUBSYS.
Referenced by Sensors::Edgetech2205::Task::handleSonarData(), Sensors::Edgetech2205::CommandLink::shutdown(), and Sensors::Edgetech2205::Task::updateSubsystemData().
|
inline |
Get packet's time of reception.
Referenced by Sensors::Edgetech2205::CommandLink::estimateTimeDelta(), and Sensors::Edgetech2205::Task::updateSubsystemData().
|
inline |
References getData().
Referenced by Sensors::Edgetech2205::CommandLink::getPingRange().
|
inline |
References getMessageData().
Referenced by Sensors::Edgetech2205::CommandLink::setPingCoupling(), and Sensors::Edgetech2205::Task::writeSubsystemData().
|
inline |
Set channel.
[in] | channel | channel. |
References HDR_IDX_CHANNEL.
Referenced by Sensors::Edgetech2205::CommandLink::estimateTimeDelta(), Sensors::Edgetech2205::CommandLink::getPingRange(), Sensors::Edgetech2205::Parser::parse(), Sensors::Edgetech2205::CommandLink::setAGC(), Sensors::Edgetech2205::CommandLink::setDataActive(), Sensors::Edgetech2205::CommandLink::setPing(), Sensors::Edgetech2205::CommandLink::setPingAutoselectMode(), Sensors::Edgetech2205::CommandLink::setPingCoupling(), Sensors::Edgetech2205::CommandLink::setPingRange(), Sensors::Edgetech2205::CommandLink::setPingTrigger(), and Sensors::Edgetech2205::CommandLink::shutdown().
|
inline |
Set command type.
[in] | type | command type. |
References HDR_IDX_CMD_TYPE.
Referenced by Sensors::Edgetech2205::CommandLink::estimateTimeDelta(), Sensors::Edgetech2205::CommandLink::getPingRange(), Sensors::Edgetech2205::Parser::parse(), Sensors::Edgetech2205::CommandLink::setAGC(), Sensors::Edgetech2205::CommandLink::setDataActive(), Sensors::Edgetech2205::CommandLink::setPing(), Sensors::Edgetech2205::CommandLink::setPingAutoselectMode(), Sensors::Edgetech2205::CommandLink::setPingCoupling(), Sensors::Edgetech2205::CommandLink::setPingRange(), Sensors::Edgetech2205::CommandLink::setPingTrigger(), and Sensors::Edgetech2205::CommandLink::shutdown().
|
inline |
Referenced by Sensors::Edgetech2205::Parser::parse().
|
inline |
Referenced by Sensors::Edgetech2205::Parser::parse().
|
inline |
Set message size.
[in] | size | message size. |
References getData(), and HDR_IDX_MSG_SIZE.
Referenced by Sensors::Edgetech2205::CommandLink::getPingRange(), Sensors::Edgetech2205::CommandLink::setPingCoupling(), and setValue().
|
inline |
Set message type.
[in] | type | message type. |
References getData(), and HDR_IDX_MSG_TYPE.
Referenced by Sensors::Edgetech2205::CommandLink::estimateTimeDelta(), Sensors::Edgetech2205::CommandLink::getPingRange(), Sensors::Edgetech2205::CommandLink::setAGC(), Sensors::Edgetech2205::CommandLink::setDataActive(), Sensors::Edgetech2205::CommandLink::setPing(), Sensors::Edgetech2205::CommandLink::setPingAutoselectMode(), Sensors::Edgetech2205::CommandLink::setPingCoupling(), Sensors::Edgetech2205::CommandLink::setPingRange(), Sensors::Edgetech2205::CommandLink::setPingTrigger(), and Sensors::Edgetech2205::CommandLink::shutdown().
|
inline |
Set protocol version.
[in] | version | protocol version. |
Referenced by Sensors::Edgetech2205::Parser::parse().
|
inline |
Set subsystem number.
[in] | subsys | subsystem number. |
References HDR_IDX_SUBSYS.
Referenced by Sensors::Edgetech2205::CommandLink::estimateTimeDelta(), Sensors::Edgetech2205::CommandLink::getPingRange(), Sensors::Edgetech2205::Parser::parse(), Sensors::Edgetech2205::CommandLink::setAGC(), Sensors::Edgetech2205::CommandLink::setDataActive(), Sensors::Edgetech2205::CommandLink::setPing(), Sensors::Edgetech2205::CommandLink::setPingAutoselectMode(), Sensors::Edgetech2205::CommandLink::setPingCoupling(), Sensors::Edgetech2205::CommandLink::setPingRange(), Sensors::Edgetech2205::CommandLink::setPingTrigger(), and Sensors::Edgetech2205::CommandLink::shutdown().
|
inline |
Set packet's time of reception.
[in] | time_stamp | milliseconds since Unix Epoch. |
Referenced by Sensors::Edgetech2205::Parser::parse().
|
inline |
References getData(), and setMessageSize().
Referenced by Sensors::Edgetech2205::CommandLink::setAGC(), Sensors::Edgetech2205::CommandLink::setDataActive(), Sensors::Edgetech2205::CommandLink::setPing(), Sensors::Edgetech2205::CommandLink::setPingAutoselectMode(), Sensors::Edgetech2205::CommandLink::setPingRange(), Sensors::Edgetech2205::CommandLink::setPingTrigger(), and Sensors::Edgetech2205::CommandLink::shutdown().