跳转到内容

BM_GetDataPtpTimestamp

函数名、签名、参数与返回值和 BMAPI SDK 保持一致,可直接用于开发、检索与代码审查。

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)
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.