|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IADCController
Controller interface of an Analog to Digital Convertor controller.
Method Summary | |
---|---|
boolean |
areThresholdEventsEnabled(IScalarInput pin)
Return whether threshold events are enabled or disabled. |
void |
enableThresholdEvents(IScalarInput pin,
boolean enable)
Enable or disable threshold events. |
int |
getHighThreshold(IScalarInput pin)
Return the current high threshold value. |
int |
getLowThreshold(IScalarInput pin)
Return the current low threshold value. |
int |
getScalarValue(PinDescriptor pidx)
Return current value of scalar input idx meant to be used only by the accessor objects. |
void |
setThresholdValues(IScalarInput pin,
int low,
int high)
Set the low and high threshold values for this scalar input. |
boolean |
supportsThresholdEvents(PinDescriptor pidx)
Returns whether the underlying hardware supports threshold events. |
Method Detail |
---|
int getScalarValue(PinDescriptor pidx)
pidx
- pin to be read
boolean supportsThresholdEvents(PinDescriptor pidx)
void setThresholdValues(IScalarInput pin, int low, int high)
pin
- pin to be readlow
- the new low threshold value.high
- the new high threshold value.int getLowThreshold(IScalarInput pin)
pin
- pin to be read
int getHighThreshold(IScalarInput pin)
pin
- pin to be read
void enableThresholdEvents(IScalarInput pin, boolean enable)
pin
- pin to be readenable
- if true then listeners will be notified if the scalar input
reading goes above the high threshold or below the low threshold.boolean areThresholdEventsEnabled(IScalarInput pin)
pin
- pin to be read
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |