On Tue, 07 Jul 2009 11:54:03 +0000, Jonathan Cameron wrote:
> Jean Delvare wrote:
> > Note: this could be done from userspace too if needed. The i2c-dev
> > interface supports raw reads and writes.
> > 
> Good point, I'd missed that functionality (did seem a little odd
> that I couldn't find it!)
> 
> Method's much the same, but involves using the relevant ioctl
> (I2C_RDWR), in conjunction iwth an appropriately filled
> i2c_rdwr_ioctl_data structure.
> 
> The i2c_smbus_access function in i2c-dev.h (lm-sensors version)
> is similar enough to show how to do it.

Actually: i2c-tools version of i2c-dev.h

As some point in the future I'll try to get it generated from the
kernel's one so that it gets integrated into the standard
kernel-headers package. But this involves moving some of the helper
functions to a new library and I could never find the time to set this
up.

-- 
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to