flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
ptp_sync_cycle_data.h File Reference

This module defines the context object of a full synchronization cycle. In SLAVE mode four timestamps are used when operating in E2E and six when in P2P mode. Timestamps explained: More...

#include "timeutils.h"

Go to the source code of this file.

Data Structures

struct  PtpSyncCycleData
 PTP synchronization cycle data. More...
 

Macros

#define T1   (0)
 
#define T2   (1)
 
#define T3   (2)
 
#define T4   (3)
 
#define T5   (4)
 
#define T6   (5)
 

Detailed Description

This module defines the context object of a full synchronization cycle. In SLAVE mode four timestamps are used when operating in E2E and six when in P2P mode. Timestamps explained:

  • T1: Sync transmission by the master clock
  • T2: Sync reception by the slave clock
  • T3: (P)Delay_Req transmission time by slave clock
  • T4: (P)Delay_Req reception time by master clock
  • T5: (P)Delay_Resp transmission time by master clock
  • T6: (P)Delay_Resp reception time by slave clock

In MASTER P2P mode the fields take on the following meaning:

  • T1: PDelay_Req transmission time by the master clock
  • T2: PDelay_Req reception time by the slave clock
  • T3: PDelay_Resp transmission time by the slave clock
  • T4: PDelay_Resp reception time by the master clock

Definition in file ptp_sync_cycle_data.h.

Macro Definition Documentation

◆ T1

#define T1   (0)

Definition at line 30 of file ptp_sync_cycle_data.h.

◆ T2

#define T2   (1)

Definition at line 31 of file ptp_sync_cycle_data.h.

◆ T3

#define T3   (2)

Definition at line 32 of file ptp_sync_cycle_data.h.

◆ T4

#define T4   (3)

Definition at line 33 of file ptp_sync_cycle_data.h.

◆ T5

#define T5   (4)

Definition at line 34 of file ptp_sync_cycle_data.h.

◆ T6

#define T6   (5)

Definition at line 35 of file ptp_sync_cycle_data.h.