com.sun.spot.sensorboard.io
Class InputPin
java.lang.Object
com.sun.spot.sensorboard.io.InputPin
- All Implemented Interfaces:
- IInputPin
public class InputPin
- extends Object
- implements IInputPin
Accessor object for input only GPIO pins.
InputPin
public InputPin(PinDescriptor idx,
IGPIOController cntrl)
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()
Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.