Skip to content

BM_PtpModeTypeDef enumeration reference

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.

Name Value expression Description
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

Source: BMAPI 1.14.0.42 released Doxygen documentation. The headers and help files bundled with an installed SDK define its version-specific contract.