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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,135 次查看
kimhorng
Contributor I

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

0 项奖励
回复
1 解答
1,073 次查看
jeremyzhou
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,074 次查看
jeremyzhou
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复