|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 used| Method Detail |
|---|
public PinDescriptor getIndex()
getIndex in interface IOutputPinpublic void setHigh()
setHigh in interface IOutputPinIOutputPin.setHigh()public void setLow()
setLow in interface IOutputPinIOutputPin.setLow()public void setHigh(boolean on)
setHigh in interface IOutputPinon - 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 V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||