|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.sensorboard.io.OutputPin
public class OutputPin
Accessor object for output only GPIO pins.
Constructor Summary | |
---|---|
OutputPin(PinDescriptor idx,
IGPIOController cntrl)
|
Method Summary | |
---|---|
PinDescriptor |
getIndex()
Return the PinDescriptor for this pin. |
boolean |
getState()
Return the current state of this pin. |
void |
setHigh()
Set the value of this pin to high. |
void |
setHigh(boolean high)
Set the value of this pin. |
void |
setLow()
Set the value of this pin to low. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputPin(PinDescriptor idx, IGPIOController cntrl)
Method Detail |
---|
public PinDescriptor getIndex()
getIndex
in interface IOutputPin
public void setHigh()
setHigh
in interface IOutputPin
public void setLow()
setLow
in interface IOutputPin
public void setHigh(boolean high)
setHigh
in interface IOutputPin
high
- if true then pin is set to highpublic boolean getState()
getState
in interface IOutputPin
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |