com.sentilla.platform.tmote
Class ParSensorDriver.ParSensor

java.lang.Object
  extended by com.sentilla.platform.tmote.Action
      extended by com.sentilla.platform.tmote.Adc<javax.measure.quantity.Illuminance>
          extended by com.sentilla.platform.tmote.ParSensorDriver.ParSensor
All Implemented Interfaces:
MultipleSensor, Action, Sensor<javax.measure.quantity.Illuminance>
Enclosing class:
ParSensorDriver

public static class ParSensorDriver.ParSensor
extends Adc<javax.measure.quantity.Illuminance>

Tmote PAR sensor.


Field Summary
 
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
 
Fields inherited from class com.sentilla.platform.tmote.Action
actionAuto, actionId, actionState, isolateOwner
 
Fields inherited from interface com.sentilla.system.Action
DONE, ERROR, IDLE, PENDING
 
Constructor Summary
ParSensorDriver.ParSensor(byte port, byte refvolt)
           
 
Method Summary
 javax.measure.Measurable<javax.measure.quantity.Illuminance> getResult()
          Get the illumination value from the sensor.
 
Methods inherited from class com.sentilla.platform.tmote.Adc
getVoltage, read, readMultipleRaw, setRead
 
Methods inherited from class com.sentilla.platform.tmote.Action
block, block, cancel, getActionState, initAction, isDone, lookup, submit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sentilla.system.Action
block, block, cancel, getActionState, isDone, submit
 

Constructor Detail

ParSensorDriver.ParSensor

public ParSensorDriver.ParSensor(byte port,
                                 byte refvolt)
Method Detail

getResult

public javax.measure.Measurable<javax.measure.quantity.Illuminance> getResult()
Get the illumination value from the sensor.

Specified by:
getResult in interface Sensor<javax.measure.quantity.Illuminance>
Specified by:
getResult in class Adc<javax.measure.quantity.Illuminance>
Returns:
Illuminance.


Copyright © 2007 Sentilla Corporation. All Rights Reserved.