I want to use can callback function to realize the interrupt of sending and receiving

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

I want to use can callback function to realize the interrupt of sending and receiving

1,231 Views
zzqq
Contributor III

I want to use can callback function to realize the interrupt of sending and receiving.

But I feel it is hard to achieve

 
Because there is only one callback:FLEXCAN_DRV_InstallEventCallback(INST_CANCOM1,cancom1_callback, (void *)0);
How do I implement the data sending and receiving through the (cancom1_callback)  callback function?
0 Kudos
1 Reply

892 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

see attached example. It shows how the Callback function is installed and used.

Hope it helps.

BR, Petr

0 Kudos