public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* howto to suppor new i2c algo
@ 2009-02-23 10:13 Zaphod
       [not found] ` <49A276BF.6030102-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Zaphod @ 2009-02-23 10:13 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA

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

thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: howto to suppor new i2c algo
       [not found] ` <49A276BF.6030102-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2009-03-03 13:50   ` Jean Delvare
  0 siblings, 0 replies; 2+ messages in thread
From: Jean Delvare @ 2009-03-03 13:50 UTC (permalink / raw)
  To: zaphod001-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-03 13:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox