prog/dump/i2cdump.c in our package is a good example Sanjay Kumar wrote: > > Hi, > > Sorry for posting this mail!!!!! > > How can i access the different register of LM75 using /dev file system > interface. I do the following steps: > > 1. open (/dev.......................) > 2. ioctl(fd, I2C_SLAVE, i2c-addr); i2c-addr : slave address for > LM75. > 3. read/write > > Now using read command how do i access the different register of LM75 > (Ex. conf register, temp register, hyst register etc) > Again , how do I write it in these register? > if i do read(fd, buf, 1) : which register's data it will return > to me. > > Will somebody help me here pls.??? > > Thankx in advance, > Sanjay