Hi all,
I'm using the I2CPacket interface in a light sensor driver, but i met some
questions and i wonder if somebody could help me.
I have written a driver use I2CPacket and it worked well. In that case the
device's write and read diagram is sample.
But this one seems a little complex, the read and write diagram is as
follows:
WRITE DIAGRAM: start + device address + register address + functions +
stop
| -------------------SDA DRIVEN BY
MASTER--------------------- |
READ DIAGRAM: start + device address + register address + stop + start +
device address + data + stop
| ------------------------SDA DRIVEN BY
MASTER--------------------------------- | | SDA DRIVEN BY DEVICE |
In the I2CPacket.nc, there is a description like this:
"*The I2CPacket interface supports master-mode communication and provides
for multiple repeated STARTs and multiple reads/writes within the same START
transaction. *"
I think this will be the key to implement the diagram above but i don't
konw how.
Wish somebody could help me.
regards, Lee
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help