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

GPTPStatus Structure

This structure defines settings for the GPTPStatus structure.

typedef struct __declspec (align(1))
{
   timestamp current_time;
   priority_vector gm_priority;
   int64_t ms_offset_ns;
   uint8_t is_sync;
   uint8_t link_status;
   int64_t link_delay_ns;
   uint8_t selected_role;
   uint8_t as_capable;
   uint8_t is_syntonized;
   uint8_t Reserved0;
   uint8_t Reserved1;
   uint8_t Reserved2;
   uint8_t Reserved3;
   uint8_t Reserved4;
   uint8_t Reserved5;
   uint8_t Reserved6;
   uint8_t Reserved7;
}GPTPStatus;
<StructLayout(LayoutKind.Sequential, Pack:=1)> Public Structure GPTPStatus
   Dim current_time As timestamp
   Dim gm_priority As priority_vector
   Dim ms_offset_ns As Int64
   Dim is_sync As Byte
   Dim link_status As Byte
   Dim link_delay_ns As Int64
   Dim selected_role As Byte
   Dim as_capable As Byte
   Dim is_syntonized As Byte
   Dim Reserved0 As Byte
   Dim Reserved1 As Byte
   Dim Reserved2 As Byte
   Dim Reserved3 As Byte
   Dim Reserved4 As Byte
   Dim Reserved5 As Byte
   Dim Reserved6 As Byte
   Dim Reserved7 As Byte
End Structure 

Remarks

Item
Description

current_time

See timestamp structure

gm_priority

See priority_vector structure

ms_offset_ns

Master slave offset in nano seconds Valid when the port role is in slave mode.

is_sync

Returns the gptp is synchronization status. un-synced = 0 synced = 1 - valid when the port role is in slave mode.

link_status

Gives the link status of the gptp enabled port. link down = 0 link up = 1

link_delay_ns

Gives the link delay between the device and the link partner in nano second. Value is valid when the device is - in standard profile - in automotive profile - port role is slave mode

selected_role

Indicates current port role, disabled, master, slave or passive. DISABLED = 0 PASSIVE = 1 (Passive is only available for gptp switch mode) MASTER = 2 SLAVE = 3

as_capable

indicates 802.1AS capability 0 = Not 802.1AS capability 1 = 802.1AS capability

is_syntonized

Indicates if gPTP is syntonized or not. Valid when the port role is in slave mode. 1 = if device is syntonized with grand master 0 = if not

Reserved0

Reserved

Reserved1

Reserved

Reserved2

Reserved

Reserved3

Reserved

Reserved4

Reserved

Reserved5

Reserved

Reserved6

Reserved

Reserved7

Reserved

Last updated