跳转到内容

BM_PtpModeTypeDef 枚举参考

BMAPI 1.14.0.42 · bm_usb_def.h

typedef enum
{
BM_PTP_DISABLED = 0,
BM_PTP_INPUT_USB_SOF = 1,
BM_PTP_INPUT_PPS = 2,
BM_PTP_OUTPUT_PPS = 4,
} BM_PtpModeTypeDef;

PTP timestamp synchronization mode values, used by BM_SetPtpMode() to change the synchronization mode for a given hardware channel.

名称 值表达式 说明
BM_PTP_DISABLED 0 Disable PTP feature, work asynchronously using hardware local timestamp
BM_PTP_INPUT_USB_SOF 1 Use host computer’s USB SOF packet to sync with host computer
BM_PTP_INPUT_PPS 2 PTP slave: Use dedicated PPS input pin (if supported by hardware) as sync pulse input
BM_PTP_OUTPUT_PPS 4 PTP master: Use dedicated PPS input pin (if supported by hardware) as sync pulse output

来源:BMAPI 1.14.0.42 正式 Doxygen 文档。技术说明保留原文;安装包中的头文件和帮助文档定义对应版本的接口契约。