public class Sequencer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
execRefs |
protected int[] |
execReps |
protected int[] |
jumpRefs |
protected int[] |
jumpReps |
protected int[][] |
lines
Fields.
|
static int |
MAX_SUBR_LEVEL
Public constants.
|
protected int[] |
prog |
static int |
REG_SEQ_BEB
Public constants.
|
static int |
REG_SEQ_ERROR_RESET
Public constants.
|
static int |
REG_SEQ_ERROR_VALUE
Public constants.
|
static int |
REG_SEQ_EXEC_REFS
Public constants.
|
static int |
REG_SEQ_EXEC_REPS
Public constants.
|
static int |
REG_SEQ_JUMP_REFS
Public constants.
|
static int |
REG_SEQ_JUMP_REPS
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_SCAN_CNTRL
Public constants.
|
static int |
REG_SEQ_SCAN_RESET
Public constants.
|
static int |
REG_SEQ_SCAN_RESET_2
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_START_ADDR
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_STRIPE
Public constants.
|
static int |
REG_SEQ_TIMES
Public constants.
|
static int |
SEQ_ARG_IND_COUNT
Public constants.
|
static int |
SEQ_ARG_IND_FUNC
Public constants.
|
static int |
SEQ_ARG_IND_JUMP
Public constants.
|
static int |
SEQ_ARG_IND_MASK
Public constants.
|
static int |
SEQ_ERR_M_ADDR
Public constants.
|
static int |
SEQ_ERR_M_CODE
Public constants.
|
static int |
SEQ_LINE_CL
Public constants.
|
static int |
SEQ_LINE_EOI
Public constants.
|
static int |
SEQ_LINE_P1
Public constants.
|
static int |
SEQ_LINE_P2
Public constants.
|
static int |
SEQ_LINE_P3
Public constants.
|
static int |
SEQ_LINE_P4
Public constants.
|
static int |
SEQ_LINE_RD
Public constants.
|
static int |
SEQ_LINE_RG
Public constants.
|
static int |
SEQ_LINE_RST
Public constants.
|
static int |
SEQ_LINE_RU
Public constants.
|
static int |
SEQ_LINE_S1
Public constants.
|
static int |
SEQ_LINE_S2
Public constants.
|
static int |
SEQ_LINE_S3
Public constants.
|
static int |
SEQ_LINE_SHU
Public constants.
|
static int |
SEQ_LINE_SOI
Public constants.
|
static int |
SEQ_LINE_TRG
Public constants.
|
static int |
SEQ_MAX_FUNC
Public constants.
|
static int |
SEQ_MAX_FUNC_0
Public constants.
|
static int |
SEQ_MAX_PARAMETER
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_PROG_1
Public constants.
|
static int |
SEQ_OPC_END_SUBR
Public constants.
|
static int |
SEQ_OPC_END_SUBR_1
Public constants.
|
static int |
SEQ_OPC_EXECUTE
Public constants.
|
static int |
SEQ_OPC_EXECUTE_FP
Public constants.
|
static int |
SEQ_OPC_EXECUTE_FRP
Public constants.
|
static int |
SEQ_OPC_EXECUTE_RP
Public constants.
|
static int |
SEQ_OPC_JUMP
Public constants.
|
static int |
SEQ_OPC_JUMP_1
Public constants.
|
static int |
SEQ_OPC_JUMP_AP
Public constants.
|
static int |
SEQ_OPC_JUMP_ARP
Public constants.
|
static int |
SEQ_OPC_JUMP_RP
Public constants.
|
static int |
SEQ_PRG_M_EXCCNT
Public constants.
|
static int |
SEQ_PRG_M_FUNC
Public constants.
|
static int |
SEQ_PRG_M_LOOP
Public constants.
|
static int |
SEQ_PRG_M_PARM
Public constants.
|
static int |
SEQ_PRG_M_SUBADD
Public constants.
|
static int |
SEQ_PRG_M_SUBCNT
Public constants.
|
static int |
SEQ_PRG_M_SUBCNT_1
Public constants.
|
static int |
SEQ_PRG_V_FUNC
Public constants.
|
static int |
SEQ_PRG_V_OPCODE
Public constants.
|
static int |
SEQ_PRG_V_SUBADD
Public constants.
|
static int |
SEQ_PRG_V_SUBADD_1
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 |
startAddr |
protected int[][] |
times |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clears the sequencer program cached copy.
|
void |
disable()
Disables the sequencer.
|
void |
enable()
Enables the sequencer.
|
void |
enableScan(boolean enable)
Enables or disables scan mode.
|
int |
getCacheSliceCount()
Gets the slice count of a sequencer program cached copy.
|
int |
getErrorAddr()
Gets sequencer error address.
|
long |
getTriggerTime()
Gets the sequencer trigger time.
|
int |
getVersion()
Gets the version number.
|
boolean |
isEnabled()
Checks whether the sequencer is enabled.
|
boolean |
isScanEnabled()
Gets whether scan mode is enabled.
|
int |
readDataSource()
Reads the data source register.
|
int |
readExecCount(int addr)
Reads an execute repeat count parameter.
|
int |
readExecFunc(int addr)
Reads an execute function code parameter.
|
int |
readIdleState()
Reads the idle state output lines value.
|
int |
readJumpCount(int addr)
Reads a jump repeat count parameter
|
int |
readJumpSubr(int addr)
Reads a jump subroutine address parameter
|
int |
readSliceCount()
Reads the slice count.
|
int |
readStartAddr()
Reads the start address register.
|
int |
readStripeSelect()
Reads the stripe selection register.
|
void |
resetError()
Resets sequencer error.
|
void |
resetScan()
Resets scan mode.
|
void |
sendStep()
Sends the step command.
|
void |
sendStop()
Sends the stop command.
|
void |
waitDone(int timeout)
Waits for the sequencer to be done (become idle).
|
void |
writeBebSelect(int value)
Writes the BEB selector register.
|
void |
writeDataSource(int value)
Writes the data source register.
|
void |
writeExecCount(int addr,
int count)
Writes an execute repeat count parameter.
|
void |
writeExecFunc(int addr,
int func)
Writes an execute function code parameter.
|
void |
writeIdleState(int value)
Writes the idle state output lines value.
|
void |
writeJumpCount(int addr,
int count)
Writes a jump repeat count parameter.
|
void |
writeJumpSubr(int addr,
int subr)
Writes a jump subroutine address parameter.
|
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 |
writeProgExec(int addr,
int argType,
int func,
int count)
Writes an execute program word.
|
void |
writeProgJump(int addr,
int subaddr,
int count)
Writes a jump program word.
|
void |
writeProgJump(int addr,
int argType,
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 |
writeStartAddr(int value)
Writes the start address register.
|
void |
writeStripeSelect(int value)
Writes the stripe selection register.
|
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.
|
public 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_SCAN_CNTRL
public static final int REG_SEQ_SCAN_RESET_2
public static final int REG_SEQ_SCAN_RESET
public static final int REG_SEQ_START_ADDR
public static final int REG_SEQ_EXEC_REFS
public static final int REG_SEQ_EXEC_REPS
public static final int REG_SEQ_JUMP_REFS
public static final int REG_SEQ_JUMP_REPS
public static final int REG_SEQ_ERROR_VALUE
public static final int REG_SEQ_ERROR_RESET
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_STRIPE
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_LINE_RU
public static final int SEQ_LINE_RD
public static final int SEQ_LINE_RST
public static final int SEQ_LINE_CL
public static final int SEQ_LINE_S1
public static final int SEQ_LINE_S2
public static final int SEQ_LINE_S3
public static final int SEQ_LINE_RG
public static final int SEQ_LINE_P1
public static final int SEQ_LINE_P2
public static final int SEQ_LINE_P3
public static final int SEQ_LINE_P4
public static final int SEQ_LINE_TRG
public static final int SEQ_LINE_SOI
public static final int SEQ_LINE_EOI
public static final int SEQ_LINE_SHU
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_MAX_PARAMETER
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_EXECUTE_FP
public static final int SEQ_OPC_EXECUTE_RP
public static final int SEQ_OPC_EXECUTE_FRP
public static final int SEQ_OPC_JUMP_1
public static final int SEQ_OPC_JUMP
public static final int SEQ_OPC_JUMP_AP
public static final int SEQ_OPC_JUMP_RP
public static final int SEQ_OPC_JUMP_ARP
public static final int SEQ_OPC_END_SUBR_1
public static final int SEQ_OPC_END_SUBR
public static final int SEQ_OPC_END_PROG_1
public static final int SEQ_OPC_END_PROG
public static final int SEQ_ARG_IND_FUNC
public static final int SEQ_ARG_IND_JUMP
public static final int SEQ_ARG_IND_COUNT
public static final int SEQ_ARG_IND_MASK
public static final int SEQ_ERR_M_CODE
public static final int SEQ_ERR_M_ADDR
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_M_EXCCNT
public static final int SEQ_PRG_M_LOOP
public static final int SEQ_PRG_V_SUBADD_1
public static final int SEQ_PRG_V_SUBADD
public static final int SEQ_PRG_M_SUBADD
public static final int SEQ_PRG_M_SUBCNT_1
public static final int SEQ_PRG_M_SUBCNT
public static final int SEQ_PRG_M_PARM
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
public static final int MAX_SUBR_LEVEL
protected int[][] lines
protected int[][] times
protected int[] prog
protected int[] stack
protected int[] execRefs
protected int[] execReps
protected int[] jumpRefs
protected int[] jumpReps
protected int stackSize
protected int startAddr
public Sequencer(BaseSet bss)
bss - The associated base set objectpublic void enable()
throws REBException
REBExceptionpublic void disable()
throws REBException
REBExceptionpublic boolean isEnabled()
throws REBException
REBExceptionpublic void waitDone(int timeout)
throws REBException
timeout - The maximum time to wait (ms)REBExceptionpublic long getTriggerTime()
throws REBException
REBExceptionpublic void writeIdleState(int value)
throws REBException
value - The output lines valueREBExceptionpublic int readIdleState()
throws REBException
REBExceptionpublic void writeLines(int func,
int slice,
int value)
throws REBException
func - The function numberslice - The time slice numbervalue - The output lines valueREBExceptionpublic void writeLines(int func,
int[] values)
throws REBException
func - The function numbervalues - The array of output lines valuesREBExceptionpublic void writeLines(int func,
int[] values,
int offset,
int count)
throws REBException
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 writeREBExceptionpublic void writeTimes(int func,
int slice,
int value)
throws REBException
func - The function numberslice - The time slice numbervalue - The time slice valueREBExceptionpublic void writeTimes(int func,
int[] values)
throws REBException
func - The function numbervalues - The array of time slice valuesREBExceptionpublic void writeTimes(int func,
int[] values,
int offset,
int count)
throws REBException
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 writeREBExceptionpublic void writeStack(int addr,
int value)
throws REBException
addr - The stack addressvalue - The value to writeREBExceptionpublic void writeStack(int addr,
int[] values)
throws REBException
addr - The first stack addressvalues - The array of values to writeREBExceptionpublic void writeStack(int addr,
int[] values,
int offset,
int count)
throws REBException
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 writeREBExceptionpublic void writeStack(int[] values)
throws REBException
values - The array of stack values to writeREBExceptionpublic void writeStack(int[] values,
int offset,
int count)
throws REBException
values - The array of stack values to writeoffset - The offset in values of the first item to writecount - The number of values to writeREBExceptionpublic void writeStackSize(int value)
throws REBException
value - The value to write to the stack size registerREBExceptionpublic void writeProgram(int addr,
int value)
throws REBException
addr - The program addressvalue - The value to writeREBExceptionpublic void writeProgram(int addr,
int[] values)
throws REBException
addr - The first program addressvalues - The array of values to writeREBExceptionpublic void writeProgram(int addr,
int[] values,
int offset,
int count)
throws REBException
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 writeREBExceptionpublic void writeProgExec(int addr,
int func,
int count)
throws REBException
addr - The program addressfunc - The ID of the function to executecount - The number of times to execute the functionREBExceptionpublic void writeProgExec(int addr,
int argType,
int func,
int count)
throws REBException
addr - The program addressargType - The mask of argument typesfunc - The ID of the function to executecount - The number of times to execute the function, or -1
for an infinite loopREBExceptionpublic void writeProgJump(int addr,
int subaddr,
int count)
throws REBException
addr - The program addresssubaddr - The address of the subroutine to jump tocount - The number of times to run the subroutineREBExceptionpublic void writeProgJump(int addr,
int argType,
int subaddr,
int count)
throws REBException
addr - The program addressargType - The mask of argument typessubaddr - The address of the subroutine to jump tocount - The number of times to run the subroutineREBExceptionpublic void writeProgEndSubr(int addr)
throws REBException
addr - The program addressREBExceptionpublic void writeProgEnd(int addr)
throws REBException
addr - The program addressREBExceptionpublic void writeExecFunc(int addr,
int func)
throws REBException
addr - The parameter addressfunc - The ID of the function to executeREBExceptionpublic int readExecFunc(int addr)
throws REBException
addr - The parameter addressREBExceptionpublic void writeExecCount(int addr,
int count)
throws REBException
addr - The parameter addresscount - The number of times to execute the function, or -1
for an infinite loopREBExceptionpublic int readExecCount(int addr)
throws REBException
addr - The parameter addressREBExceptionpublic void writeJumpSubr(int addr,
int subr)
throws REBException
addr - The parameter addresssubr - The address of the subroutine to executeREBExceptionpublic int readJumpSubr(int addr)
throws REBException
addr - The parameter addressREBExceptionpublic void writeJumpCount(int addr,
int count)
throws REBException
addr - The parameter addresscount - The number of times to execute the subroutineREBExceptionpublic int readJumpCount(int addr)
throws REBException
addr - The parameter addressREBExceptionpublic void writeStartAddr(int value)
throws REBException
value - The value to writeREBExceptionpublic int readStartAddr()
throws REBException
REBExceptionpublic void writeSliceCount(int value)
throws REBException
value - The slice count value to writeREBExceptionpublic int readSliceCount()
throws REBException
REBExceptionpublic void writeDataSource(int value)
throws REBException
value - The value to writeREBExceptionpublic int readDataSource()
throws REBException
REBExceptionpublic void writeStripeSelect(int value)
throws REBException
value - The value to writeREBExceptionpublic int readStripeSelect()
throws REBException
REBExceptionpublic void writeBebSelect(int value)
throws REBException
value - The value to writeREBExceptionpublic void sendStep()
throws REBException
REBExceptionpublic void sendStop()
throws REBException
REBExceptionpublic void enableScan(boolean enable)
throws REBException
enable - True to enable scan mode; false to disable itREBExceptionpublic boolean isScanEnabled()
throws REBException
REBExceptionpublic void resetScan()
throws REBException
REBExceptionpublic int getErrorAddr()
throws REBException
REBExceptionpublic void resetError()
throws REBException
REBExceptionpublic void clearCache()
throws REBException
REBExceptionpublic int getCacheSliceCount()
throws REBException
REBExceptionpublic int getVersion()
throws REBException
REBException - if firmware version is unknownCopyright © 2020 LSST. All rights reserved.