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

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

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

Jump to solution
1,177 Views
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.

 

Labels (1)
Tags (1)
0 Kudos
1 Solution
884 Views
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

View solution in original post

0 Kudos
1 Reply
885 Views
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 Kudos