com.sentilla.platform.tmote
Class McuVoltage
java.lang.Object
com.sentilla.platform.tmote.Action
com.sentilla.platform.tmote.Adc<javax.measure.quantity.ElectricPotential>
com.sentilla.platform.tmote.McuVoltage
- All Implemented Interfaces:
- MultipleSensor, Action, Sensor<javax.measure.quantity.ElectricPotential>
public class McuVoltage
- extends Adc<javax.measure.quantity.ElectricPotential>
Tmote MCU voltage sensor.
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()
Get the MCU voltage. |
Action |
submit()
Submit this Action for processing by the action engine. |
McuVoltage
public McuVoltage()
submit
public Action submit()
- Description copied from interface:
Action
- Submit this Action for processing by the action engine.
Calling submit transitions this Action to PENDING from either
IDLE, DONE, or ERROR. Nothing happens if this Action is
already PENDING.
- Specified by:
submit
in interface Action
- Overrides:
submit
in class Action
- Returns:
- A pointer to this Action.
getResult
public javax.measure.Measurable<javax.measure.quantity.ElectricPotential> getResult()
- Get the MCU voltage.
- Specified by:
getResult
in interface Sensor<javax.measure.quantity.ElectricPotential>
- Specified by:
getResult
in class Adc<javax.measure.quantity.ElectricPotential>
- Returns:
- the electric potential between ground and vdd.
Copyright © 2007 Sentilla Corporation. All Rights Reserved.