[Tinyos-help] Synchronous ADC read

2006-10-10 Thread Ian Welch
I want the following commands to happen ordercall Single.getData(1,0,0,0);post sendInfo();the sendInfo() task uses the reading from the previous ADC command. How do I make it so post sendInfo() doesn't get executed until my ADC reading has occurred, without posting the task in Single.dataReady?

Re: [Tinyos-help] Synchronous ADC read

2006-10-10 Thread R. Steve McKown
Hi Ian, On Tuesday 10 October 2006 10:42 am, Ian Welch wrote: I want the following commands to happen order call Single.getData(1,0,0,0); post sendInfo(); I presume Single is an instance of the Atm128AdcSingle interface, or one similar. The command getData() initiates an ADC operation.