Skip to content

BM_SET_EXT_MSG_ID macro reference

BMAPI 1.14.0.42 · bm_usb_def.h

#define BM_SET_EXT_MSG_ID(_struct, _id29) { \
(_struct).SID = (((uint32_t)(_id29)) >> 18) & 0x7FFU; \
(_struct).EID = (((uint32_t)(_id29)) & 0x3FFFFU); \
(_struct).SID11 = 0U; \
(_struct).unimplemented1 = 0U; \
}

Value:

{ \
(_struct).SID = (((uint32_t)(_id29)) >> 18) & 0x7FFU; \
(_struct).EID = (((uint32_t)(_id29)) & 0x3FFFFU); \
(_struct).SID11 = 0U; \
(_struct).unimplemented1 = 0U; \
}

Helper macro to initialize a BM_MessageIdTypeDef object using a 29-bit CAN extended 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.