Get the error status for the Precision Time Protocol
#include <dcmd_ptpd.h> #define DCMD_PTPD_STATUS __DIOF(_DCMD_NET, 12, MyStatusInternal )
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening /dev/ptpd |
dcmd | DCMD_PTPD_STATUS |
dev_data_ptr | A pointer to a MyStatusInternal |
n_bytes | sizeof(MyStatusInternal) |
dev_info_ptr | NULL |
(QNX Neutrino 7.0 or later) This command gets the status of the Precision Time Protocol.
None.
A filled-in MyStatusInternal, which is defined in <dcmd_ptpd.h> as follows:
typedef uint32_t MyStatusInternal;
The status is one of the following:
DCMD_PTPD_DELAYMS, DCMD_PTPD_DELAYSM, 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
devctl() in the QNX Neutrino C Library Reference
ptpd-avb in the Utilities Reference