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

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

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

跳至解决方案
2,160 次查看
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 项奖励
回复
1 解答
2,149 次查看
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 项奖励
回复
1 回复
2,150 次查看
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 项奖励
回复