#include <windows_hal.hpp>
|
virtual bool | HWTimestamper_init (InterfaceLabel *iface_label, OSNetworkInterface *net_iface) |
| Initializes the network adaptor and the hw timestamper interface. More...
|
|
virtual bool | HWTimestamper_gettime (Timestamp *system_time, Timestamp *device_time, uint32_t *local_clock, uint32_t *nominal_clock_rate) |
| Get the cross timestamping information. The gPTP subsystem uses these samples to calculate ratios which can be used to translate or extrapolate one clock into another clock reference. The gPTP service uses these supplied cross timestamps to perform internal rate estimation and conversion functions. More...
|
|
virtual int | HWTimestamper_txtimestamp (PortIdentity *identity, uint16_t sequenceId, Timestamp ×tamp, unsigned &clock_value, bool last) |
| Gets the TX timestamp. More...
|
|
virtual int | HWTimestamper_rxtimestamp (PortIdentity *identity, uint16_t sequenceId, Timestamp ×tamp, unsigned &clock_value, bool last) |
| Gets the RX timestamp. More...
|
|
virtual void | HWTimestamper_final (void) |
| This method is called before the object is de-allocated. More...
|
|
virtual bool | HWTimestamper_adjclockrate (float frequency_offset) |
| Adjusts the hardware clock frequency. More...
|
|
virtual bool | HWTimestamper_adjclockphase (int64_t phase_adjust) |
| Adjusts the hardware clock phase. More...
|
|
virtual bool | HWTimestamper_get_extclk_offset (Timestamp *local_time, int64_t *clk_offset, int32_t *ppt_freq_offset) |
| Get external clock offset. More...
|
|
virtual void | HWTimestamper_get_extderror (char *msg) |
| Gets a string with the error from the hardware timestamp block. More...
|
|
virtual bool | HWTimestamper_PPS_start () |
| Starts the PPS (pulse per second) interface. More...
|
|
virtual bool | HWTimestamper_PPS_stop () |
| Stops the PPS (pulse per second) interface. More...
|
|
int | getVersion () |
| Gets the HWTimestamper version. More...
|
|
| HWTimestamper () |
|
Windows HWTimestamper implementation
virtual bool WindowsTimestamper::HWTimestamper_gettime |
( |
Timestamp * |
system_time, |
|
|
Timestamp * |
device_time, |
|
|
uint32_t * |
local_clock, |
|
|
uint32_t * |
nominal_clock_rate |
|
) |
| |
|
inlinevirtual |
Get the cross timestamping information. The gPTP subsystem uses these samples to calculate ratios which can be used to translate or extrapolate one clock into another clock reference. The gPTP service uses these supplied cross timestamps to perform internal rate estimation and conversion functions.
- Parameters
-
system_time | [out] System time |
device_time | [out] Device time |
local_clock | [out] Local clock |
nominal_clock_rate | [out] Nominal clock rate |
- Returns
- True in case of success. FALSE in case of error
Implements HWTimestamper.
Initializes the network adaptor and the hw timestamper interface.
- Parameters
-
- Returns
- TRUE if success; FALSE if error
Reimplemented from HWTimestamper.
virtual int WindowsTimestamper::HWTimestamper_rxtimestamp |
( |
PortIdentity * |
identity, |
|
|
uint16_t |
sequenceId, |
|
|
Timestamp & |
timestamp, |
|
|
unsigned & |
clock_value, |
|
|
bool |
last |
|
) |
| |
|
inlinevirtual |
Gets the RX timestamp.
- Parameters
-
identity | PortIdentity interface |
sequenceId | Sequence ID |
timestamp | [out] RX hardware timestamp |
clock_value | [out] Not used |
last | Not used |
- Returns
- 0 ok, -1 error, -72 try again.
Implements HWTimestamper.
virtual int WindowsTimestamper::HWTimestamper_txtimestamp |
( |
PortIdentity * |
identity, |
|
|
uint16_t |
sequenceId, |
|
|
Timestamp & |
timestamp, |
|
|
unsigned & |
clock_value, |
|
|
bool |
last |
|
) |
| |
|
inlinevirtual |
Gets the TX timestamp.
- Parameters
-
identity | [in] PortIdentity interface |
sequenceId | Sequence ID |
timestamp | [out] TX hardware timestamp |
clock_value | Not used |
last | Not used |
- Returns
- -1 if error, 0 if success;
Implements HWTimestamper.
The documentation for this class was generated from the following file: