From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Xianghua Xiao <xiaoxianghua-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Guenter Roeck
<guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
Subject: Re: multiple byte read/write to I2C device
Date: Sun, 26 Jun 2011 22:47:07 +0200 [thread overview]
Message-ID: <20110626224707.14c447a3@endymion.delvare> (raw)
In-Reply-To: <BANLkTi=VObOHgC3HsXuOF2rRVzNwbvGHsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Fri, 24 Jun 2011 16:34:15 -0500, Xianghua Xiao wrote:
> It appears i2cget/i2cset can only handle up to 2 bytes at once, I have
> an I2C device that needs to send 4 bytes R/W, can i2cget/i2cset do
> that?
The SVN version of i2cset has support for block writes. This was
contributed by Guenter Roeck in:
http://www.lm-sensors.org/changeset/5911/i2c-tools/trunk/tools
i2cget indeed still lacks support for block reads, but that shouldn't
be too hard to implement, now that the way got paved by i2cset. In the
meantime you may be able to abuse i2cdump's "i" mode and grep the
output, but performance will suffer.
--
Jean Delvare
prev parent reply other threads:[~2011-06-26 20:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-24 21:34 multiple byte read/write to I2C device Xianghua Xiao
[not found] ` <BANLkTi=VObOHgC3HsXuOF2rRVzNwbvGHsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-06-26 20:47 ` Jean Delvare [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110626224707.14c447a3@endymion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=xiaoxianghua-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).