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 read data from cmos image sensor via i2c bus on DM6431



Now I must read sensor(MT9M112)'s parameter via i2c bus,
this  sequence is :
1.send Slave Device addr and data addr,
2.read data.


and as follows,it confuse me.
=======================================================================
http://wiki.davincidsp.com/index.php?title=Using_a_PSP_Driver_in_DSP/BIOS

PSP_I2cRequest  readBuf;
size_t          size;
char buffer;
int status;
 
readBuf.i2cTrans.buffer = (Uint8 *)&buffer;
readBuf.i2cTrans.bufLen    = 1;
readBuf.i2cTrans.flags     = PSP_I2C_DEFAULT_READ;
readBuf.i2cTrans.param     = NULL;
readBuf.i2cTrans.slaveAddr = 0x50;
readBuf.timeout = SYS_FOREVER;
size = 1;
 
status = GIO_read(i2cHandle, &readBuf, &size);
=============================================================
in this process,which part I can input the "data addr"?
and the GIO_read() function can read from eeprom or other sensor via i2c bus?

thanks