|
SunSPOT API V2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.sensorboard.io.BinaryScalar
public class BinaryScalar
Class to allow using a ScalarInput as though it is an GPIO InputPin.
| Constructor Summary | |
|---|---|
BinaryScalar(PinDescriptor idx,
int r,
IADCController cntrl)
Constructor |
|
| Method Summary | |
|---|---|
PinDescriptor |
getIndex()
|
int |
getRange()
|
int |
getValue()
|
boolean |
isHigh()
|
boolean |
isLow()
|
void |
waitForChange()
Blocks the caller waiting for a change. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryScalar(PinDescriptor idx,
int r,
IADCController cntrl)
idx - Pin that| Method Detail |
|---|
public int getValue()
getValue in interface IScalarInput
public int getRange()
throws IOException
getRange in interface IScalarInputIOExceptionpublic boolean isLow()
isLow in interface IInputPinpublic boolean isHigh()
isHigh in interface IInputPinpublic void waitForChange()
IInputPinEDemoBoard.waitForPinChange().
waitForChange in interface IInputPinpublic PinDescriptor getIndex()
|
SunSPOT API V2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||