跳转到内容

BM_SET_CAN_MSG_ID 常量与宏参考

BMAPI 1.14.0.42 · bm_usb_def.h

#define BM_SET_CAN_MSG_ID(_msg, _id) { \
if ((_msg).ctrl.tx.IDE) { BM_SET_EXT_MSG_ID((_msg).id, (_id)); } else { BM_SET_STD_MSG_ID((_msg).id, (_id)); } \
}

Value:

{ \
if ((_msg).ctrl.tx.IDE) { BM_SET_EXT_MSG_ID((_msg).id, (_id)); } else { BM_SET_STD_MSG_ID((_msg).id, (_id)); } \
}

Helper macro to set(update after initialization) a BM_CanMessageTypeDef object’s 11-bit/29-bit ID.


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