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

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

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

跳至解决方案
1,192 次查看
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 解答
899 次查看
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 回复
900 次查看
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 项奖励