[Tinyos-help] RE: ADC.getContinuousData()
Andres Aberasturi
benytokmelas at hotmail.com
Tue Sep 19 08:06:52 PDT 2006
>From: "antonio gonga" <ask25019fe at hotmail.com>
>To: tinyos-help at Millennium.Berkeley.EDU
>CC: benytokmelas at hotmail.com
>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: aogo at mega.ist.utl.pt, ask25019fe at hotmail.com
>agonga at gmail.com
>*HomePage: HTTP://mega.ist.utl.pt/~aogo
>=======================================
>
>
>
>
>
>>From: "Andres Aberasturi" <benytokmelas at hotmail.com>
>>To: ask25019fe at hotmail.com, tinyos-help at 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" <ask25019fe at hotmail.com>
>>>To: tinyos-help at 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 at 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/
More information about the Tinyos-help
mailing list