LPC11u68 I2C Command-Read

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

LPC11u68 I2C Command-Read

445 Views
richardsoennich
Contributor I

I am using the i2c_11u6x.c libray in IAR.  There is a cmd_read function there, to send one byte and read back n bytes from a slave.  I have a device that needs a two byte command sent before a repeated start and reading back n bytes.

 

I have been trying to incorporate the two byte command functionality into the library but, because of the way it is structured, I am having difficulties.  Has anyone modified this library or know of a way to implement this?

 

Thank you

 

Rich

Labels (3)
0 Kudos
1 Reply

356 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Richard Soennichsen ,

Recommend you can have a look at the demo under LPCopen:

LPCOpen Software for LPC11XX | NXP  


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos