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?