public class TestSrp extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
TestSrp.ConsThread
Inner class for detecting console input while reading continuously.
|
protected static class |
TestSrp.OnOff
Data fields
|
| Modifier and Type | Field and Description |
|---|---|
protected TestSrp.ConsThread |
consThread |
protected Srp |
srp |
| Constructor and Description |
|---|
TestSrp()
Constructor.
|
TestSrp(Srp srp)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect(int node) |
void |
connect(int node,
int port) |
void |
connectIp(String ipAddr) |
void |
connectIp(String ipAddr,
int port) |
String |
contRead(int addr,
int count) |
void |
disconnect() |
protected static String |
formatHex(int addr,
int[] data) |
protected static String |
formatRate(long start,
int count) |
String |
read(int addr) |
String |
read(int addr,
int count) |
int |
readScratch() |
void |
reloadFpga() |
void |
setDebug(TestSrp.OnOff state) |
void |
setSrpVersion(int version) |
void |
setTimeout(int timeout) |
void |
setWarnTime(int time) |
Srp.BoardType |
showBoardType() |
String |
showBuildStamp() |
String |
showFpgaVersion() |
int |
showNumSeqErr() |
int |
showNumTimeout() |
int |
showTimeout() |
int |
showUpSecs() |
String |
showUpTime() |
int |
showWarnTime() |
void |
update(int addr,
int mask,
int value) |
void |
userReset() |
void |
write(int addr,
int... value) |
void |
writeScratch(int value) |
protected final Srp srp
protected final TestSrp.ConsThread consThread
public TestSrp()
public TestSrp(Srp srp)
srp - Srp object@Command(description="Set the SRP version")
public void setSrpVersion(@Argument(description="Version number")
int version)
@Command(description="Set the debug state")
public void setDebug(@Argument(description="The state (on or off)")
TestSrp.OnOff state)
@Command(description="Open connection to device")
public void connectIp(@Argument(description="IP address")
String ipAddr,
@Argument(description="Port number")
int port)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Open connection to device")
public void connectIp(@Argument(description="IP address")
String ipAddr)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Open connection to device")
public void connect(@Argument(description="Node number")
int node,
@Argument(description="Port number")
int port)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Open connection to device")
public void connect(@Argument(description="Node number")
int node)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Close connection to device")
public void disconnect()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the board type") public Srp.BoardType showBoardType() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the build stamp") public String showBuildStamp() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the FPGA version") public String showFpgaVersion() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the board up time (seconds)")
public int showUpSecs()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Show the board up time (ddd hh:mm:ss)") public String showUpTime() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Write the scratch pad register")
public void writeScratch(@Argument(description="The value to write")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read the scratch pad register")
public int readScratch()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Perform a user reset")
public void userReset()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Reload the FPGA")
public void reloadFpga()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Set the read timeout")
public void setTimeout(@Argument(description="The timeout (ms)")
int timeout)
@Command(description="Show the read timeout") public int showTimeout()
@Command(description="Set the read warning time")
public void setWarnTime(@Argument(description="The time (ms)")
int time)
@Command(description="Show the read warning time") public int showWarnTime()
@Command(description="Show the timeout count") public int showNumTimeout()
@Command(description="Show the sequence error count") public int showNumSeqErr()
@Command(description="Read a register") public String read(@Argument(description="Register address") int addr) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Reads registers") public String read(@Argument(description="Register address") int addr, @Argument(description="Register count") int count) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Write a register")
public void write(@Argument(description="Register address")
int addr,
@Argument(description="Register values")
int... value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Update a register")
public void update(@Argument(description="Register address")
int addr,
@Argument(description="Mask of bits to change")
int mask,
@Argument(description="Register value")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Continuously read a set of registers") public String contRead(@Argument(description="First register address") int addr, @Argument(description="Number of registers") int count) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionprotected static String formatHex(int addr, int[] data)
protected static String formatRate(long start, int count)
Copyright © 2022 LSST. All rights reserved.