clock_quality Structure

This structure defines various settings for the clock_quality in gPTP

// Some typedef struct __declspec (align(1))
{
   uint8_t clock_class;
   uint8_t clock_accuracy;
   uint16_t offset_scaled_log_variance;
}clock_quality;

Remarks

Item
Description

clock_class

Clock Class indicates the traceability of the data from the ClockMaster when it acts as a GrandMaster.

See IEEE Std 1588-2019 for a more detailed description of clockClass.

clock_accuracy

Sets the expected time accuracy of the ClockMaster. Lower values indicate better accuracy. 254 is for Unknown.

See IEEE Std 1588-2019 for more detailed description of clockAccuracy.

offset_scaled_log_variance

This parameter is an estimate of the Variance in PTP.

See gPTP spec, 8021AS for more details.

Last updated