[i2c] I2C reads and writes

naveen krishna ch naveenkrishna.ch at gmail.com
Mon Oct 6 10:42:22 CEST 2008

Hi all,

I am working on a device driver (One touch). The registers of which are
16bit wide and are addressed by 16 bit address.
The SMBus supports 16 bit read but address cannot be 16 bit in that case.

I used the i2c_transfer, i2c_master_send and i2c_master_recv  combinations
to read and write data to and from the
registers of the device. Is this a good and neater way to do so. If not can
anyone suggest me a better one.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lm-sensors.org/pipermail/i2c/attachments/20081006/4f95cb5f/attachment.html 

More information about the i2c mailing list