SunSPOT API V3.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)
           
 
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)
Parameters:
b - if b is true the pin becomes an output, if false it becomes an input

SunSPOT API V3.0


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