BM_GetDataPtpTimestamp
Extract PTP timestamp from data (i.e. CAN message), this is a helper function to ease application programming.
BMAPI BM_StatusTypeDef BM_GetDataPtpTimestamp (BM_ChannelHandle channel, BM_DataTypeDef *data, uint64_t *timestamp)Parameters
Section titled “Parameters”| Direction | Name | Description |
|---|---|---|
| [in] | handle |
Handle to the channel to operate on. Could be NULL if the device supports hardware PTP. Otherwise you would need this handle to align device local timestamp with host machine’s UTC time. |
| [in] | data |
The message data from which to extract an PTP timestamp. |
| [out] | timestamp |
The extracted PTP timestamp, in nanoseconds. |
This reference follows the current BUSMUST BMAPI SDK. For an installed package, its bundled header and help files define the exact version-specific contract.