For the complete documentation index, see llms.txt. This page is also available as Markdown.

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;
<StructLayout(LayoutKind.Sequential, Pack:=1)> Public Structure clock_quality
   Dim clock_class As Byte
   Dim clock_accuracy As Byte
   Dim offset_scaled_log_variance As UInt16
End Structure 
[StructLayout(LayoutKind.Sequential,Pack=1)]
public struct clock_quality
{
   public byte clock_class;
   public byte clock_accuracy;
   public UInt16 offset_scaled_log_variance;
}

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