|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.gatespace.service.adc.impl.ADC16LowLevel
Handles low-level protocol to ADC 16
Field Summary | |
protected int |
adc_type
|
protected int |
adc_version
|
protected byte[] |
buf
|
protected java.io.InputStream |
in
|
protected java.io.OutputStream |
out
|
protected static byte |
REQUEST_VERSION
|
Constructor Summary | |
ADC16LowLevel()
|
Method Summary | |
int |
getChannelCount()
Number of channels |
int |
getDifferentialMode()
Measure in differetial mode |
int |
getResolutionMax()
Maximum number of bits in resolution |
int |
getResolutionMin()
Minimum number of bits in resolution |
int |
getSingleEndedMode()
Measure in single-ended mode |
int |
getType()
Get type of attached ADC |
int |
getVersion()
Get version of attached ADC |
boolean |
isValid()
Return true if attached ADC is valid |
int |
readValue(Channel channel)
Read an int value from ADC unit. |
boolean |
wakeup(com.gatespace.service.adc.impl.SerialPort serialPort)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected byte[] buf
protected static byte REQUEST_VERSION
protected int adc_type
protected int adc_version
protected java.io.InputStream in
protected java.io.OutputStream out
Constructor Detail |
public ADC16LowLevel()
Method Detail |
public int getResolutionMin()
public int getResolutionMax()
public int getChannelCount()
public int getSingleEndedMode()
public int getDifferentialMode()
public int getType()
public int getVersion()
public boolean isValid()
public boolean wakeup(com.gatespace.service.adc.impl.SerialPort serialPort)
public int readValue(Channel channel) throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |