S32K144 SDK 2.0.0 FlexCAN questions

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K144 SDK 2.0.0 FlexCAN questions

1,203件の閲覧回数
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,022件の閲覧回数
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