public class Sequencer extends BaseSet
| Modifier and Type | Field and Description |
|---|---|
protected int[][] |
lines
Fields.
|
protected int[] |
prog |
static int |
REG_SEQ_BEB
Public constants.
|
static int |
REG_SEQ_LINES
Public constants.
|
static int |
REG_SEQ_NSLICE
Public constants.
|
static int |
REG_SEQ_PROGRAM
Public constants.
|
static int |
REG_SEQ_SOURCE
Public constants.
|
static int |
REG_SEQ_SSIZE
Public constants.
|
static int |
REG_SEQ_STACK
Public constants.
|
static int |
REG_SEQ_STEP
Public constants.
|
static int |
REG_SEQ_STEP_0
Public constants.
|
static int |
REG_SEQ_STOP
Public constants.
|
static int |
REG_SEQ_STOP_0
Public constants.
|
static int |
REG_SEQ_TIMES
Public constants.
|
static int |
SEQ_MAX_FUNC
Public constants.
|
static int |
SEQ_MAX_FUNC_0
Public constants.
|
static int |
SEQ_MAX_PROGRAM
Public constants.
|
static int |
SEQ_MAX_SLICE
Public constants.
|
static int |
SEQ_MAX_STACK
Public constants.
|
static int |
SEQ_OPC_END_PROG
Public constants.
|
static int |
SEQ_OPC_END_SUBR
Public constants.
|
static int |
SEQ_OPC_EXECUTE
Public constants.
|
static int |
SEQ_OPC_JUMP
Public constants.
|
static int |
SEQ_PRG_M_EXCCNT
Public constants.
|
static int |
SEQ_PRG_M_FUNC
Public constants.
|
static int |
SEQ_PRG_M_SUBADD
Public constants.
|
static int |
SEQ_PRG_M_SUBCNT
Public constants.
|
static int |
SEQ_PRG_V_FUNC
Public constants.
|
static int |
SEQ_PRG_V_LOOP
Public constants.
|
static int |
SEQ_PRG_V_OPCODE
Public constants.
|
static int |
SEQ_PRG_V_SUBADD
Public constants.
|
static int |
SEQ_SRC_ADC
Public constants.
|
static int |
SEQ_SRC_BEB_ADC
Public constants.
|
static int |
SEQ_SRC_BEB_PTN
Public constants.
|
static int |
SEQ_SRC_FPGA_PTN
Public constants.
|
static int |
SEQ_SRC_PATTERN
Public constants.
|
static int |
SEQ_STK_M_COUNT
Public constants.
|
static int |
SEQ_STK_M_FUNC
Public constants.
|
static int |
SEQ_STK_V_FUNC
Public constants.
|
static int |
SEQ_STK_V_LOOP
Public constants.
|
protected int[] |
stack |
protected int |
stackSize |
protected int[][] |
times |
CLOCK_PERIOD_0, CLOCK_PERIOD_1, REG_ID, REG_SCHEMA, REG_STATE, REG_TIME_BASE, REG_TRIG_TIME, REG_TRIGGER, REG_VERSION, RSET_POWER_ADCS, RSET_SEQUENCER, RSET_STATUS, RSET_TEMP_ADCS, RSET_TIME_BASE, VERSION_0, VERSION_1, VERSION_2, VERSION_UNKNOWN, VERSION_UNSET| Constructor and Description |
|---|
Sequencer() |
Sequencer(RegClient reg)
Constructors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Disables the sequencer.
|
void |
enable()
Enables the sequencer.
|
long |
getTriggerTime()
Gets the sequencer trigger time.
|
void |
sendStep()
Sends the step command.
|
void |
sendStop()
Sends the stop command.
|
void |
writeBebSelect(int value)
Writes the BEB selector register.
|
void |
writeDataSource(int value)
Writes the data source register.
|
void |
writeLines(int func,
int[] values)
Writes a set of output lines values.
|
void |
writeLines(int func,
int[] values,
int offset,
int count)
Writes a set of output lines values.
|
void |
writeLines(int func,
int slice,
int value)
Writes an output lines value.
|
void |
writeProgEnd(int addr)
Writes an end program word.
|
void |
writeProgEndSubr(int addr)
Writes an end subroutine word.
|
void |
writeProgExec(int addr,
int func,
int count)
Writes an execute program word.
|
void |
writeProgJump(int addr,
int subaddr,
int count)
Writes a jump program word.
|
void |
writeProgram(int addr,
int value)
Writes a program word.
|
void |
writeProgram(int addr,
int[] values)
Writes a set of program words.
|
void |
writeProgram(int addr,
int[] values,
int offset,
int count)
Writes a set of program words.
|
void |
writeSliceCount(int value)
Writes the slice count.
|
void |
writeStack(int[] values)
Writes a complete set of stack values, setting the stack size.
|
void |
writeStack(int[] values,
int offset,
int count)
Writes a complete set of stack values, setting the stack size.
|
void |
writeStack(int addr,
int value)
Writes a stack value.
|
void |
writeStack(int addr,
int[] values)
Writes a set of stack values.
|
void |
writeStack(int addr,
int[] values,
int offset,
int count)
Writes a set of stack values.
|
void |
writeStackSize(int value)
Writes the stack size.
|
void |
writeTimes(int func,
int[] values)
Writes a set of time slice values.
|
void |
writeTimes(int func,
int[] values,
int offset,
int count)
Writes a set of time slice values.
|
void |
writeTimes(int func,
int slice,
int value)
Writes a time slice value.
|
checkNotVersion, checkVersion, disable, enable, getTime, getTimeRaw, getTriggerTime, getTriggerTimeRaw, getVersion, setTime, setTime, setTimeRaw, waitDonepublic static final int REG_SEQ_LINES
public static final int REG_SEQ_TIMES
public static final int REG_SEQ_STACK
public static final int REG_SEQ_PROGRAM
public static final int REG_SEQ_STEP
public static final int REG_SEQ_STOP
public static final int REG_SEQ_SSIZE
public static final int REG_SEQ_NSLICE
public static final int REG_SEQ_SOURCE
public static final int REG_SEQ_BEB
public static final int REG_SEQ_STEP_0
public static final int REG_SEQ_STOP_0
public static final int SEQ_MAX_FUNC_0
public static final int SEQ_MAX_FUNC
public static final int SEQ_MAX_SLICE
public static final int SEQ_MAX_PROGRAM
public static final int SEQ_MAX_STACK
public static final int SEQ_SRC_FPGA_PTN
public static final int SEQ_SRC_BEB_PTN
public static final int SEQ_SRC_BEB_ADC
public static final int SEQ_SRC_ADC
public static final int SEQ_SRC_PATTERN
public static final int SEQ_OPC_EXECUTE
public static final int SEQ_OPC_JUMP
public static final int SEQ_OPC_END_SUBR
public static final int SEQ_OPC_END_PROG
public static final int SEQ_PRG_V_OPCODE
public static final int SEQ_PRG_V_FUNC
public static final int SEQ_PRG_M_FUNC
public static final int SEQ_PRG_V_LOOP
public static final int SEQ_PRG_M_EXCCNT
public static final int SEQ_PRG_V_SUBADD
public static final int SEQ_PRG_M_SUBADD
public static final int SEQ_PRG_M_SUBCNT
public static final int SEQ_STK_V_FUNC
public static final int SEQ_STK_M_FUNC
public static final int SEQ_STK_V_LOOP
public static final int SEQ_STK_M_COUNT
protected int[][] lines
protected int[][] times
protected int[] prog
protected int[] stack
protected int stackSize
public Sequencer(RegClient reg)
public Sequencer()
public void enable()
throws RcmException
enable in class BaseSetRcmExceptionpublic void disable()
throws RcmException
disable in class BaseSetRcmExceptionpublic long getTriggerTime()
throws RcmException
RcmExceptionpublic void writeLines(int func,
int slice,
int value)
throws RcmException
func - The function numberslice - The time slice numbervalue - The output lines valueRcmExceptionpublic void writeLines(int func,
int[] values)
throws RcmException
func - The function numbervalues - The array of output lines valuesRcmExceptionpublic void writeLines(int func,
int[] values,
int offset,
int count)
throws RcmException
func - The function numbervalues - The array of output lines valuesoffset - The offset in values of the first value to writecount - The number of values to writeRcmExceptionpublic void writeTimes(int func,
int slice,
int value)
throws RcmException
func - The function numberslice - The time slice numbervalue - The time slice valueRcmExceptionpublic void writeTimes(int func,
int[] values)
throws RcmException
func - The function numbervalues - The array of time slice valuesRcmExceptionpublic void writeTimes(int func,
int[] values,
int offset,
int count)
throws RcmException
func - The function numbervalues - The array of time slice valuesoffset - The offset in values of the first value to writecount - The number of values to writeRcmExceptionpublic void writeStack(int addr,
int value)
throws RcmException
addr - The stack addressvalue - The value to writeRcmExceptionpublic void writeStack(int addr,
int[] values)
throws RcmException
addr - The first stack addressvalues - The array of values to writeRcmExceptionpublic void writeStack(int addr,
int[] values,
int offset,
int count)
throws RcmException
addr - The first stack addressvalues - The array of stack values to writeoffset - The offset in values of the first value to writecount - The number of values to writeRcmExceptionpublic void writeStack(int[] values)
throws RcmException
values - The array of stack values to writeRcmExceptionpublic void writeStack(int[] values,
int offset,
int count)
throws RcmException
values - The array of stack values to writeoffset - The offset in values of the first item to writecount - The number of values to writeRcmExceptionpublic void writeStackSize(int value)
throws RcmException
value - The value to write to the stack size registerRcmExceptionpublic void writeProgram(int addr,
int value)
throws RcmException
addr - The program addressvalue - The value to writeRcmExceptionpublic void writeProgram(int addr,
int[] values)
throws RcmException
addr - The first program addressvalues - The array of values to writeRcmExceptionpublic void writeProgram(int addr,
int[] values,
int offset,
int count)
throws RcmException
addr - The first program addressvalues - The array of program words to writeoffset - The offset in values of the first value to writecount - The number of values to writeRcmExceptionpublic void writeProgExec(int addr,
int func,
int count)
throws RcmException
addr - The program addressfunc - The ID of the function to executecount - The number of times to execute the functionRcmExceptionpublic void writeProgJump(int addr,
int subaddr,
int count)
throws RcmException
addr - The program addresssubaddr - The address of the subroutine to jump tocount - The number of times to run the subroutineRcmExceptionpublic void writeProgEndSubr(int addr)
throws RcmException
addr - The program addressRcmExceptionpublic void writeProgEnd(int addr)
throws RcmException
addr - The program addressRcmExceptionpublic void writeSliceCount(int value)
throws RcmException
value - The slice count value to writeRcmExceptionpublic void writeDataSource(int value)
throws RcmException
value - The value to writeRcmExceptionpublic void writeBebSelect(int value)
throws RcmException
value - The value to writeRcmExceptionpublic void sendStep()
throws RcmException
RcmExceptionpublic void sendStop()
throws RcmException
RcmExceptionCopyright © 2013 LSST. All Rights Reserved.