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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
738件の閲覧回数
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 解決策
727件の閲覧回数
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 返信
728件の閲覧回数
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 件の賞賛
返信