Hello Kim,

> ...can anyone point me towards a sample application,  or well written
> piece of code which demonstrates how this interface should work.

>From skimming through the tos directory of the current TinyOS 2.x I
found that the implementation of the DS2745 battery voltage monitor
looks pretty clean.  Try taking a look at the code in:

tos/chips/ds2745/

and the I2C interface documentation located in:

tos/interfaces/I2CPacket.nc

You may also want to peek at the data sheet:

http://datasheets.maxim-ic.com/en/ds/DS2745.pdf

to see how the description of I2C interactions there were mapped into
implementation in TinyOS.

Best of luck,
-Roy

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to