#include "common.h"
#include "ptp_core.h"
#include "task_ptp.h"
#include "msg_utils.h"
#include "ptp_defs.h"
#include "ptp_types.h"
Go to the source code of this file.
◆ ptp_common_reset()
void ptp_common_reset |
( |
| ) |
|
Reset functionality shared with both slave and master.
Definition at line 156 of file common.c.
◆ ptp_compute_mean_path_delay_e2e()
void ptp_compute_mean_path_delay_e2e |
( |
const TimestampI * |
pTs, |
|
|
const uint64_t * |
pCf, |
|
|
TimestampI * |
pMPD |
|
) |
| |
Compute Mean Path Delay when operating in E2E mode.
- Parameters
-
pTs | pointer to array holding T1-T4 timestamps |
pCf | pointer to array holding correction fields associated with T1-T4 timestamps |
pMPD | pointer to area where the MPD gets stored |
Definition at line 128 of file common.c.
◆ ptp_compute_mean_path_delay_p2p()
void ptp_compute_mean_path_delay_p2p |
( |
const TimestampI * |
pTs, |
|
|
const uint64_t * |
pCf, |
|
|
TimestampI * |
pMPD |
|
) |
| |
Compute Mean Path Delay when operating in P2P mode.
- Parameters
-
pTs | pointer to array holding T1-T4 timestamps |
pCf | pointer to array holding correction fields associated with T1-T4 timestamps |
pMPD | pointer to area where the MPD gets stored |
Definition at line 141 of file common.c.
◆ ptp_init_delay_req_header()
void ptp_init_delay_req_header |
( |
| ) |
|
Initialize Delay_Request header.
Definition at line 20 of file common.c.
◆ ptp_send_delay_req_message()
void ptp_send_delay_req_message |
( |
| ) |
|
Construct and send Delay_Req message.
Definition at line 39 of file common.c.
◆ ptp_send_pdelay_resp()
Send PDelay_Resp based on PDelay_Req.
- Parameters
-
pMsg | pointer to PDelay_Req message object |
Definition at line 91 of file common.c.
◆ ptp_send_pdelay_resp_follow_up()
void ptp_send_pdelay_resp_follow_up |
( |
const RawPtpMessage * |
pMsg | ) |
|
Send PDelay_Resp_Follow_Up based on already transmitted PDelay_Resp message.
- Parameters
-
pMsg | pointer to the PDelay_Resp message that forms the base of the Pdelay_Resp_Follow_Up message |
Definition at line 61 of file common.c.
◆ delReqHeader
header for sending Delay_Reg messages
Definition at line 14 of file common.c.
◆ pdelRespFUpMsg
whole, compiled PDelay_Resp_Follow_Up message
Definition at line 16 of file common.c.
◆ pdelRespMsg
whole, compiled PDelay_Resp message
Definition at line 15 of file common.c.