2011-06-20 10:23:45     i2c api requirement

Document created by Aaronwu Employee on Aug 27, 2013
Version 1Show Document
  • View in full screen mode

2011-06-20 10:23:45     i2c api requirement

ThangarJ P (INDIA)

Message: 101483   




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?




Thank you,














2011-06-20 10:59:05     Re: i2c api requirement

Mike Frysinger (UNITED STATES)

Message: 101486   


please see:





2011-06-20 23:07:38     Re: i2c api requirement

Sonic Zhang (CHINA)

Message: 101501   


try smbus i2c API