[Tinyos-help] I2CPacket
Para Lee
paradisove at gmail.com
Sat Jan 3 19:37:37 PST 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090104/60bea7b2/attachment.htm
More information about the Tinyos-help
mailing list