quick question regarding access of LM75 via /dev file system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux