This is pretty amazing. There is actually an explanatory
comment that is correct in the source file, but...
from the Tos1.x ADC.nc file:
/**
* Initiates an ADC conversion on a given port.
*
* @return SUCCESS if the ADC is free and available
* to accept the request
*/
async command result_t getData();
Like many TOS function the ADCs have a two-phase access
pattern. The first phase is the getData() which initiates
a conversion, and the second phase is dataReady() which
returns the actual data. dataReady() is a "callback hook"
that the user implements which is called from the innards
of the system when the conversion is complete.
Look into the tutorials and demo apps for usage examples
and further discussion.
MS
Malini Manoharan wrote:
>
> Hi all,
>
> What will be the output of ADC.getdata( ) ? Is it the raw voltage
> value of the sensor connected to the corresponding ADC channel or the
> calibrated sensor reading? Plz help me...
>
> Awaiting the answer,
> Malini.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help