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;
Remarks
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