2011-06-20 10:23:45 i2c api requirement
ThangarJ P (INDIA)
I am working with BF527 and in my hardware i have two send the data to the i2c device in the below format
The i2c data format for that device in the data sheet is given below
(DeviceAddress(7bit)+R/wbit(1bit)) ACK (Controlbyte1(bit8 to 15)(7bit reg addrss+ 1bit from reg data)) ACK (Controlbyte2(bit0 to 7)(remaining 8bits of reg data) stop
so totally 9 bits data and 7bits reg address are combined into two bytes then send to the device.
so i required the i2c api in the below format
S Addr Wr(or Rd) [A] subreg(7bit)+1bit Data(MSB of 9bit data Data) [A] Data [A] P
please let me know which i2c api suits for my requirement?
2011-06-20 10:59:05 Re: i2c api requirement
Mike Frysinger (UNITED STATES)
2011-06-20 23:07:38 Re: i2c api requirement
Sonic Zhang (CHINA)
try smbus i2c API