DCMD_PTPD_GET_PDELAY_INTERVAL
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Get the pdelay interval
Synopsis:
#include <dcmd_ptpd.h>
#define DCMD_PTPD_GET_PDELAY_INTERVAL __DIOF(_DCMD_NET, 17, MyPDelayIntervalInternal )
Arguments to devctl():
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening /dev/ptpd |
dcmd | DCMD_PTPD_GET_PDELAY_INTERVAL |
dev_data_ptr | A pointer to a MyPDelayIntervalInternal |
n_bytes | sizeof(MyPDelayIntervalInternal) |
dev_info_ptr | NULL |
Description:
This command gets the mean time interval between successive PDELAY_REQ messages in the Precision Time Protocol.
Note:
To use this command, you must specify the -K option when you start
ptpd2.
Input:
None.
Output:
A MyPDelayIntervalInternal that ptpd sets to the base-2 logarithm of the current interval, in seconds:
typedef uint32_t MyPDelayIntervalInternal;
Example:
MyPDelayIntervalInternal my_pdelay_interval;
if(devctl(fd, DCMD_PTPD_GET_PDELAY_INTERVAL, &my_pdelay_interval,
sizeof my_pdelay_interval, NULL) != EOK)
{
/* Error */
}
See also:
DCMD_PTPD_DELAYMS, DCMD_PTPD_DELAYSM, 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 OS C Library Reference
ptpd2 in the Utilities Reference
Page updated: