Sun SPOT API
Green Release  


com.sun.spot.sensorboard.io
Class InputPin

java.lang.Object
  extended by com.sun.spot.sensorboard.io.InputPin
All Implemented Interfaces:
IInputPin

public class InputPin
extends Object
implements IInputPin

Accessor object for input only GPIO pins.


Constructor Summary
InputPin(PinDescriptor idx, IGPIOController cntrl)
           
 
Method Summary
 PinDescriptor getIndex()
           
 boolean isHigh()
           
 boolean isLow()
           
 void waitForChange()
          Blocks the caller waiting for a change.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputPin

public InputPin(PinDescriptor idx,
                IGPIOController cntrl)
Method Detail

isLow

public boolean isLow()
Specified by:
isLow in interface IInputPin
Returns:
true if the input bit is low.

isHigh

public boolean isHigh()
Specified by:
isHigh in interface IInputPin
Returns:
true if the input bit is high.

waitForChange

public void waitForChange()
Description copied from interface: IInputPin
Blocks the caller waiting for a change.

Specified by:
waitForChange in interface IInputPin

getIndex

public PinDescriptor getIndex()

Sun SPOT API
Green Release  


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