RAD_GPTP_SETTINGS Structure

This structure defines various settings for the gPTP

C/C++ Declare

typedef struct __declspec (align(2))
{
   uint32_t neighborPropDelayThresh;
   uint32_t sys_phc_sync_interval;
   int8_t logPDelayReqInterval;
   int8_t logSyncInterval;
   int8_t logAnnounceInterval;
   uint8_t profile;
   uint8_t priority1;
   uint8_t clockclass;
   uint8_t clockaccuracy;
   uint8_t priority2;
   uint16_t offset_scaled_log_variance;
   uint8_t gPTPportRole;
   uint8_t gptpEnabledPort;
   uint32_t rsvd0;
   uint32_t rsvd1;
   uint32_t rsvd2;
   uint32_t rsvd3;
}RAD_GPTP_SETTINGS;

Visual Basic .NET Declare

<StructLayout(LayoutKind.Sequential, Pack:=2)> Public Structure RAD_GPTP_SETTINGS
   Dim neighborPropDelayThresh As UInt32
   Dim sys_phc_sync_interval As UInt32
   Dim logPDelayReqInterval As Byte
   Dim logSyncInterval As Byte
   Dim logAnnounceInterval As Byte
   Dim profile As Byte
   Dim priority1 As Byte
   Dim clockclass As Byte
   Dim clockaccuracy As Byte
   Dim priority2 As Byte
   Dim offset_scaled_log_variance As UInt16
   Dim gPTPportRole As Byte
   Dim gptpEnabledPort As Byte
   Dim rsvd0 As UInt32
   Dim rsvd1 As UInt32
   Dim rsvd2 As UInt32
   Dim rsvd3 As UInt32
End Structure

C# .NET Declare

[StructLayout(LayoutKind.Sequential,Pack=2)]
public struct RAD_GPTP_SETTINGS
{

   public UInt32 neighborPropDelayThresh;
   public UInt32 sys_phc_sync_interval;
   public byte logPDelayReqInterval;
   public byte logSyncInterval;
   public byte logAnnounceInterval;
   public byte profile;
   public byte priority1;
   public byte clockclass;
   public byte clockaccuracy;
   public byte priority2;
   public UInt16 offset_scaled_log_variance;
   public byte gPTPportRole;
   public byte gptpEnabledPort;
   public UInt32 rsvd0;
   public UInt32 rsvd1;
   public UInt32 rsvd2;
   public UInt32 rsvd3;
}
Remarks

ItemDescription
neighborPropDelayThreshThreshold value for neighbor propagation delay. A Device will be identified as non-AS Capable if pDelay exceeds this value
sys_phc_sync_intervalNot Defined
logPDelayReqIntervalDelay Request Interval
Value = log2(Interval in Seconds)
logSyncIntervalSync Interval
Value = log2(Interval in Seconds)
logAnnounceIntervalAnnounce Interval
Value = log2(Interval in Seconds)
profileSet the gPTP Profile
0 = Standard, 1=Automotive
priority1Priority1 sets the ordering priority. Lower values set a better ClockMaster. See gPTP spec, 8021AS for more details and restrictions.
clockclassclockClass gives the traceability of the synchronized time sent by the Master in Grandmaster mode. See gPTP spec, 8021AS for more details.
clockaccuracyclockAccuracy sets the time Accuracy of the ClockMaster. Lower values indicate better clocks. See gPTP spec, 8021AS for more details.
priority2priority2 uses a similar scheme as priority1. See gPTP spec, 8021AS for more details.
offset_scaled_log_varianceThis parameter is an estimate of the Variance in PTP. See gPTP spec, 8021AS for more details.
gPTPportRoleSets the gPTP port Role.
0 = Master, 1=Slave
gptpEnabledPortSets the Channel to use for gPTP
0 = Disabled, 1 = OpEth1, 2 = OpEth2, 3 = OpEth3
4 = OpEth4, 5 = OpEth5, 6 = OpEth6, 7 = OpEth7
8 = OpEth8, 9 = OpEth9, 10 = OpEth10, 11 = OpEth11
12 = OpEth12, 13 = StdEth1, 14 = StdEth2
rsvd0Reserved
rsvd1Reserved
rsvd2Reserved
rsvd3Reserved

IntrepidCS API   Documentation - (C) Copyright 2000-2022 Intrepid Control Systems, Inc.

Last Updated : Wednesday, July 05, 2019