What's different between “Can_MainFunction_Write” and "Can_Write" in s32k3?

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

What's different between “Can_MainFunction_Write” and "Can_Write" in s32k3?

Jump to solution
533 Views
jingfang
Contributor IV

Can_Write see check hw state,but it has send message .

Can_MainFunction_Write see polling only, am I getting this right?

0 Kudos
Reply
1 Solution
522 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, you are right.

Can_Write checks TX MB if it is free to send data, if yes fills TX MB with data and transmit is initiated.

Can_MainFunction_Write performs the polling of TX confirmation when CAN_TX_PROCESSING is set to POLLING. It checks MB flag if message was transmitted successfully or not, if yes updates driver variable and calls TXconfirmation.

BR, Petr

View solution in original post

0 Kudos
Reply
1 Reply
523 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, you are right.

Can_Write checks TX MB if it is free to send data, if yes fills TX MB with data and transmit is initiated.

Can_MainFunction_Write performs the polling of TX confirmation when CAN_TX_PROCESSING is set to POLLING. It checks MB flag if message was transmitted successfully or not, if yes updates driver variable and calls TXconfirmation.

BR, Petr

0 Kudos
Reply