跳转到内容

BM_SET_STD_MSG_ID 常量与宏参考

BMAPI 1.14.0.42 · bm_usb_def.h

#define BM_SET_STD_MSG_ID(_struct, _id11) { \
(_struct).SID = (((uint32_t)(_id11))) & 0x7FFU; \
(_struct).EID = 0U; \
(_struct).SID11 = 0U; \
(_struct).unimplemented1 = 0U; \
}

Value:

{ \
(_struct).SID = (((uint32_t)(_id11))) & 0x7FFU; \
(_struct).EID = 0U; \
(_struct).SID11 = 0U; \
(_struct).unimplemented1 = 0U; \
}

Helper macro to initialize a BM_MessageIdTypeDef object using a 11-bit CAN standard message ID.


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