|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.alarexgroup.m2mplf.adapters.converter.ADCAdapter
public class ADCAdapter
Adapter for controlling the A/D converter.
Example:
import com.alarexgroup.m2mplf.M2Mlet;
|
| Method Summary | |
|---|---|
static ADCAdapter |
getADCAdapter(ADCAdapterListener listener,
boolean isTerminal)
Adapter initialization |
void |
onURCEvent(java.lang.String urc)
Internal method |
int |
readAD(int channel)
Reads the input value of adapter |
boolean |
readADPeriodic(int channel,
int period)
Ensures continuous scanning of A/D value. |
void |
stopADRead(int channel)
Stop continuous scanning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ADCAdapter getADCAdapter(ADCAdapterListener listener,
boolean isTerminal)
listener - referrence to ADCAdapter listenerisTerminal - TRUE if you are using a terminal version of TC65
public int readAD(int channel)
channel - AD channel
public boolean readADPeriodic(int channel,
int period)
ADCAdapterListener.onADCMeasured(int, int, int[]) is called periodically.
channel - ADC channelperiod - period of scanning - 100 - 30000 ms
public void stopADRead(int channel)
channel - ADC channelpublic void onURCEvent(java.lang.String urc)
onURCEvent in interface ATCommanderListenerurc - urc event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||