I connect a gyro sensor SMB380 to DM6446 directly by the DC3 (i2c connector) interface.
I am now trying to read data from the SMB380 according to the file ../workdir/lsp/ti-davinci/Documentation/i2c/dev-interface.
However, I at first donot know how to decide which adapter I should access.
On my target file system, there is only a [0] in the /dev/i2c/ .
Because the MSP430 and video codec use the i2c too, are all i2c devices can be opened by the /dev/i2c/0?
In the header file i2c.h, extern s32 i2c_smbus_read_byte_data is defined as extern, but where is the original definition of it.
Now i2c_smbus_read_byte_data is taken by the compiler as undefined reference.
Is any other file or library neccssary for i2c_smbus_read_byte_data ?
Any suggestion will be greatly appreciated.
Thank you very much!