From: Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>
To: Wen Wang <sickdoctor-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: Re: Access 16bits address register in a device through I2C
Date: Thu, 17 Jul 2008 17:26:20 +0100 [thread overview]
Message-ID: <20080717162620.GO30539@fluff.org.uk> (raw)
In-Reply-To: <56458e0807170913k10adc9k2c479eddbe600fdb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Fri, Jul 18, 2008 at 12:13:30AM +0800, Wen Wang wrote:
> Hi all,
> I have a problem writing an I2C device driver and would greatly appreciate
> if someone could provide some enlightenment.
>
> I'm working on a project needs to access registers with 16bits address
> through I2C. But unfortunately I can not find a way to achieve this, cause
> it seems that current kernel I2C framework only supports 8bits address
> register.
The easiest way is to create a function that uses a pair of i2c messages,
the first message sends the 16bits of address pointer to the device, the
second one either reads or writes data.
> So I'm wondering do I miss something or what can I do? Any ideas?
>
> Thanks
> Wen
> _______________________________________________
> i2c mailing list
> i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
> http://lists.lm-sensors.org/mailman/listinfo/i2c
--
Ben (ben-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
next prev parent reply other threads:[~2008-07-17 16:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-17 16:13 Access 16bits address register in a device through I2C Wen Wang
[not found] ` <56458e0807170913k10adc9k2c479eddbe600fdb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-17 16:26 ` Ben Dooks [this message]
2008-07-17 17:06 ` Wolfram Sang
[not found] ` <20080717170649.GD4199-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2008-07-18 2:51 ` Wen Wang
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=20080717162620.GO30539@fluff.org.uk \
--to=ben-linux-elnmno+kys3ytjvyw6ydsg@public.gmane.org \
--cc=i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org \
--cc=sickdoctor-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