com.sentilla.platform.tmote
Class VoltageAdc
java.lang.Object
com.sentilla.platform.tmote.Action
com.sentilla.platform.tmote.Adc<javax.measure.quantity.ElectricPotential>
com.sentilla.platform.tmote.VoltageAdc
- All Implemented Interfaces:
- MultipleSensor, Action, Sensor<javax.measure.quantity.ElectricPotential>
public class VoltageAdc
- extends Adc<javax.measure.quantity.ElectricPotential>
Tmote extension of Adc (analog-to-digital converter).
Readings always measure ElectricPotential.
Fields inherited from class com.sentilla.platform.tmote.Adc |
adcports, numPortsToRead, PORT_A0, PORT_A1, PORT_A2, PORT_A3, PORT_A4, PORT_A5, PORT_A6, PORT_A7, PORT_AVCC_DIV_2, PORT_TEMPERATURE, PORT_VEREFP, PORT_VREFM_DIV_VEREFM, refvolt, REFVOLT_1_5, REFVOLT_2_5, voltages |
Method Summary |
javax.measure.Measurable<javax.measure.quantity.ElectricPotential> |
getResult()
Asynchronous interface to get the result of the last sensor read operation. |
VoltageAdc
public VoltageAdc(byte adcport)
VoltageAdc
public VoltageAdc(byte adcport,
byte refvolt)
getResult
public javax.measure.Measurable<javax.measure.quantity.ElectricPotential> getResult()
- Description copied from interface:
Sensor
- Asynchronous interface to get the result of the last sensor read operation.
- Specified by:
getResult
in interface Sensor<javax.measure.quantity.ElectricPotential>
- Specified by:
getResult
in class Adc<javax.measure.quantity.ElectricPotential>
- Returns:
- Sensor measurement of type Q.
Copyright © 2007 Sentilla Corporation. All Rights Reserved.