public class TestCpfe1000 extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TestCpfe1000.OnOff |
| Constructor and Description |
|---|
TestCpfe1000() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
void |
open(org.lsst.ccs.drivers.i2c.I2c.ConnType connType,
String ident,
int addr)
Opens connection to a device.
|
void |
power(TestCpfe1000.OnOff action)
Turns the power on or off.
|
String |
showCurrent()
Shows the current.
|
String |
showDateManu()
Shows the manufacture date.
|
String |
showFirmware()
Shows the firmware revision.
|
String |
showLocManu()
Shows the manufacture location.
|
String |
showProduct()
Shows the product revision.
|
String |
showSerial()
Shows the serial number.
|
String |
showStatus()
Shows the status byte.
|
String |
showTemperature()
Shows the temperature.
|
String |
showUnitPart()
Shows the unit part number.
|
String |
showVoltage()
Shows the voltage.
|
@Command(name="open",
description="Open connection to device")
public void open(@Argument(name="type",description="Connection type")
org.lsst.ccs.drivers.i2c.I2c.ConnType connType,
@Argument(name="ident",description="Identification")
String ident,
@Argument(name="addr",description="Bus address")
int addr)
throws org.lsst.ccs.drivers.commons.DriverException
connType - The type of connection: ftdi or serialident - The identification: serial no. (ftdi) or port name
(serial)addr - The bus addressorg.lsst.ccs.drivers.commons.DriverException@Command(name="close",
description="Close the connection")
public void close()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showserial",
description="Show the serial number")
public String showSerial()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showfirmware",
description="Show the firmware revision")
public String showFirmware()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showproduct",
description="Show the product revision")
public String showProduct()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showunitpart",
description="Show the unit part number")
public String showUnitPart()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showdatemanu",
description="Show the manufacture date")
public String showDateManu()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showlocmanu",
description="Show the manufacture location")
public String showLocManu()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showstatus",
description="Show the status byte")
public String showStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showvoltage",
description="Show the voltage")
public String showVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showcurrent",
description="Show the current")
public String showCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showtemperature",
description="Show the temperature")
public String showTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="power",
description="Turn the power on or off")
public void power(@Argument(name="action",description="Action: on or off")
TestCpfe1000.OnOff action)
throws org.lsst.ccs.drivers.commons.DriverException
action - On or offorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2016 LSST. All rights reserved.