getData starts a conversion cycle on the configuration-specified ADC
and returns SUCCESS or something like that.
dataReady(uint16_t d) is called, some 25 clocks later, and the arg
is the converted value. You can imagine it as an interrupt routine.
For an example see the Oscilloscope demo app.
MS
wassim znaidi wrote:
i'm new user in tinyos and i want to know how the command ADC.getData()
does work
please can anyone help me to understand how this function get the data
and what it return
thanks
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help