ptp_txintr_finish()

Return a packet's Tx timestamp when the timestamp has been received

Synopsis:

#include <qnx/ptp/ptp_mod.h>
int ptp_txintr_finish(struct ptp_ctx *ctx,
                      struct ptp_uhdr *hdr,
                      struct ptp_time *ptp_time)

Arguments:

ctx
The driver's PTP context.
hdr
The ptp_uhdr filled with the data to compare.
ptp_time
The timestamp returned by the driver.

Library:

ptp

Description:

The ptp_txintr_finish() function loops through the queue of tags and compares the header for each to the given header. When it finds a match, it takes the same action as ptp_txfinish().

Returns:

EOK on success; otherwise, one of the following:
  • ENOENT - No matching tag found.
  • ETIMEDOUT - The matching tag has expired.
Page updated: