EZUSB I2C on cmos camera | Cypress Semiconductor
EZUSB I2C on cmos camera
I am working on Cypress usb high speed controller Cy7c68013A. I need to interface I2C lines with a I2C slave device (a cmos camera sensor). The example code for I2C read uses EZUSB_ReadI2C from EZUSB library.
My cmos camera slave address is 0x60 and the device ID is present in the sub address 0x1D. Here is the sequence I implemeted to read the device ID in a linux based system.
8. value = i2c_read_byte ()
The variable value gives the device ID. How can I implement this sequence with a EZUSB library ?