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