|
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.InvertingInputPin
public class InvertingInputPin
Class implementing single bit input with inversion of values read, i.e. low signal is returned as high and high signal is returned as low.
| Constructor Summary | |
|---|---|
InvertingInputPin(IInputPin input)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addIInputPinListener(IInputPinListener who)
Adds the specified input pin listener to receive callbacks from this input pin. |
IInputPinListener[] |
getIInputPinListeners()
Returns an array of all the input pin listeners registered on this input pin. |
PinDescriptor |
getIndex()
Return the PinDescriptor associated with this input pin. |
boolean |
isHigh()
Return true if the actual input bit is low. |
boolean |
isLow()
Return true if the actual input bit is high. |
void |
pinSetHigh(IInputPin pin)
Callback from associated InputPin to when switch released. |
void |
pinSetLow(IInputPin pin)
Callback from associated InputPin to when switch pressed. |
void |
removeIInputPinListener(IInputPinListener who)
Removes the specified input pin listener so that it no longer receives callbacks from this input pin. |
void |
waitForChange()
Blocks until there is a change, either way, in the input, as defined for the interface IInputPin |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InvertingInputPin(IInputPin input)
input - single-bit input to be used| Method Detail |
|---|
public PinDescriptor getIndex()
getIndex in interface IInputPinpublic boolean isLow()
isLow in interface IInputPinIInputPin.isLow()public boolean isHigh()
isHigh in interface IInputPinIInputPin.isHigh()public void waitForChange()
waitForChange in interface IInputPinIInputPin.waitForChange()public void addIInputPinListener(IInputPinListener who)
addIInputPinListener in interface IInputPinwho - the input pin listener to add.public void removeIInputPinListener(IInputPinListener who)
removeIInputPinListener in interface IInputPinwho - the input pin listener to remove.public IInputPinListener[] getIInputPinListeners()
getIInputPinListeners in interface IInputPinpublic void pinSetLow(IInputPin pin)
pinSetLow in interface IInputPinListenerpublic void pinSetHigh(IInputPin pin)
pinSetHigh in interface IInputPinListenerpin - the pin that has changed state to high.
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||