quick question regarding access of LM75 via /dev file system
Mark D. Studebaker
mds at paradyne.com
Thu Aug 8 04:19:52 CEST 2002
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
More information about the lm-sensors
mailing list