From: "antonio gonga" <[EMAIL PROTECTED]>
To: tinyos-help@Millennium.Berkeley.EDU
CC: [EMAIL PROTECTED]
Subject: ADC.getContinuousData()
Date: Tue, 19 Sep 2006 12:46:46 +0000
hello
sorry to trouble u again, I still have a doubt about
Adc.getContinuousData(),
I'm sampling a microphone, but i'm not using timer to call it each time the
Timer fires. I'd like to know If I return FAIL where will the program
control Flow returns
example:
command result_t StdControl.start(){
post startTakeSamples();
return SUCCESS;
}
task void startTakeSamples(){
call ADC.getContinuousData() //this will call ADC.dataReady()
HERE<<<<<<<<<<<<<<<----------?????-----------------------
}
|
|
async event result_t Adc.dataREady(uint16_t data){ |
uffer[i++] = data>>2; |
if(i >=MAXBUF)
|
return FAIL; //WHERE Will The Program RETURN?.-->---
HERE is where you have to return FAIL
return SUCCESS;
}
thanks
=======================================
*Gonga, Antonio Oliveira : STUDENT OF
*Electrical and Computer Engineering(LEEC)
*Mobile:+351 969154437
*Mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
[EMAIL PROTECTED]
*HomePage: HTTP://mega.ist.utl.pt/~aogo
=======================================
From: "Andres Aberasturi" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], tinyos-help@Millennium.Berkeley.EDU
Subject: RE: [Tinyos-help] ADC.getContinuousData()
Date: Tue, 19 Sep 2006 14:17:37 +0200
Hi,
You must return FAIL in the adc.dataReady().
Andrés.
From: "antonio gonga" <[EMAIL PROTECTED]>
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] ADC.getContinuousData()
Date: Tue, 19 Sep 2006 11:19:39 +0000
hello,
any one knows how to stop adc.getcontinuousdata()?
please feel free to answer me
antonio
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_________________________________________________________________
Acepta el reto MSN Premium: Correos más divertidos con fotos y textos
increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis.
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos
_________________________________________________________________
Horóscopo, tarot, numerología... Escucha lo que te dicen los astros.
http://astrocentro.msn.es/
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help