org.lsst.ccs.drivers.dmmio
Class DMMIOBoardDriver

java.lang.Object
  extended by org.lsst.ccs.drivers.commons.IOBoardDriver
      extended by org.lsst.ccs.drivers.dmmio.DMMIOBoardDriver

public class DMMIOBoardDriver
extends org.lsst.ccs.drivers.commons.IOBoardDriver

Driver for Diamond board


Constructor Summary
DMMIOBoardDriver()
           
DMMIOBoardDriver(int baseAddress)
           
 
Method Summary
protected  short convertFromVolts(double value)
           
protected  double convertToVolts(short value)
           
 double getAnalogInChannel(int n)
           
 int getAnalogInChannels()
           
 int getAnalogOutChannels()
           
 int getBaseAddress()
           
 int getDigitalInChannel(int n)
           
 int getDigitalInChannels()
           
 byte getDigitalInChannelsByte()
           
 int getDigitalOutChannels()
           
 double getFullScaleOut()
           
 double getGain()
           
 double getNextAnalogInChannel()
           
 void init()
           
 boolean isBiPolar()
           
 boolean isDifferential()
           
static void main(String[] args)
           
protected  short readData()
           
 void setAnalogChannelRange(byte low, byte high)
           
 void setAnalogOutChannel(int n, double value)
           
 void setBaseAddress(int baseAddress)
           
 void setDigitalOutChannel(int n, int value)
           
 void setDigitalOutChannelsByte(byte b)
           
 void setFullScaleOut(double fullScaleOut)
           
 void setGain(double gain)
           
protected  void triggerADC()
           
protected  void waitWhileBusy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DMMIOBoardDriver

public DMMIOBoardDriver()

DMMIOBoardDriver

public DMMIOBoardDriver(int baseAddress)
Method Detail

init

public void init()

setBaseAddress

public void setBaseAddress(int baseAddress)

getBaseAddress

public int getBaseAddress()

isBiPolar

public boolean isBiPolar()

isDifferential

public boolean isDifferential()

setGain

public void setGain(double gain)

getGain

public double getGain()

setFullScaleOut

public void setFullScaleOut(double fullScaleOut)

getFullScaleOut

public double getFullScaleOut()

setAnalogChannelRange

public final void setAnalogChannelRange(byte low,
                                        byte high)

triggerADC

protected final void triggerADC()

waitWhileBusy

protected final void waitWhileBusy()

readData

protected final short readData()

convertToVolts

protected double convertToVolts(short value)

convertFromVolts

protected short convertFromVolts(double value)

getAnalogInChannels

public int getAnalogInChannels()
Specified by:
getAnalogInChannels in class org.lsst.ccs.drivers.commons.IOBoardDriver

getAnalogOutChannels

public int getAnalogOutChannels()
Specified by:
getAnalogOutChannels in class org.lsst.ccs.drivers.commons.IOBoardDriver

getDigitalInChannels

public int getDigitalInChannels()
Specified by:
getDigitalInChannels in class org.lsst.ccs.drivers.commons.IOBoardDriver

getDigitalOutChannels

public int getDigitalOutChannels()
Specified by:
getDigitalOutChannels in class org.lsst.ccs.drivers.commons.IOBoardDriver

getAnalogInChannel

public double getAnalogInChannel(int n)
Specified by:
getAnalogInChannel in class org.lsst.ccs.drivers.commons.IOBoardDriver

getNextAnalogInChannel

public double getNextAnalogInChannel()

setAnalogOutChannel

public void setAnalogOutChannel(int n,
                                double value)
Specified by:
setAnalogOutChannel in class org.lsst.ccs.drivers.commons.IOBoardDriver

getDigitalInChannelsByte

public byte getDigitalInChannelsByte()

setDigitalOutChannelsByte

public void setDigitalOutChannelsByte(byte b)

getDigitalInChannel

public int getDigitalInChannel(int n)
Specified by:
getDigitalInChannel in class org.lsst.ccs.drivers.commons.IOBoardDriver

setDigitalOutChannel

public void setDigitalOutChannel(int n,
                                 int value)
Specified by:
setDigitalOutChannel in class org.lsst.ccs.drivers.commons.IOBoardDriver

main

public static void main(String[] args)


Copyright © 2013 LSST. All Rights Reserved.