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

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

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

1,284 次查看
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 项奖励
1 回复

945 次查看
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 项奖励