From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: naveen krishna ch
<naveenkrishna.ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: Re: I2C reads and writes
Date: Mon, 6 Oct 2008 11:18:47 +0200 [thread overview]
Message-ID: <20081006111847.3826b789@hyperion.delvare> (raw)
In-Reply-To: <ef0d8a250810060142k620ccd0h346724f7f8f507c6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Nayva,
On Mon, 6 Oct 2008 14:12:22 +0530, naveen krishna ch wrote:
> I am working on a device driver (One touch). The registers of which are
> 16bit wide and are addressed by 16 bit address.
> The SMBus supports 16 bit read but address cannot be 16 bit in that case.
Correct.
> I used the i2c_transfer, i2c_master_send and i2c_master_recv combinations
> to read and write data to and from the
> registers of the device. Is this a good and neater way to do so. If not can
> anyone suggest me a better one.
This is the right way, yes.
--
Jean Delvare
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
prev parent reply other threads:[~2008-10-06 9:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-06 8:42 I2C reads and writes naveen krishna ch
[not found] ` <ef0d8a250810060142k620ccd0h346724f7f8f507c6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-10-06 9:18 ` 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=20081006111847.3826b789@hyperion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org \
--cc=naveenkrishna.ch-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