This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to use I2C from application?

Other Parts Discussed in Thread: OMAP3530

Hi everyone,

I want to verify that I2C2 is working on my custom board.  From a test application, I call CreateFile("I2C2:", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, 0, 0) to get a handle.  What can I do after that to talk to a part on the I2C bus?  I seach the platform directory but do not see any IOCTL code that can be used to write or read data from the application.

I would be very thankful if you could give me some tips on how to set up the BSP and how to use the I2C bus.

Luan