Linux I2C development
 help / color / mirror / Atom feed
From: "naveen krishna ch" <naveenkrishna.ch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: I2C reads and writes
Date: Mon, 6 Oct 2008 14:12:22 +0530	[thread overview]
Message-ID: <ef0d8a250810060142k620ccd0h346724f7f8f507c6@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 446 bytes --]

Hi all,

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.

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.


-- 
Thanks,
Nayva

[-- Attachment #1.2: Type: text/html, Size: 527 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c

             reply	other threads:[~2008-10-06  8:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-06  8:42 naveen krishna ch [this message]
     [not found] ` <ef0d8a250810060142k620ccd0h346724f7f8f507c6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-10-06  9:18   ` I2C reads and writes Jean Delvare

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=ef0d8a250810060142k620ccd0h346724f7f8f507c6@mail.gmail.com \
    --to=naveenkrishna.ch-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=i2c-GZX6beZjE8VD60Wz+7aTrA@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