[Tinyos-help] what's the range of the return value of SysTime.getTime32()
Guo Huiliang
huiliang.guo at gmail.com
Wed Mar 4 20:37:25 PST 2009
Hi,all:
I use Micaz mote, the implementation calls the function getTime32() of
interface SysTime, I always find the return value of the function in the
range of 0x000000~ 0x01FFFF, while the implementation run the
StdControl.start() of SysTime 5 minutes ago. what's wrong ?
command result_t StdControl.start() {
...
call JoinTimerHandler.start();// JoinTimerHandler is the alias of
SysTimeM.StdControl;
return SUCCESS;
}
uint32_t JoinTime = call SysTime.getTime32();
nodeID[i+1]=(uint16_t)(JoinTime>>16);
nodeID[i+2]=(uint16_t)(JoinTime & 0xFFFF);
I found the nodeID[i+1] is always 0 or 1.
Many many Thanks,
Huiliang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090305/0edc7875/attachment.htm
More information about the Tinyos-help
mailing list