org.lsst.ccs.drivers.rcm
Class Sequencer

java.lang.Object
  extended by org.lsst.ccs.drivers.rcm.RegClient
      extended by org.lsst.ccs.drivers.rcm.BaseSet
          extended by org.lsst.ccs.drivers.rcm.Sequencer
Direct Known Subclasses:
SequencerUtils

public class Sequencer
extends BaseSet

RCM sequencer access routines

Author:
Owen Saxton

Field Summary
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
           
 
Fields inherited from class org.lsst.ccs.drivers.rcm.BaseSet
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 Summary
Sequencer()
           
Sequencer(RegClient reg)
          Constructors.
 
Method Summary
 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 values
 void writeTimes(int func, int[] values, int offset, int count)
          Writes a set of time values
 void writeTimes(int func, int slice, int value)
          Writes a time value
 
Methods inherited from class org.lsst.ccs.drivers.rcm.BaseSet
checkNotVersion, checkVersion, disable, enable, getTime, getTimeRaw, getTriggerTime, getTriggerTimeRaw, getVersion, setTime, setTime, setTimeRaw, waitDone
 
Methods inherited from class org.lsst.ccs.drivers.rcm.RegClient
checkOpen, close, finalize, open, read, read, read, readLong, update, write, write, write, writeLong
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REG_SEQ_LINES

public static final int REG_SEQ_LINES
Public constants

See Also:
Constant Field Values

REG_SEQ_TIMES

public static final int REG_SEQ_TIMES
Public constants

See Also:
Constant Field Values

REG_SEQ_STACK

public static final int REG_SEQ_STACK
Public constants

See Also:
Constant Field Values

REG_SEQ_PROGRAM

public static final int REG_SEQ_PROGRAM
Public constants

See Also:
Constant Field Values

REG_SEQ_STEP

public static final int REG_SEQ_STEP
Public constants

See Also:
Constant Field Values

REG_SEQ_STOP

public static final int REG_SEQ_STOP
Public constants

See Also:
Constant Field Values

REG_SEQ_SSIZE

public static final int REG_SEQ_SSIZE
Public constants

See Also:
Constant Field Values

REG_SEQ_NSLICE

public static final int REG_SEQ_NSLICE
Public constants

See Also:
Constant Field Values

REG_SEQ_SOURCE

public static final int REG_SEQ_SOURCE
Public constants

See Also:
Constant Field Values

REG_SEQ_BEB

public static final int REG_SEQ_BEB
Public constants

See Also:
Constant Field Values

REG_SEQ_STEP_0

public static final int REG_SEQ_STEP_0
Public constants

See Also:
Constant Field Values

REG_SEQ_STOP_0

public static final int REG_SEQ_STOP_0
Public constants

See Also:
Constant Field Values

SEQ_MAX_FUNC_0

public static final int SEQ_MAX_FUNC_0
Public constants

See Also:
Constant Field Values

SEQ_MAX_FUNC

public static final int SEQ_MAX_FUNC
Public constants

See Also:
Constant Field Values

SEQ_MAX_SLICE

public static final int SEQ_MAX_SLICE
Public constants

See Also:
Constant Field Values

SEQ_MAX_PROGRAM

public static final int SEQ_MAX_PROGRAM
Public constants

See Also:
Constant Field Values

SEQ_MAX_STACK

public static final int SEQ_MAX_STACK
Public constants

See Also:
Constant Field Values

SEQ_SRC_FPGA_PTN

public static final int SEQ_SRC_FPGA_PTN
Public constants

See Also:
Constant Field Values

SEQ_SRC_BEB_PTN

public static final int SEQ_SRC_BEB_PTN
Public constants

See Also:
Constant Field Values

SEQ_SRC_BEB_ADC

public static final int SEQ_SRC_BEB_ADC
Public constants

See Also:
Constant Field Values

SEQ_SRC_ADC

public static final int SEQ_SRC_ADC
Public constants

See Also:
Constant Field Values

SEQ_SRC_PATTERN

public static final int SEQ_SRC_PATTERN
Public constants

See Also:
Constant Field Values

SEQ_OPC_EXECUTE

public static final int SEQ_OPC_EXECUTE
Public constants

See Also:
Constant Field Values

SEQ_OPC_JUMP

public static final int SEQ_OPC_JUMP
Public constants

See Also:
Constant Field Values

SEQ_OPC_END_SUBR

public static final int SEQ_OPC_END_SUBR
Public constants

See Also:
Constant Field Values

SEQ_OPC_END_PROG

public static final int SEQ_OPC_END_PROG
Public constants

See Also:
Constant Field Values

SEQ_PRG_V_OPCODE

public static final int SEQ_PRG_V_OPCODE
Public constants

See Also:
Constant Field Values

SEQ_PRG_V_FUNC

public static final int SEQ_PRG_V_FUNC
Public constants

See Also:
Constant Field Values

SEQ_PRG_M_FUNC

public static final int SEQ_PRG_M_FUNC
Public constants

See Also:
Constant Field Values

SEQ_PRG_V_LOOP

public static final int SEQ_PRG_V_LOOP
Public constants

See Also:
Constant Field Values

SEQ_PRG_M_EXCCNT

public static final int SEQ_PRG_M_EXCCNT
Public constants

See Also:
Constant Field Values

SEQ_PRG_V_SUBADD

public static final int SEQ_PRG_V_SUBADD
Public constants

See Also:
Constant Field Values

SEQ_PRG_M_SUBADD

public static final int SEQ_PRG_M_SUBADD
Public constants

See Also:
Constant Field Values

SEQ_PRG_M_SUBCNT

public static final int SEQ_PRG_M_SUBCNT
Public constants

See Also:
Constant Field Values

SEQ_STK_V_FUNC

public static final int SEQ_STK_V_FUNC
Public constants

See Also:
Constant Field Values

SEQ_STK_M_FUNC

public static final int SEQ_STK_M_FUNC
Public constants

See Also:
Constant Field Values

SEQ_STK_V_LOOP

public static final int SEQ_STK_V_LOOP
Public constants

See Also:
Constant Field Values

SEQ_STK_M_COUNT

public static final int SEQ_STK_M_COUNT
Public constants

See Also:
Constant Field Values

lines

protected int[][] lines
Fields


times

protected int[][] times

prog

protected int[] prog

stack

protected int[] stack

stackSize

protected int stackSize
Constructor Detail

Sequencer

public Sequencer(RegClient reg)
Constructors.


Sequencer

public Sequencer()
Method Detail

enable

public void enable()
            throws RcmException
Enables the sequencer.

Overrides:
enable in class BaseSet
Throws:
RcmException

disable

public void disable()
             throws RcmException
Disables the sequencer.

Overrides:
disable in class BaseSet
Throws:
RcmException

getTriggerTime

public long getTriggerTime()
                    throws RcmException
Gets the sequencer trigger time.

Throws:
RcmException

writeLines

public void writeLines(int func,
                       int slice,
                       int value)
                throws RcmException
Writes an output lines value.

Throws:
RcmException

writeLines

public void writeLines(int func,
                       int[] values)
                throws RcmException
Writes a set of output lines values

Throws:
RcmException

writeLines

public void writeLines(int func,
                       int[] values,
                       int offset,
                       int count)
                throws RcmException
Writes a set of output lines values

Throws:
RcmException

writeTimes

public void writeTimes(int func,
                       int slice,
                       int value)
                throws RcmException
Writes a time value

Throws:
RcmException

writeTimes

public void writeTimes(int func,
                       int[] values)
                throws RcmException
Writes a set of time values

Throws:
RcmException

writeTimes

public void writeTimes(int func,
                       int[] values,
                       int offset,
                       int count)
                throws RcmException
Writes a set of time values

Throws:
RcmException

writeStack

public void writeStack(int addr,
                       int value)
                throws RcmException
Writes a stack value

Throws:
RcmException

writeStack

public void writeStack(int addr,
                       int[] values)
                throws RcmException
Writes a set of stack values

Throws:
RcmException

writeStack

public void writeStack(int addr,
                       int[] values,
                       int offset,
                       int count)
                throws RcmException
Writes a set of stack values

Throws:
RcmException

writeStack

public void writeStack(int[] values)
                throws RcmException
Writes a complete set of stack values, setting the stack size

Throws:
RcmException

writeStack

public void writeStack(int[] values,
                       int offset,
                       int count)
                throws RcmException
Writes a complete set of stack values, setting the stack size

Throws:
RcmException

writeStackSize

public void writeStackSize(int value)
                    throws RcmException
Writes the stack size

Throws:
RcmException

writeProgram

public void writeProgram(int addr,
                         int value)
                  throws RcmException
Writes a program word

Throws:
RcmException

writeProgram

public void writeProgram(int addr,
                         int[] values)
                  throws RcmException
Writes a set of program words

Throws:
RcmException

writeProgram

public void writeProgram(int addr,
                         int[] values,
                         int offset,
                         int count)
                  throws RcmException
Writes a set of program words

Throws:
RcmException

writeProgExec

public void writeProgExec(int addr,
                          int func,
                          int count)
                   throws RcmException
Writes an execute program word

Throws:
RcmException

writeProgJump

public void writeProgJump(int addr,
                          int subaddr,
                          int count)
                   throws RcmException
Writes a jump program word

Throws:
RcmException

writeProgEndSubr

public void writeProgEndSubr(int addr)
                      throws RcmException
Writes an end subroutine word

Throws:
RcmException

writeProgEnd

public void writeProgEnd(int addr)
                  throws RcmException
Writes an end program word

Throws:
RcmException

writeSliceCount

public void writeSliceCount(int value)
                     throws RcmException
Writes the slice count

Throws:
RcmException

writeDataSource

public void writeDataSource(int value)
                     throws RcmException
Writes the data source register

Throws:
RcmException

writeBebSelect

public void writeBebSelect(int value)
                    throws RcmException
Writes the BEB selector register

Throws:
RcmException

sendStep

public void sendStep()
              throws RcmException
Sends the step command

Throws:
RcmException

sendStop

public void sendStop()
              throws RcmException
Sends the stop command

Throws:
RcmException


Copyright © 2013 LSST. All Rights Reserved.