AnsweredAssumed Answered

how the CAN_MSG_OBJ mode_id split to arbitration_id_A(11-bit) and arbitration_id_B(18-bit)

Question asked by kim hung on Dec 13, 2018
Latest reply on Dec 13, 2018 by jeremyzhou

Hello,

I'm using LPC11C24 to develop CAN bus system.

I'd like to know how the CAN_MSG_OBJ mode_id split to ID_A(11-bit) and ID_B(18-bit).

For example, if I wanna to send a frame its ID_A(11-bit) is 0x01 and ID_B(18-bit) is also 0x01.

 

msg_obj.mode_id = CAN_MSGOBJ_EXT | 0x801

msg_obj.mode_id = CAN_MSGOBJ_EXT | 0x40001

Which one is correct?

 

Thanks

Kim

Outcomes