LPC55S06 MCAN Difference between TransferCreateHandle and TransferReceiveFifoNonBlocking

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

LPC55S06 MCAN Difference between TransferCreateHandle and TransferReceiveFifoNonBlocking

392 次查看
MarcoGiammarini
Contributor III

Hi,

we are developing a project with CAN and we can't understand a behavioral: in the MCAN example NXP use MCAN_TransferCreateHandle to create handle and then MCAN_TransferReceiveFifoNonBlocking to enable the message reception. In our code we user only MCAN_TransferCreateHandle to create handle and then we manage only the callback and it works, but we don't understand why!

which is the difference?

Thanks

Marco

 

标签 (2)
0 项奖励
回复
1 回复

329 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @MarcoGiammarini 

MCAN_TransferCreateHandle() is set send/receive interrupt call back function.

MCAN_TransferReceiveFifoNonBlocking()is config some receive related registers.

If you do not call it, the registers keep default value. So maybe it also can work.

 

BR

Alice

 

 

0 项奖励
回复