mbgtools-lx  4.2.8
PTP_STATE Struct Reference

A structure to used to read the status of the PTP protocol stack. More...

#include <gpsdefs.h>

Data Fields

uint16_t nw_prot
 one of the enumerated protocols, see PTP_NW_PROTS More...
 
uint8_t ptp_prot_version
 PTP protocol version, 1, or 2, usually 2 for v2. More...
 
uint8_t port_state
 one of the enumerated port states, see PTP_PORT_STATES More...
 
uint32_t flags
 see PTP_STATE_FLAGS More...
 
NANO_TIME offset
 estimated time offset from the upstream time source More...
 
NANO_TIME path_delay
 
NANO_TIME mean_path_delay
 
NANO_TIME delay_asymmetry
 
PTP_CLOCK_ID gm_id
 identifier ot the upstream time source More...
 
uint16_t clock_offset_scaled_log_variance
 
uint8_t clock_class
 
uint8_t clock_accuracy
 see PTP_CLOCK_ACCURACIES More...
 
uint32_t tsu_secs
 current seconds value of time stamp unit More...
 
uint32_t reserved_2
 reserved, currently always 0 More...
 
uint8_t domain_number
 the PTP clock domain number, 0:3 More...
 
uint8_t time_source
 see PTP_TIME_SOURCES More...
 
uint8_t delay_mech
 see PTP_DELAY_MECHS More...
 
int8_t log_delay_req_intv
 
int16_t utc_offset
 UTC offset observed against TAI More...
 
DAC_VAL osc_dac_cal
 disciplination value of the oscillator More...
 
uint8_t parent_clock_class
 clock class of the parent node More...
 
uint8_t parent_clock_accuracy
 clock accuracy of the parent node, see PTP_CLOCK_ACCURACIES More...
 
uint16_t reserved_3
 reserved, currently always 0 More...
 

Detailed Description

A structure to used to read the status of the PTP protocol stack.

Definition at line 13184 of file gpsdefs.h.

Field Documentation

◆ clock_accuracy

uint8_t PTP_STATE::clock_accuracy

see PTP_CLOCK_ACCURACIES

Definition at line 13199 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ clock_class

uint8_t PTP_STATE::clock_class

Definition at line 13198 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ clock_offset_scaled_log_variance

uint16_t PTP_STATE::clock_offset_scaled_log_variance

Definition at line 13197 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ delay_asymmetry

NANO_TIME PTP_STATE::delay_asymmetry

Definition at line 13193 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ delay_mech

uint8_t PTP_STATE::delay_mech

see PTP_DELAY_MECHS

Definition at line 13206 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ domain_number

uint8_t PTP_STATE::domain_number

the PTP clock domain number, 0:3

Definition at line 13204 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ flags

uint32_t PTP_STATE::flags

see PTP_STATE_FLAGS

Definition at line 13189 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ gm_id

PTP_CLOCK_ID PTP_STATE::gm_id

identifier ot the upstream time source

Definition at line 13195 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ log_delay_req_intv

int8_t PTP_STATE::log_delay_req_intv

Definition at line 13207 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ mean_path_delay

NANO_TIME PTP_STATE::mean_path_delay

Definition at line 13192 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ nw_prot

uint16_t PTP_STATE::nw_prot

one of the enumerated protocols, see PTP_NW_PROTS

Definition at line 13186 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ offset

NANO_TIME PTP_STATE::offset

estimated time offset from the upstream time source

Definition at line 13190 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ osc_dac_cal

DAC_VAL PTP_STATE::osc_dac_cal

disciplination value of the oscillator

Definition at line 13210 of file gpsdefs.h.

◆ parent_clock_accuracy

uint8_t PTP_STATE::parent_clock_accuracy

clock accuracy of the parent node, see PTP_CLOCK_ACCURACIES

Definition at line 13213 of file gpsdefs.h.

◆ parent_clock_class

uint8_t PTP_STATE::parent_clock_class

clock class of the parent node

Definition at line 13212 of file gpsdefs.h.

◆ path_delay

NANO_TIME PTP_STATE::path_delay

Definition at line 13191 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ port_state

uint8_t PTP_STATE::port_state

one of the enumerated port states, see PTP_PORT_STATES

Definition at line 13188 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ ptp_prot_version

uint8_t PTP_STATE::ptp_prot_version

PTP protocol version, 1, or 2, usually 2 for v2.

Definition at line 13187 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ reserved_2

uint32_t PTP_STATE::reserved_2

reserved, currently always 0

Definition at line 13202 of file gpsdefs.h.

◆ reserved_3

uint16_t PTP_STATE::reserved_3

reserved, currently always 0

Definition at line 13215 of file gpsdefs.h.

◆ time_source

uint8_t PTP_STATE::time_source

see PTP_TIME_SOURCES

Definition at line 13205 of file gpsdefs.h.

Referenced by show_ptp_state().

◆ tsu_secs

uint32_t PTP_STATE::tsu_secs

current seconds value of time stamp unit

Definition at line 13201 of file gpsdefs.h.

◆ utc_offset

int16_t PTP_STATE::utc_offset

UTC offset observed against TAI

Definition at line 13209 of file gpsdefs.h.

Referenced by show_ptp_state().


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