Hi again,

(this is an i2c WE :))

Joep, I'm trying to migrate some of my code to jallib, using i2c_level1 
library. BTW, TX/RX buffers are quite surprising at first, but very handy 
once you get used to it.

Can you confirm the address you pass to i2c_send_receive and others func are 8 
bits coded ? That is: addresses are 8bits long, the 8th being ignored (use 
can set it to 0 or 1) and set by the lib to either 0 or 1 whether it's a read 
or write operation. Is that right ? This is what I understand reading the 
code...

If so, there's a big difference with the original Wouter's i2c lib, where 
addresses are 7 bits long, and the lib left-shifts the bits and add 0 or 1. I 
prefer by far your approach: when setting a i2c hardware slave, it must be 8 
bits long. Using "original" wouter's lib, you'd need to convert it back to a 
7 bits long address.

Your lib keeps it consistent: only uses/sets a 8bits address. Is that the 
convention too ? (for instance for i2c eeprom)


Cheers,
Seb
-- 
Sébastien LELONG
http://www.sirloon.net
http://sirbot.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to