flexPTP
1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
ptp_sync_cycle_data.h
Go to the documentation of this file.
1
24
#ifndef FLEXPTP_PTP_SYNC_CYCLE_DATA_H_
25
#define FLEXPTP_PTP_SYNC_CYCLE_DATA_H_
26
27
#include "
timeutils.h
"
28
29
// timestamp indices
30
#define T1 (0)
31
#define T2 (1)
32
#define T3 (2)
33
#define T4 (3)
34
#define T5 (4)
35
#define T6 (5)
36
40
typedef
struct
{
41
/* ---- SLAVE -----
42
*
43
* T1: Sync transmission time by master clock
44
* T2: Sync reception time by slave clock
45
* T3: (P)Delay_Req transmission time by slave clock
46
* T4: (P)Delay_Req reception time by master clock
47
* T5: (P)Delay_Resp transmission time by master clock
48
* T6: (P)Delay_Resp reception time by slave clock
49
*
50
* 2 for M2S (Sync-FollowUp), 2 for S2M (DelReq-DelResp) if E2E OR
51
* 4 for S2M (PDelReq-PDelResp-PDelResp_Follow_Up) if P2P
52
*
53
* ---- MASTER P2P ------
54
*
55
* T1: PDelay_Req transmission time by the master clock
56
* T2: PDelay_Req reception time by the slave clock
57
* T3: PDelay_Resp transmission time by the slave clock
58
* T4: PDelay_Resp reception time by the master clock
59
*/
60
61
TimestampI
t[6];
62
uint64_t cf[6];
63
}
PtpSyncCycleData
;
64
65
#endif
/* FLEXPTP_PTP_SYNC_CYCLE_DATA_H_ */
PtpSyncCycleData
PTP synchronization cycle data.
Definition:
ptp_sync_cycle_data.h:40
TimestampI
Timestamp (signed)
Definition:
timeutils.h:29
timeutils.h
This module defines storage classes for timestamps and operations on time values.
src
flexptp
ptp_sync_cycle_data.h
Generated by
1.9.6