BM_INIT_CAN_MSG macro reference
BMAPI 1.14.0.42 · bm_usb_def.h
Definition
Section titled “Definition”#define BM_INIT_CAN_MSG(_msg, _id, _dlc, _ide, _fdf, _brs, _rtr, _esi, _payload) { \ (_msg).ctrl.tx.DLC = (_dlc); \ (_msg).ctrl.tx.IDE = (_ide); \ (_msg).ctrl.tx.FDF = (_fdf); \ (_msg).ctrl.tx.BRS = (_brs); \ (_msg).ctrl.tx.RTR = (_rtr); \ (_msg).ctrl.tx.ESI = (_esi); \ BM_SET_CAN_MSG_ID((_msg), (_id)); \ if ((_payload) != NULL) { uint8_t i; for (i = 0; i < sizeof((_msg).payload); i++) { (_msg).payload[i] = ((uint8_t*)(_payload))[i]; } } \}Value:
{ \ (_msg).ctrl.tx.DLC = (_dlc); \ (_msg).ctrl.tx.IDE = (_ide); \ (_msg).ctrl.tx.FDF = (_fdf); \ (_msg).ctrl.tx.BRS = (_brs); \ (_msg).ctrl.tx.RTR = (_rtr); \ (_msg).ctrl.tx.ESI = (_esi); \ BM_SET_CAN_MSG_ID((_msg), (_id)); \ if ((_payload) != NULL) { uint8_t i; for (i = 0; i < sizeof((_msg).payload); i++) { (_msg).payload[i] = ((uint8_t*)(_payload))[i]; } } \}Related types and constants
Section titled “Related types and constants”Source: BMAPI 1.14.0.42 released Doxygen documentation. The headers and help files bundled with an installed SDK define its version-specific contract.