跳转到内容

BM_CanModeTypeDef 枚举参考

BMAPI 1.14.0.42 · bm_usb_def.h

typedef enum
{
BM_CAN_OFF_MODE = 0x01,
BM_CAN_NORMAL_MODE = 0x00,
BM_CAN_SLEEP_MODE = 0x01,
BM_CAN_INTERNAL_LOOPBACK_MODE = 0x02,
BM_CAN_LISTEN_ONLY_MODE = 0x03,
BM_CAN_CONFIGURATION_MODE = 0x04,
BM_CAN_EXTERNAL_LOOPBACK_MODE = 0x05,
BM_CAN_CLASSIC_MODE = 0x06,
BM_CAN_RESTRICTED_MODE = 0x07,
BM_CAN_NON_ISO_MODE = 0x08,
BM_CAN_NON_AUTORETX_MODE = 0x10,
BM_CAN_NOACK_MODE = 0x20,
BM_CAN_DISABLE_AUTO_BUSOFF_RECOVERY = 0x40,
} BM_CanModeTypeDef;

CAN mode IDs, used by BM_SetCanMode() to change the operation mode of CAN device.

名称 值表达式 说明
BM_CAN_OFF_MODE 0x01 The device is logically disconnected from CAN bus
BM_CAN_NORMAL_MODE 0x00 The device is running normally (with the capability to handle CAN and CANFD messages
BM_CAN_SLEEP_MODE 0x01 The device is logically disconnected from CAN bus
BM_CAN_INTERNAL_LOOPBACK_MODE 0x02 The device is looping back messages internally without impacting the physical CAN bus
BM_CAN_LISTEN_ONLY_MODE 0x03 The device is receiving messages without impacting the physical CAN bus (do not send ACKs to the bus)
BM_CAN_CONFIGURATION_MODE 0x04 The device is under configuration and temporarily disconnected from CAN bus, For Internal usage only
BM_CAN_EXTERNAL_LOOPBACK_MODE 0x05 The device is looping back messages externally, all transmitted messages are echoed by the device itself
BM_CAN_CLASSIC_MODE 0x06 The device is running normally (with the capability to handle only classical CAN2.0 messages
BM_CAN_RESTRICTED_MODE 0x07 Reserved
BM_CAN_NON_ISO_MODE 0x08 OR-Bitmask: The device is running with the capability to handle CAN and NON-ISO(Bosch) CANFD messages
BM_CAN_NON_AUTORETX_MODE 0x10 OR-Bitmask: The device will not try to re-transmit failed messages if this bitmask is set
BM_CAN_NOACK_MODE 0x20 OR-Bitmask: ACK from remote ECU is not checked, always try to send message
BM_CAN_DISABLE_AUTO_BUSOFF_RECOVERY 0x40 OR-Bitmask: Disable automatic bus-off recovery, only manual BM_BUSOFF_RECOVERY command triggers recovery

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