|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IInputPin
Interface IInputPin defines access to a single input pin.
Method Summary | |
---|---|
void |
addIInputPinListener(IInputPinListener who)
Adds the specified input pin listener to receive callbacks from this input pin. |
IInputPinListener[] |
getIInputPinListeners()
Return 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 input bit is high. |
boolean |
isLow()
Return true if the input bit is low. |
void |
removeIInputPinListener(IInputPinListener who)
Removes the specified input pin listener so that it no longer receives callbacks from this input pin. |
void |
waitForChange()
Block the current thread until the pin's state changes. |
Method Detail |
---|
PinDescriptor getIndex()
boolean isLow()
boolean isHigh()
void waitForChange()
void addIInputPinListener(IInputPinListener who)
who
- the input pin listener to add.void removeIInputPinListener(IInputPinListener who)
who
- the input pin listener to remove.IInputPinListener[] getIInputPinListeners()
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |