pub struct Header {Show 19 fields
pub sdo_id: SdoId,
pub version: PtpVersion,
pub domain_number: u8,
pub alternate_master_flag: bool,
pub two_step_flag: bool,
pub unicast_flag: bool,
pub ptp_profile_specific_1: bool,
pub ptp_profile_specific_2: bool,
pub leap61: bool,
pub leap59: bool,
pub current_utc_offset_valid: bool,
pub ptp_timescale: bool,
pub time_tracable: bool,
pub frequency_tracable: bool,
pub synchronization_uncertain: bool,
pub correction_field: TimeInterval,
pub source_port_identity: PortIdentity,
pub sequence_id: u16,
pub log_message_interval: i8,
}Expand description
The header of a PTP version 2 message.
For more details, see IEEE1588-2019 section 13.3.
Fields§
§sdo_id: SdoIdSdo ID of the profile in use for the message.
version: PtpVersionSpecific version of PTP for this message.
domain_number: u8The domain number of the message.
This is used to allow multiple PTP setups to run within the same network without interfering with each other.
alternate_master_flag: boolIndicates whether the sender is an alternate master.
This is used with the Grandmaster Cluster and Alternate Master optional PTP features. For more details, see IEEE1588-2019 sections 17.2 and17.3
two_step_flag: boolIndicates whether the message is part of a two-step time transmission.
unicast_flag: boolIndicates whether the message is sent via a unicast connection.
ptp_profile_specific_1: boolUsed for PTP profile-specific information.
ptp_profile_specific_2: boolUsed for PTP profile-specific information.
leap61: boolIn announce messages, indicates whether the last minute of the current UTC day shall have 61 seconds.
leap59: boolIn announce messages, indicates whether the last minute of the current UTC day shall have 59 seconds.
current_utc_offset_valid: boolIn announce messages, indicates whether the offset between UTC and TAI is valid.
ptp_timescale: boolIn announce messages, indicates whether the timescale is TAI (when true), or something else.
time_tracable: boolIn announce messages, indicates whether the time provided is traceable in the metrology sense.
frequency_tracable: boolIn announce messages, indicates whether the frequency provided is traceable in the metrology sense.
synchronization_uncertain: boolIn announce messages, a true value indicates that the time provider may not itself be properly synchronized.
correction_field: TimeIntervalCorrection field to the timestamps in event messages.
This is used to improve the precision of those timestamps, as well as to allow for compensating for the dwell time of messages in switches.
source_port_identity: PortIdentityIdentity of the PTP port that sent this message.
sequence_id: u16Rolling sequence id for the message.
log_message_interval: i8Used for communication of message sending intervals for some messages
See IEEE1588 Table 42 in section 13.3.2.14 for more details.