Hello all ,
I have some questions in this module please help me with ASAP ....
In oscilloscopeRF( in dataTask ) what does this mean ?
pack->channel = 1;
and this :
atomic {
currentMsg ^= 0x1;
}
when is the send being called in oscilloscopeRF ? does this happen in the
dataTask() ... I'm alittle bit confused because the send command is inside
the if statement in order to toggle the yellow led ...
and correct me if I'm wrong :
this pack->sourceMoteID = TOS_LOCAL_ADDRESS; means that the mote ID
of THIS mote is set to local address of the mote ... but what is exactly
the TOS_LOCAL_ADDRESS.
and I dont actually understand this part :
async event result_t ADC.dataReady(uint16_t data) {
struct OscopeMsg *pack;
atomic {
pack = (struct OscopeMsg *)msg[currentMsg].data;
pack->data[packetReadingNumber++] = data;
readingNumber++;
dbg(DBG_USR1, "data_event\n");
if (packetReadingNumber == BUFFER_SIZE) {
post dataTask();
}
}
if (data > 0x0300)
call Leds.redOn();
else
call Leds.redOff();
return SUCCESS;
}
and specially this part :
struct OscopeMsg *pack;
atomic {
pack = (struct OscopeMsg *)msg[currentMsg].data;
pack->data[packetReadingNumber++] = data;
in the end I would like to thank u for reading but please reply ASAP and
please be clear and specific .... thanks
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help