Skip to content

BM_SET_CAN_MSG_ID macro reference

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.


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