I am using MPC5744P-144DC evaulation board and trying to use FlexCAN module on it.
I looked into two exampels, "MPC5744P-FlexCAN-simpleTXRX-GHS614" and "MPC5775K-FlexCAN_with_interrupts-S32DS_Z4_1"
On examples, DATA filed of CAN message was setting byte base as follow;
CAN_0.MB[MB].DATA.W = 0x90ABCDEF; //data1 set
CAN_0.MB[MB].DATA.W = 0x12345678; //data0 set
How can I set a data longer than 1 byte?
For example, I need to put motor speed (14bit) in DATA (0~7 bit) and DATA (0~5bit) and Motor status (2bit) in DATA (6~7bit).