Interface: tos.interfaces.ADC
interface ADC
Analog to Digital Converter Interface.
Defines the functions provided by any ADC
- Modified:
-
6/25/02
- Author:
-
Jason Hill
-
David Gay
-
Philip Levis
Commands
command result_t getData()
Events
event result_t dataReady(uint16_t data)
Commands - Details
getContinuousData
command result_t getContinuousData()
- Returns:
-
SUCCESS if the ADC is free and available to accept the request
getData
command result_t getData()
- Returns:
-
SUCCESS if the ADC is free and available to accept the request
Events - Details
dataReady
event result_t dataReady(uint16_t data)
- Parameters:
-
data
- a 2 byte unsigned data value sampled by the ADC.
- Returns:
-
SUCCESS if ready for the next conversion in continuous mode.
if not in continuous mode, the return code is ignored.