|
SunSPOT API V4.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 | |
---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this output pin. |
PinDescriptor |
getIndex()
Return the PinDescriptor for this pin. |
boolean |
getState()
Return the current state of this pin. |
int |
hashCode()
Returns a hash code value for the object. |
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 |
---|
getClass, 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
public boolean equals(Object obj)
equals
in class Object
obj
- the reference object with which to compare.
Boolean.hashCode()
,
Hashtable
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
Hashtable
|
SunSPOT API V4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |