Skip to content

BM_SET_STD_MSG_ID macro reference

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.


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