Sun SPOT API
Green Release  


com.sun.spot.sensorboard.hardware
Class ADT7411RangeInput

java.lang.Object
  extended by com.sun.spot.sensorboard.hardware.AbstractADT7411RangeInput
      extended by com.sun.spot.sensorboard.hardware.ADT7411RangeInput
All Implemented Interfaces:
IScalarInput

public class ADT7411RangeInput
extends AbstractADT7411RangeInput

Sub-class of AbstractADT7411RangeInput that provides access to the a-to-d channels of the ADT7411 that are used for the accelerometer, the light sensor and the battery voltage sensor. Once constructed, the ADT7411RangeInput object provides values from selected channel via the RangeInput interface implemented by AbstractADT7411RangeInput

Author:
Syntropy

Field Summary
 
Fields inherited from class com.sun.spot.sensorboard.hardware.AbstractADT7411RangeInput
adt7411, lsbAddress, lsbBitShift, msbAddress
 
Constructor Summary
ADT7411RangeInput(IADT7411 adt7411, int pinNumber)
          Constructor; stores addressing values for the adt7411 and the pin number that defines the a-to-d channel to be used
 
Method Summary
 
Methods inherited from class com.sun.spot.sensorboard.hardware.AbstractADT7411RangeInput
getRange, getValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ADT7411RangeInput

public ADT7411RangeInput(IADT7411 adt7411,
                         int pinNumber)
Constructor; stores addressing values for the adt7411 and the pin number that defines the a-to-d channel to be used

Parameters:
adt7411 - the ADT7411 to be accessed
pinNumber - defines the a-to-d channel to be accessed by this object

Sun SPOT API
Green Release  


Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.