SunSPOT API V3.0


com.sun.spot.sensorboard.io
Interface IOutputPin

All Known Subinterfaces:
IIOPin
All Known Implementing Classes:
InvertingOutputPin, IOPin, OutputPin

public interface IOutputPin

Interface SingleBitOutput defines access to a single output pin.

Author:
jn151271 13-Dec-2004

Method Summary
 PinDescriptor getIndex()
          Return the PinDescriptor associated with this output pin.
 boolean getState()
          Return the current state of this pin.
 void setHigh()
          Sets pin output high
 void setHigh(boolean high)
           
 void setLow()
          Sets pin output low
 

Method Detail

getIndex

PinDescriptor getIndex()
Return the PinDescriptor associated with this output pin.

Returns:
the PinDescriptor associated with this output pin.

setHigh

void setHigh()
Sets pin output high


setLow

void setLow()
Sets pin output low


setHigh

void setHigh(boolean high)
Parameters:
high - boolean. If true, output is set high, otherwise output is set low.

getState

boolean getState()
Return the current state of this pin.

Returns:
current state of this pin

SunSPOT API V3.0


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