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
解決済! 解決策の投稿を見る。
Hi kim hung,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
msg_obj.mode_id = CAN_MSGOBJ_EXT | 0x801 is correct.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi kim hung,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
msg_obj.mode_id = CAN_MSGOBJ_EXT | 0x801 is correct.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------