public class SequencerProc extends Object
| Constructor and Description |
|---|
SequencerProc(org.lsst.ccs.drivers.reb.BaseSet bss)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableScan(boolean value)
Enables or disables scan mode.
|
int |
getDataSource()
Gets the data source.
|
int |
getErrorAddr()
Gets error address.
|
Map<String,Integer> |
getFunctionMap()
Gets the map of functions.
|
int[] |
getImageRegisters()
Gets the array of image parameter registers to be read
|
int[] |
getImageRegisters(String[] names,
boolean strict)
Gets the array of image parameter register addresses to be read
|
Map<String,Integer> |
getMainMap()
Gets the map of main programs.
|
List<String> |
getMains()
Gets the list of main programs.
|
int |
getParameter(String parmName)
Gets a parameter value.
|
Map<String,FPGA2Model.PointerInfo> |
getPointers()
Gets the map of pointer information.
|
Map<String,Integer> |
getSubroutineMap()
Gets the map of subroutines.
|
boolean |
isRunning()
Checks whether the sequencer is running.
|
boolean |
isScanEnabled()
Gets the scan mode enabled state.
|
int |
loadSequencer(FPGA2Model model)
Load the sequencer from a compiled FPGA model.
|
int |
loadSequencer(InputStream in)
Loads a sequencer from an input string.
|
int |
loadSequencer(String fileName)
Loads the sequencer from a file.
|
void |
resetError()
Resets error state.
|
void |
resetScan()
Resets scan mode.
|
void |
sendStep()
Sends a sequencer step command.
|
void |
sendStop()
Sends a sequencer stop command.
|
void |
setCcdMask(int ccdMask)
Sets the mask of CCDs being used.
|
void |
setDataSource(int value)
Sets the data source.
|
void |
setParameter(String parmName,
int value)
Sets a parameter value.
|
int |
setStart(int address)
Sets the sequencer start address.
|
int |
setStart(String mainName)
Sets the sequencer start address.
|
void |
startSequencer()
Starts the sequencer.
|
void |
waitDone(int timeout)
Waits for the sequencer to be done (idle)
|
public SequencerProc(org.lsst.ccs.drivers.reb.BaseSet bss)
bss - public int loadSequencer(String fileName) throws org.lsst.ccs.drivers.reb.REBException, IOException
fileName - The name of the file containing sequencer instructionsIOException - If there is an error opening or reading the fileorg.lsst.ccs.drivers.reb.REBException - If there is an error communicating with the REBpublic int loadSequencer(InputStream in) throws IOException, org.lsst.ccs.drivers.reb.REBException
in - The input stream to readIOException - If there is an error opening or reading the fileorg.lsst.ccs.drivers.reb.REBException - If there is an error communicating with the REBpublic int loadSequencer(FPGA2Model model) throws org.lsst.ccs.drivers.reb.REBException
model - The model to loadorg.lsst.ccs.drivers.reb.REBException - If there is an error talking to the REBpublic List<String> getMains()
public Map<String,Integer> getMainMap()
public Map<String,Integer> getSubroutineMap()
public Map<String,Integer> getFunctionMap()
public Map<String,FPGA2Model.PointerInfo> getPointers()
public int[] getImageRegisters()
public int[] getImageRegisters(String[] names, boolean strict) throws RaftException
names - The list of parameter namesstrict - if true will throw an exception if any named
registers are missing, otherwise just substitute an address guaranteed
to point to zero.RaftException - If strict is true,
and requested names are missing or invalid.public int setStart(String mainName) throws org.lsst.ccs.drivers.reb.REBException, RaftException
mainName - The name of the main to start atorg.lsst.ccs.drivers.reb.REBExceptionRaftExceptionpublic int setStart(int address)
throws org.lsst.ccs.drivers.reb.REBException
address - The address of the main to start atorg.lsst.ccs.drivers.reb.REBExceptionpublic void setParameter(String parmName, int value) throws org.lsst.ccs.drivers.reb.REBException, RaftException
parmName - The name of the parameter to setvalue - The value to setorg.lsst.ccs.drivers.reb.REBExceptionRaftExceptionpublic int getParameter(String parmName) throws org.lsst.ccs.drivers.reb.REBException, RaftException
parmName - The name of the parameter to setorg.lsst.ccs.drivers.reb.REBExceptionRaftExceptionpublic void setCcdMask(int ccdMask)
throws org.lsst.ccs.drivers.reb.REBException
ccdMask - The mask of active CCDsorg.lsst.ccs.drivers.reb.REBExceptionpublic int getDataSource()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void setDataSource(int value)
throws org.lsst.ccs.drivers.reb.REBException
value - The encoded data source: CCD or patternorg.lsst.ccs.drivers.reb.REBExceptionpublic boolean isScanEnabled()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void enableScan(boolean value)
throws org.lsst.ccs.drivers.reb.REBException
value - The scan mode enabled state to set (true or false)org.lsst.ccs.drivers.reb.REBExceptionpublic void resetScan()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic int getErrorAddr()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void resetError()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void startSequencer()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void sendStop()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void sendStep()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic boolean isRunning()
throws org.lsst.ccs.drivers.reb.REBException
org.lsst.ccs.drivers.reb.REBExceptionpublic void waitDone(int timeout)
throws org.lsst.ccs.drivers.reb.REBException
timeout - The maximum time to wait (ms)org.lsst.ccs.drivers.reb.REBExceptionCopyright © 2018 LSST. All rights reserved.