Hi all,
I tried to acces an lm75 sensor using a philips style parport
adapter and the new i2c-driver (2.6.5) successfully, but I've
go a question regarding the i2c adressing. I'm using the i2c
dev interface.
1) The lm75 has the following address (lm75 1001, A2-A0 111)
=> read: 10011111 (0x9f), write: 10011110 (0x9e)
Using this address I get an error in ioctl(...,I2C_SLAVE,...) because
the address is larger then 0x7f (7-bit address). If I shift the address
right, I get 0x4f as slave address and the lm75 works fine.
2) How do I say the driver, that I want to write to the i2C bus, because
the R/W Bit is not contained in the slave address (right shift!!).
Is it done by open(..., RD_WR) or open(...,RD_ONLY) and do I have to
close and reopen the devivce if i change the operation from read to
write ???
Thanks
mit freundlichen Gruessen
Christian Schroeder
Dr.-Ing. Christian Schroeder
Institut fuer Mikroelektronik- und Mechatronik-Systeme
Langewiesener Strasse 22
98693 Ilmenau
Telefon: +49 3677 678315
Telefax: +49 3677 678337
Mobil: +49 173 5789172
e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
www: http://www.imms.de/~christi/cs.html
pgp: finger [EMAIL PROTECTED]
-------------------------------------------------
This mail sent through IMP: imp.imms.de
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.