|
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.InvertingOutputPin
public class InvertingOutputPin
Class implementing single bit output with inversion of values suppied by the calling code, i.e. a request to set output high sets it low and vice versa.
Constructor Summary | |
---|---|
InvertingOutputPin(IOutputPin output)
Constructor. |
Method Summary | |
---|---|
PinDescriptor |
getIndex()
Return the PinDescriptor associated with this output pin. |
boolean |
getState()
Return the current state of this output pin. |
void |
setHigh()
Sets the output low, i.e. the exact opposite of the output defined for interface SingleBitOutput |
void |
setHigh(boolean on)
|
void |
setLow()
Sets the output high, i.e. the exact opposite of the output defined for interface SingleBitOutput |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InvertingOutputPin(IOutputPin output)
output
- single-bit output to be usedMethod Detail |
---|
public PinDescriptor getIndex()
getIndex
in interface IOutputPin
public void setHigh()
setHigh
in interface IOutputPin
IOutputPin.setHigh()
public void setLow()
setLow
in interface IOutputPin
IOutputPin.setLow()
public void setHigh(boolean on)
setHigh
in interface IOutputPin
on
- if true, the output is set low; if false the output is set highIOutputPin.setHigh(boolean)
public 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 |