How do I know number of byte received from I2C read?

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

How do I know number of byte received from I2C read?

ソリューションへジャンプ
1,753件の閲覧回数
jingxi
Contributor I

I am writing a code for Kinetis K20 I2C communication using Processor Expert. I am not sure how to get the bytes count received by using MasterReceiveBlock method of the I2C LDD component. It does not return the bytes count received, neither the OnMasterBlockReceived event. Is there any other method to retrieve the received bytes count?

Thank you for your help.

 

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,460件の閲覧回数
ProcessorExpert
Senior Contributor III

Hello,

 

there should be MasterGetReceivedDataNum method available for this purpose. Are you able to see it? If not please check your settings of Component inspector if is set into Epxert view and if it not help install the CW V10.2 + Update, this is the version where it will be certainly published.

 

For details see attached screen-shots.

 

Link to donwload page:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MCU10&fpsp=1&tab=Design_Tools_Tab

 

best regards
Vojtech Filip
Processor Expert Support Team

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,461件の閲覧回数
ProcessorExpert
Senior Contributor III

Hello,

 

there should be MasterGetReceivedDataNum method available for this purpose. Are you able to see it? If not please check your settings of Component inspector if is set into Epxert view and if it not help install the CW V10.2 + Update, this is the version where it will be certainly published.

 

For details see attached screen-shots.

 

Link to donwload page:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MCU10&fpsp=1&tab=Design_Tools_Tab

 

best regards
Vojtech Filip
Processor Expert Support Team

0 件の賞賛
返信