2010-03-30 05:03:48     combined transaction in i2c driver

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

2010-03-30 05:03:48     combined transaction in i2c driver

svs k (INDIA)

Message: 87847   

 

Hi,

 

I have a custom board with BF533 processor  that has a serial interfaced device  that supports the following i2c read sequence operation. I am using 2009R1-RC1 distribution.  BF533 in turn does not have a  in built i2c controller. So gpio pins are used. From the documentation i could find i2c_master_send() can be used for  write operation. . Can you please tell is there any api for supporting the following type of combined transaction?    Also please tell if any example is available for i2c device interface for combined transaction in application side.

 

Start   Addr   Wr  Ack  Data1   Ack   Data2   Ack   Data3  Ack  Start   Addr   Rd   Ack  Data4   Ack   Data5  Ack   Data6  NACK  Stop

QuoteReplyEditDelete

 

 

2010-03-30 15:11:21     Re: combined transaction in i2c driver

Mike Frysinger (UNITED STATES)

Message: 87863   

 

examples of possible I2C transactions are documented in linux-2.6.x/Documentation/i2c/

QuoteReplyEditDelete

 

 

2010-04-01 06:05:15     Re: combined transaction in i2c driver

svs k (INDIA)

Message: 87976   

 

one type of combined transaction given in the document is like

 

S          Addr           Rd           [A]          [Data]           NA      S          Addr           Wr         [A]          Data          [A]         P

 

 

which is a byte read followed by a byte write.can you please confirm is my case which has 3 bytes write followed by 3 bytes read is  also supported?

QuoteReplyEditDelete

 

 

2010-04-01 23:19:39     Re: combined transaction in i2c driver

Sonic Zhang (CHINA)

Message: 88000   

 

The smbus I2C protocol only support 3 bytes write followed by 2 bytes read operation in process call.

 

You may try a raw I2C write followed by a raw I2C read.

Attachments

    Outcomes