跳转到内容

BM_CapabilityTypeDef 枚举参考

BMAPI 1.14.0.42 · bm_usb_def.h

typedef enum
{
BM_NONE_CAP = 0x0000U,
BM_LIN_CAP = 0x0001U,
BM_CAN_CAP = 0x0002U,
BM_CAN_FD_CAP = 0x0004U,
BM_FLEXRAY_CAP = 0x0008U,
BM_MODBUS_CAP = 0x0010U,
BM_ETHERNET_CAP = 0x0020U,
BM_AIO_CAP = 0x0100U,
BM_DIO_CAP = 0x0200U,
BM_VIRTUAL_CAP = 0x4000U,
BM_REMOTE_CAP = 0x8000U,
BM_ALL_CAP = 0xFFFFU
} BM_CapabilityTypeDef;

Busmust Device capability flags, retrieved when enumerating devices using BM_Enumerate().

名称 值表达式 说明
BM_NONE_CAP 0x0000U No capability
BM_LIN_CAP 0x0001U The device is capable of handling LIN messages
BM_CAN_CAP 0x0002U The device is capable of handling CAN messages
BM_CAN_FD_CAP 0x0004U The device is capable of handling CANFD (and CAN) messages
BM_FLEXRAY_CAP 0x0008U The device is capable of handling FLEXRAY messages
BM_MODBUS_CAP 0x0010U The device is capable of handling MODBUS messages
BM_ETHERNET_CAP 0x0020U The device is capable of handling ETHERNET messages
BM_AIO_CAP 0x0100U The device is capable of analog IO
BM_DIO_CAP 0x0200U The device is capable of digital IO
BM_VIRTUAL_CAP 0x4000U The device is virtual, for simulation purpose
BM_REMOTE_CAP 0x8000U The device is connected remotely and is capable of remote management
BM_ALL_CAP 0xFFFFU Typically used for masking the CAP fields when programming

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