S32K144 SDK 2.0.0 FlexCAN questions

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K144 SDK 2.0.0 FlexCAN questions

1,200 Views
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

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

1,019 Views
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