LPC55S06 MCAN Difference between TransferCreateHandle and TransferReceiveFifoNonBlocking

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

LPC55S06 MCAN Difference between TransferCreateHandle and TransferReceiveFifoNonBlocking

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

 

Labels (2)
0 Kudos
1 Reply

116 Views
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 Kudos