From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: zaphod001-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: howto to suppor new i2c algo
Date: Tue, 3 Mar 2009 14:50:51 +0100 [thread overview]
Message-ID: <20090303145051.676ab361@hyperion.delvare> (raw)
In-Reply-To: <49A276BF.6030102-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On Mon, 23 Feb 2009 12:13:19 +0200, Zaphod wrote:
> Hi
>
> 1st of all, i am using Linux and currently implementing interface to the DVB
> demodulator using i2c.
> The read (from it's datasheet ecc3100 SkyPhy) demands the algo with repeat of
> start option:
>
> S Add+w A AddByte1 A AddByte2 A S Arr+r A ...
>
> So, which option i have to use in order to force such behavior.
> I am using user space application with ioctl I2C_RDWR
Well, I2C_RDWR is exactly what you need. Given that you already found
it, I am not sure what you are asking exactly? You need to provide an
array of 2 struct i2c_msg, one with the 2 address bytes to write, and
one for the bytes to read from the target slave chip.
Note that the user-space part of the code is the user of the I2C
implementation. You also need to implement the hardware I2C support on
the kernel side. That is, you need to write a kernel I2C bus driver
that implements the low-level access to the I2C bus on your DVB adapter.
--
Jean Delvare
prev parent reply other threads:[~2009-03-03 13:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-23 10:13 howto to suppor new i2c algo Zaphod
[not found] ` <49A276BF.6030102-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-03-03 13:50 ` 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=20090303145051.676ab361@hyperion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=zaphod001-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