com.gatespace.service.adc
Interface ADCLowLevel

All Known Implementing Classes:
ADC16LowLevel

public interface ADCLowLevel

Describes low-level communication with an ADC box.


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 integer value from ADC unit.
 boolean wakeup(com.gatespace.service.adc.SerialPort serialPort)
          Wake up the serial port
 

Method Detail

getResolutionMin

public int getResolutionMin()
Minimum number of bits in resolution

getResolutionMax

public int getResolutionMax()
Maximum number of bits in resolution

getChannelCount

public int getChannelCount()
Number of channels

getSingleEndedMode

public int getSingleEndedMode()
Measure in single-ended mode

getDifferentialMode

public int getDifferentialMode()
Measure in differetial mode

wakeup

public boolean wakeup(com.gatespace.service.adc.SerialPort serialPort)
Wake up the serial port

getType

public int getType()
Get type of attached ADC

getVersion

public int getVersion()
Get version of attached ADC

isValid

public boolean isValid()
Return true if attached ADC is valid

readValue

public int readValue(Channel channel)
              throws java.io.IOException
Read an integer value from ADC unit.