Get the slave-to-master delay
#include <dcmd_ptpd.h> #define DCMD_PTPD_DELAYSM __DIOF(_DCMD_NET, 11, MyTimeInternal )
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening /dev/ptpd |
dcmd | DCMD_PTPD_DELAYSM |
dev_data_ptr | A pointer to a MyTimeInternal structure |
n_bytes | sizeof(MyTimeInternal) |
dev_info_ptr | NULL |
The DCMD_PTPD_DELAYSM command gets the network latency in the direction from the slave to the master for the Precision Time Protocol.
None
A filled-in MyTimeInternal structure, which is defined in <dcmd_ptpd.h> as follows:
typedef struct { uint32_t seconds; uint32_t nanoseconds; } MyTimeInternal;
DCMD_PTPD_DELAYMS, DCMD_PTPD_GET_PDELAY_INTERVAL, DCMD_PTPD_GET_TAI_UTC_OFFSET, DCMD_PTPD_GET_TIME, DCMD_PTPD_INFO, DCMD_PTPD_SEND_SIGNALING_MSG, DCMD_PTPD_SET_PDELAY_INTERVAL, DCMD_PTPD_STATUS
devctl() in the QNX Neutrino C Library Reference
ptpd, ptpd-avb in the Utilities Reference