SunSPOT API V5.0


com.sun.spot.sensorboard.io
Interface IIOPin

All Superinterfaces:
IInputPin, IOutputPin
All Known Implementing Classes:
IOPin

public interface IIOPin
extends IOutputPin, IInputPin


Method Summary
 boolean isOutput()
          Ask if this pin is an output.
 void setAsOutput(boolean b)
          Set whether the pin should be an input or an output.
 
Methods inherited from interface com.sun.spot.sensorboard.io.IOutputPin
getIndex, getState, setHigh, setHigh, setLow
 
Methods inherited from interface com.sun.spot.sensorboard.io.IInputPin
addIInputPinListener, getIInputPinListeners, getIndex, isHigh, isLow, removeIInputPinListener, waitForChange
 

Method Detail

isOutput

boolean isOutput()
Ask if this pin is an output. Pins are initially inputs. Note that it is possible to query the current pin setting of an output pin using isHigh() and isLow().

Returns:
true if this pin is currently set to be an output

setAsOutput

void setAsOutput(boolean b)
Set whether the pin should be an input or an output.

Parameters:
b - if b is true the pin becomes an output, if false it becomes an input

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.