public class TestAd7794 extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestAd7794.CalibNames |
static class |
TestAd7794.ChanNames |
static class |
TestAd7794.ClockNames |
static class |
TestAd7794.CnvModeNames |
static class |
TestAd7794.GainNames |
static class |
TestAd7794.OnOff |
static class |
TestAd7794.OptionNames |
static class |
TestAd7794.RateNames |
static class |
TestAd7794.RefsNames |
| Constructor and Description |
|---|
TestAd7794() |
public TestAd7794()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Connect to a board")
public void connect(@Argument(description="Board index")
int index)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="initialize",
description="Initialize the chip")
public void initialize()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showstatus",
description="Show the status register")
public String showStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setchannel",
description="Set the channel")
public void setChan(@Argument(name="chan",description="Channel name")
TestAd7794.ChanNames chan)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showchannel",
description="Show the channel")
public String showChan()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setconversion",
description="Set the conversion mode")
public void setConv(@Argument(name="mode",description="Conversion mode")
TestAd7794.CnvModeNames mode)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showconversion",
description="Show the conversion mode")
public String showConv()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setrate",
description="Set the conversion rate")
public void setRate(@Argument(name="rate",description="Conversion rate")
TestAd7794.RateNames rate)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showrate",
description="Show the conversion rate")
public String showRate()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setclock",
description="Set the clock source")
public void setClock(@Argument(name="clock",description="Clock source")
TestAd7794.ClockNames clock)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showclock",
description="Show the clock source")
public String showClock()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setgain",
description="Set the gain")
public void setGain(@Argument(name="gain",description="The gain name")
TestAd7794.GainNames gain)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showgain",
description="Show the gain")
public String showGain()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setreference",
description="Set the reference source")
public void setReference(@Argument(name="source",description="Reference source")
TestAd7794.RefsNames source)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showreference",
description="Show the reference source")
public String showRefsel()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setrefdet",
description="Set reference detection")
public void setRefdet(@Argument(name="state",description="State to set")
TestAd7794.OnOff det)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showrefdet",
description="Show reference detection state")
public String showRefdet()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setbuffered",
description="Set buffered mode state")
public void setBuff(@Argument(name="state",description="State to set")
TestAd7794.OnOff on)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showbuffered",
description="Show buffered mode state")
public String showBuff()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setunipolar",
description="Set unipolar state")
public void setUnipol(@Argument(name="state",description="State to set")
TestAd7794.OnOff on)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showunipolar",
description="Show unipolar state")
public String showUnipol()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setswitch",
description="Set the power switch")
public void setSwitch(@Argument(name="state",description="Switch state")
TestAd7794.OnOff on)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showswitch",
description="Show the power switch")
public String showSwitch()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readadc",
description="Read an ADC")
public String readAdc(@Argument(name="chan",description="Channel number")
int chan,
@Argument(name="count",description="Sample count")
int count,
@Argument(name="optns",description="Option names")
TestAd7794.OptionNames... optns)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readtemp",
description="Read the chip temperature")
public String readTemp(@Argument(name="count",description="Sample count")
int count,
@Argument(name="optns",description="Option names")
TestAd7794.OptionNames... optns)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readvdd",
description="Read the chip VDD")
public String ReadVdd(@Argument(name="count",description="Sample count")
int count,
@Argument(name="optns",description="Option names")
TestAd7794.OptionNames... optns)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readtherm",
description="Read the thermistor")
public String readTherm(@Argument(name="count",description="Sample count")
int count,
@Argument(name="optns",description="Option names")
TestAd7794.OptionNames... optns)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="calibrate",
description="Perform a calibration")
public String calibrate(@Argument(name="chan",description="Channel number")
int chan,
@Argument(name="type",description="Calibration type")
int type)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showcalib",
description="Show calibration values")
public String showCalib(@Argument(name="chan",description="Channel number")
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showregs",
description="Show all register values")
public String showRegs()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readregister",
description="Read a register")
public String readReg(@Argument(name="regnum",description="Register number")
int regnum)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="writeregister",
description="Write a register")
public void writeReg(@Argument(name="regnum",description="Register number")
int regnum,
@Argument(name="value",description="Value to write")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="reset",
description="Set the reset state")
public void reset(@Argument(name="state",description="Reset state")
TestAd7794.OnOff on)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="load",
description="Load memory from a file")
public void load(@Argument(name="file",description="File name")
String fileName,
@Argument(name="force",description="Whether to force the load")
boolean force)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setdebug",
description="Set debug state on or off")
public void setDelay(@Argument(name="state",description="Debug state")
TestAd7794.OnOff state)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2019 LSST. All rights reserved.