linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* I2C Combined Transactions in Linux
@ 2011-09-10 19:45 Henri Kjellberg
       [not found] ` <CAFfjFp1KAmr2w=0Nwt1FtvYSNb7CJ59AHJtXmnnpat-PdyvHzA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Henri Kjellberg @ 2011-09-10 19:45 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA

Greetings Friends,
I am looking for a way to perform combined transactions over I2C in
Linux. The structure of the message I need to send is as follows. The
slave responds in the brackets.

START
Slave Address, Write
[ACK]
Data
[ACK]
Data
[ACK]
...
FEND
START
Slave Address, Write
[Data]
ACK
[Data]
ACK
...
[FEND]
ACK
STOP

Here, FEND is a special end of message byte defined in a manner
similar to the SLIP encapsulation. It does not appear that I can use
the i2c_smbus_block_process_call because it requires the first data
byte to be the message length. Is there any way to send these sorts of
combined transaction in Linux without using the smbus interface?

Best,
Henri Kjellberg
UT-Austin
Satellite Design Laboratory

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-11 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-10 19:45 I2C Combined Transactions in Linux Henri Kjellberg
     [not found] ` <CAFfjFp1KAmr2w=0Nwt1FtvYSNb7CJ59AHJtXmnnpat-PdyvHzA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-11 12:59   ` Jean Delvare
     [not found]     ` <20110911145905.65659433-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-09-11 15:52       ` Henri Kjellberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).