I am having a little bother interfacing with a device that requires two command bytes for both reads and writes. I can perform a successful write using I2C writes but I would rather use the user-space i2c_smbus_ functions from i2c-dev.h. In the i2c-dev documentation (http://lxr.free-electrons.com/source/Documentation/i2c/smbus-protocol?v=2.6.35;a=arm#L225) there is a mention of a two byte command block read but there does not appear to be any supporting function in i2c-dev.h. Is there a patch available to add this functionality or could there be another approach?
Just to clarify I need my smbus read transaction to look like this:
S Addr Wr [A] Comm1 [A] Comm2 [A] S Addr Rd [A] [Data] A [Data] A ... A [Data] NA P
Thanks
Wayne
_______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors