DCMD_PTPD_STATUS
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Get the error status for the Precision Time Protocol
Synopsis:
#include <dcmd_ptpd.h>
#define DCMD_PTPD_STATUS __DIOF(_DCMD_NET, 12, MyStatusInternal )
Arguments to devctl():
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 |
Description:
This command gets the status of the Precision Time Protocol.
Note:
To use this command, you must specify the -K option when you start
ptpd2.
Input:
None.
Output:
A filled-in MyStatusInternal, which is defined in <dcmd_ptpd.h> as follows:
typedef uint32_t MyStatusInternal;
The status is one of the following:
- PTPD_STATUS_NO_ERROR
- No error.
- PTPD_STATUS_LINK_DOWN
- The link is down.
- PTPD_STATUS_GRANDMASTER_FAILURE
- The root timing reference (the clock that all other clocks sychronize themselves to) failed.
Example:
See also:
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 OS C Library Reference
ptpd2 in the Utilities Reference
Page updated: