|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.spot.sensorboard.io.IOPin
public class IOPin
| Constructor Summary | |
|---|---|
IOPin(PinDescriptor idx,
IGPIOController cntrl)
|
|
| Method Summary | |
|---|---|
PinDescriptor |
getIndex()
|
boolean |
isHigh()
|
boolean |
isLow()
|
boolean |
isOutput()
Ask if this pin is an output. |
void |
setAsOutput(boolean b)
|
void |
setHigh()
Sets pin output high |
void |
setHigh(boolean high)
|
void |
setLow()
Sets pin output low |
void |
waitForChange()
Blocks the caller waiting for a change. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IOPin(PinDescriptor idx,
IGPIOController cntrl)
| Method Detail |
|---|
public void setHigh()
IOutputPin
setHigh in interface IOutputPinpublic void setLow()
IOutputPin
setLow in interface IOutputPinpublic void setHigh(boolean high)
setHigh in interface IOutputPinhigh - boolean. If true, output is set high, otherwise output is set low.public boolean isLow()
isLow in interface IInputPinpublic boolean isHigh()
isHigh in interface IInputPinpublic void waitForChange()
IInputPin
waitForChange in interface IInputPinpublic boolean isOutput()
IIOPin
isOutput in interface IIOPinpublic void setAsOutput(boolean b)
setAsOutput in interface IIOPinb - if b is true the pin becomes an output, if false it becomes an inputpublic PinDescriptor getIndex()
|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||