S32K144 SDK 2.0.0 FlexCAN questions

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

S32K144 SDK 2.0.0 FlexCAN questions

1,199 次查看
Joao_Roscoe
Contributor III

Hi all,

I've got basic CAN interrupt driven TX and RX working. Nice. However there are two points that are unclear to me, and I keep thinking that there could be something I could not understand properly. So here it goes:

1. Why, in the SDK, the message buffer index is declared as uint32_t ? Doesn't it seem too many MBs?

2. What are the "*callbackParam" and "*errorCallbackParam" members in FlexCANState struct for? Since I got all data I needed in callback parameters, I just passed NULL for those when installing my callback function (the "event" callback, actually, I haven't implemented the error callback, so far). Am I missing anything here?

Best regards,

Joao

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

1,018 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi Joao,

as far as I understand

1. it is simply declared this way, it does not have any meaning with regard to number of MB

2. parameter can be used to pass any user data when invoking the callback function. If not used NULL is passed as you wrote. 

BR, Petr