public class Sequencer extends BaseSet
| Modifier and Type | Field and Description |
|---|---|
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_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_STRIPE
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_DCDC_SYNC, REG_ID, REG_SCHEMA, REG_SN_DREB_START, REG_SN_DREB_VALUE, REG_SN_REB_START, REG_SN_REB_VALUE, 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, SN_READ_ERROR, SN_READ_OKAY, SN_READ_TIMEOUT, SN_VALUE_MASK, VERSION_0, VERSION_1, VERSION_2, VERSION_3, VERSION_CURR, VERSION_UNKNOWN, VERSION_UNSET| Constructor and Description |
|---|
Sequencer() |
Sequencer(RegClient reg)
Constructors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clears the sequencer program cached copy.
|
void |
disable()
Disables the sequencer.
|
void |
enable()
Enables the sequencer.
|
int |
getCacheSliceCount()
Gets the slice count of the sequencer program cached copy.
|
long |
getTriggerTime()
Gets the sequencer trigger time.
|
int |
readDataSource()
Reads the data source register.
|
int |
readSliceCount()
Reads the slice count.
|
int |
readStripeSelect()
Reads the stripe selection register.
|
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 |
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.
|
checkNotVersion, checkVersion, checkVersion, disable, enable, getDrebSN, getRebSN, getTime, getTimeRaw, getTriggerTime, getTriggerTimeRaw, getVersion, isDcdcSync, setDcdcSync, 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_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_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
public static final int MAX_SUBR_LEVEL
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 REBException
enable in class BaseSetREBExceptionpublic void disable()
throws REBException
disable in class BaseSetREBExceptionpublic long getTriggerTime()
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 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 writeProgEndSubr(int addr)
throws REBException
addr - The program addressREBExceptionpublic void writeProgEnd(int addr)
throws REBException
addr - The program addressREBExceptionpublic 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 clearCache()
throws REBException
REBExceptionpublic int getCacheSliceCount()
throws REBException
REBExceptionCopyright © 2014 LSST. All Rights Reserved.