Re: howto to suppor new i2c algo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux