|
SunSPOT API V2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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()
|
boolean |
getState()
|
String |
name()
An identifying name for the driver (e.g. |
void |
setHigh()
set value of pin to high |
void |
setHigh(boolean high)
set value of pin |
void |
setLow()
set value of pin to low |
void |
setUp()
Activate or reactivate the driver (after a deep sleep or when another driver refused to deep sleep). |
boolean |
tearDown()
Deactivate the driver (usually in preparation for deep sleep). |
| 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 void setHigh()
setHigh in interface IOutputPinpublic void setLow()
setLow in interface IOutputPinpublic void setHigh(boolean high)
setHigh in interface IOutputPinhigh - if true then pin is set to highpublic PinDescriptor getIndex()
public String name()
IDriver
name in interface IDriverpublic boolean getState()
public void setUp()
IDriver
setUp in interface IDriverpublic boolean tearDown()
IDriver
tearDown in interface IDriver
|
SunSPOT API V2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||