![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
Hello message payload. More...
Public Member Functions | |
uint16_t | size () const |
Number bytes needed to serialize the message. More... | |
uint16_t | pack (HF::Common::ByteArray &array, uint16_t offset=0) const |
Write the object on to a ByteArray so it can be sent over the network. More... | |
uint16_t | unpack (HF::Common::ByteArray &array, uint16_t offset=0) |
Read a message from a ByteArray. More... | |
Data Fields | |
uint8_t | core |
HAN-FUN Core Services & Interfaces version. More... | |
uint8_t | profiles |
HAN-FUN Profiles version. More... | |
uint8_t | interfaces |
HAN-FUN Interfaces version. More... | |
HF::UID::UID | uid |
Remote device UID. More... | |
Static Public Attributes | |
static constexpr uint16_t | min_size = 3 * sizeof(uint8_t) |
Minimum pack/unpack required data size. | |
Hello message payload.
Definition at line 142 of file transport.cpp.
|
inline |
Write the object on to a ByteArray so it can be sent over the network.
The buffer passed in MUST have enough size to hold the serialized object, e.g.,
[in,out] | array | ByteArray reference to write the object to. |
[in] | offset | offset to start writing to. |
Definition at line 164 of file transport.cpp.
References core, HF_SERIALIZABLE_CHECK, interfaces, HF::UID::UID::pack(), profiles, size(), uid, and HF::Common::ByteArray::write().
|
inline |
Number bytes needed to serialize the message.
Definition at line 158 of file transport.cpp.
References min_size, HF::UID::UID::size(), and uid.
Referenced by pack().
|
inline |
Read a message from a ByteArray.
[in] | array | ByteArray reference to read the message from. |
[in] | offset | offset to start reading from. |
Definition at line 180 of file transport.cpp.
References core, HF_SERIALIZABLE_CHECK, interfaces, min_size, profiles, HF::Common::ByteArray::read(), uid, and HF::UID::UID::unpack().
uint8_t hello_msg_t::core |
HAN-FUN Core Services & Interfaces version.
Definition at line 144 of file transport.cpp.
uint8_t hello_msg_t::interfaces |
HAN-FUN Interfaces version.
Definition at line 146 of file transport.cpp.
uint8_t hello_msg_t::profiles |
HAN-FUN Profiles version.
Definition at line 145 of file transport.cpp.
HF::UID::UID hello_msg_t::uid |
Remote device UID.
Definition at line 148 of file transport.cpp.