|
SatCat5
|
Data structure for identifying TLV headers.
Some fields only apply to organization extension TLVs per Section 14.3, and will be set to zero otherwise.
#include <ptp_tlv.h>
Public Member Functions | |
| TlvHeader (const TlvHeader &t)=default | |
| TlvHeader & | operator= (const TlvHeader &t)=default |
| bool | match (const satcat5::ptp::TlvHeader &other) const |
| Does this TLV match the designated type and/or subtype? | |
| bool | propagate () const |
| When attached to ANNOUNCE messages, certain TLVs are required to propagate across boundary clocks, even if those tags are otherwise unsupported by a given implementation. | |
| constexpr unsigned | len_header () const |
| Total length of TLV header, or header plus associated data. More... | |
| constexpr unsigned | len_total () const |
| void | write_to (satcat5::io::Writeable *wr) const |
| I/O functions read or write the TLV header only. More... | |
| bool | read_from (satcat5::io::Readable *rd) |
| I/O functions read or write the TLV header only. More... | |
Public Attributes | |
| u16 | type |
| Access to the raw header fields Note: This "length" field always reflects the user data length, excluding the 6-byte organizationId/SubType if applicable. | |
| u16 | length |
| u32 | org_id |
| u32 | org_sub |
|
inlineconstexpr |
| bool TlvHeader::read_from | ( | satcat5::io::Readable * | rd | ) |
I/O functions read or write the TLV header only.
User is responsible for reading or writing tag data.
Definition at line 42 of file ptp_tlv.cc.
| void TlvHeader::write_to | ( | satcat5::io::Writeable * | wr | ) | const |
I/O functions read or write the TLV header only.
User is responsible for reading or writing tag data.
Definition at line 30 of file ptp_tlv.cc.