Zephyr API 3.6.99
|
gPTP message header More...
#include <gptp.h>
Data Fields | |
uint8_t | message_type:4 |
Type of the message. | |
uint8_t | transport_specific:4 |
Transport specific, always 1. | |
uint8_t | ptp_version:4 |
Version of the PTP, always 2. | |
uint8_t | reserved0:4 |
Reserved field. | |
uint16_t | message_length |
Total length of the message from the header to the last TLV. | |
uint8_t | domain_number |
Domain number, always 0. | |
uint8_t | reserved1 |
Reserved field. | |
struct gptp_flags | flags |
Message flags. | |
int64_t | correction_field |
Correction Field. | |
uint32_t | reserved2 |
Reserved field. | |
struct gptp_port_identity | port_id |
Port Identity of the sender. | |
uint16_t | sequence_id |
Sequence Id. | |
uint8_t | control |
Control value. | |
int8_t | log_msg_interval |
Message Interval in Log2 for Sync and Announce messages. | |
gPTP message header
uint8_t gptp_hdr::control |
Control value.
Sync: 0, Follow-up: 2, Others: 5.
int64_t gptp_hdr::correction_field |
Correction Field.
The content depends of the message type.
uint8_t gptp_hdr::domain_number |
Domain number, always 0.
struct gptp_flags gptp_hdr::flags |
Message flags.
int8_t gptp_hdr::log_msg_interval |
Message Interval in Log2 for Sync and Announce messages.
uint16_t gptp_hdr::message_length |
Total length of the message from the header to the last TLV.
uint8_t gptp_hdr::message_type |
Type of the message.
struct gptp_port_identity gptp_hdr::port_id |
Port Identity of the sender.
uint8_t gptp_hdr::ptp_version |
Version of the PTP, always 2.
uint8_t gptp_hdr::reserved0 |
Reserved field.
uint8_t gptp_hdr::reserved1 |
Reserved field.
uint32_t gptp_hdr::reserved2 |
Reserved field.
uint16_t gptp_hdr::sequence_id |
Sequence Id.
uint8_t gptp_hdr::transport_specific |
Transport specific, always 1.