Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gptp_hdr Struct Reference

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.
 

Detailed Description

gPTP message header

Field Documentation

◆ control

uint8_t gptp_hdr::control

Control value.

Sync: 0, Follow-up: 2, Others: 5.

◆ correction_field

int64_t gptp_hdr::correction_field

Correction Field.

The content depends of the message type.

◆ domain_number

uint8_t gptp_hdr::domain_number

Domain number, always 0.

◆ flags

struct gptp_flags gptp_hdr::flags

Message flags.

◆ log_msg_interval

int8_t gptp_hdr::log_msg_interval

Message Interval in Log2 for Sync and Announce messages.

◆ message_length

uint16_t gptp_hdr::message_length

Total length of the message from the header to the last TLV.

◆ message_type

uint8_t gptp_hdr::message_type

Type of the message.

◆ port_id

struct gptp_port_identity gptp_hdr::port_id

Port Identity of the sender.

◆ ptp_version

uint8_t gptp_hdr::ptp_version

Version of the PTP, always 2.

◆ reserved0

uint8_t gptp_hdr::reserved0

Reserved field.

◆ reserved1

uint8_t gptp_hdr::reserved1

Reserved field.

◆ reserved2

uint32_t gptp_hdr::reserved2

Reserved field.

◆ sequence_id

uint16_t gptp_hdr::sequence_id

Sequence Id.

◆ transport_specific

uint8_t gptp_hdr::transport_specific

Transport specific, always 1.


The documentation for this struct was generated from the following file: