[Tinyos-help] What is the unit for the LocalTime interface wired
toTimerC on TelosB?
Shaun Lawrence
slawrence at invocon.com
Wed Mar 5 06:22:12 PST 2008
Sha,
Depends on how you have it wired. If you have it call out as "uses interface
LocalTime<TMilli> as LocalTime" then you would divide the result of
LocalTime.get() by 1024 to get seconds. Similar for others.
Basically it returns the number of ticks since bootup. Since the example
above was implemented using TMilli, then 1024 ticks = 1 second.
-Shaun
-----Original Message-----
From: tinyos-help-bounces at millennium.berkeley.edu
[mailto:tinyos-help-bounces at millennium.berkeley.edu] On Behalf Of Sha Liu
Sent: Tuesday, March 04, 2008 11:18 AM
To: tinyos-help at millennium.berkeley.edu
Subject: [Tinyos-help] What is the unit for the LocalTime interface wired
toTimerC on TelosB?
Hi,
I'm wonder what is the unit for the LocalTime interface wired to TimerC on
TelosB. Basically, what number shall be multiplied to the number given by
LocalTime.read()? I searched the mailing list archive but couldn't to find
any answer. It will also be appreciated if any other pointers could be
provided.
Thanks,
Sha
_______________________________________________
Tinyos-help mailing list
Tinyos-help at millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
More information about the Tinyos-help
mailing list