public class BaseSet extends RegClient
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseSet.Version
Inner class for version numbers.
|
RegClient.Impl| Modifier and Type | Field and Description |
|---|---|
static int |
BACK_BIAS_ERROR
Public constants.
|
static int |
BACK_BIAS_OFF
Public constants.
|
static int |
BACK_BIAS_ON
Public constants.
|
static int |
CLOCK_PERIOD_0
Public constants.
|
static int |
CLOCK_PERIOD_1
Public constants.
|
static int |
FW_VERSION_GREB_0
Public constants.
|
static int |
FW_VERSION_GREB_1
Public constants.
|
static int |
FW_VERSION_GREB_2
Public constants.
|
static int |
FW_VERSION_INITIAL
Public constants.
|
static int |
FW_VERSION_REB0_0
Public constants.
|
static int |
FW_VERSION_REB0_1
Public constants.
|
static int |
FW_VERSION_REB1_2
Public constants.
|
static int |
FW_VERSION_REB1_3
Public constants.
|
static int |
FW_VERSION_REB1_4
Public constants.
|
static int |
FW_VERSION_REB3
Public constants.
|
static int |
FW_VERSION_REB4_0
Public constants.
|
static int |
FW_VERSION_REB4_1
Public constants.
|
static int |
FW_VERSION_REB4_2
Public constants.
|
static int |
FW_VERSION_REB5_0
Public constants.
|
static int |
FW_VERSION_REB5_1
Public constants.
|
static int |
FW_VERSION_UNKNOWN
Public constants.
|
static int |
FW_VERSION_UNSET
Public constants.
|
static int |
FW_VERSION_WREB_1
Public constants.
|
static int |
FW_VERSION_WREB_2
Public constants.
|
static int |
FW_VERSION_WREB_3
Public constants.
|
static int |
FW_VERSION_WREB_4
Public constants.
|
static int |
FW_VERSION_WREB_5
Public constants.
|
static int |
MAX_STRIPS
Public constants.
|
static int |
OPTN_ASPIC
Public constants.
|
static int |
OPTN_BACK_BIAS
Public constants.
|
static int |
OPTN_BOARD_DACS
Public constants.
|
static int |
OPTN_BOARD_POWER
Public constants.
|
static int |
OPTN_BOARD_TEMP
Public constants.
|
static int |
OPTN_CABAC
Public constants.
|
static int |
OPTN_CCD_TEMP
Public constants.
|
static int |
OPTN_DCDC_SYNC
Public constants.
|
static int |
OPTN_DREB_SN
Public constants.
|
static int |
OPTN_FAST_ADCS
Public constants.
|
static int |
OPTN_REB_SN
Public constants.
|
static int |
OPTN_SEQUENCER
Public constants.
|
static int |
OPTN_SLOW_ADCS
Public constants.
|
static int |
OPTN_STATUS
Public constants.
|
static int |
REB_TYPE_GUIDER
Public constants.
|
static int |
REB_TYPE_SCIENCE
Public constants.
|
static int |
REB_TYPE_UNKNOWN
Public constants.
|
static int |
REB_TYPE_WAVEFRONT
Public constants.
|
static int |
REG_BACK_BIAS
Public constants.
|
static int |
REG_DCDC_SYNC
Public constants.
|
static int |
REG_ID
Public constants.
|
static int |
REG_SCHEMA
Public constants.
|
static int |
REG_SN_DREB_START
Public constants.
|
static int |
REG_SN_DREB_VALUE
Public constants.
|
static int |
REG_SN_REB_START
Public constants.
|
static int |
REG_SN_REB_VALUE
Public constants.
|
static int |
REG_STATE
Public constants.
|
static int |
REG_TIME_BASE
Public constants.
|
static int |
REG_TRIG_TIME
Public constants.
|
static int |
REG_TRIGGER
Public constants.
|
static int |
REG_VERSION
Public constants.
|
static int |
RSET_FAST_ADCS
Public constants.
|
static int |
RSET_POWER_ADCS
Public constants.
|
static int |
RSET_SEQUENCER
Public constants.
|
static int |
RSET_STATUS
Public constants.
|
static int |
RSET_TEMP_ADCS
Public constants.
|
static int |
RSET_TIME_BASE
Public constants.
|
static long |
SN_READ_ERROR |
static long |
SN_READ_OKAY |
static long |
SN_READ_TIMEOUT |
static long |
SN_VALUE_MASK |
static int |
VERSION_0
Public constants.
|
static int |
VERSION_1
Public constants.
|
static int |
VERSION_2
Public constants.
|
static int |
VERSION_3
Public constants.
|
static int |
VERSION_4
Public constants.
|
static int |
VERSION_5
Public constants.
|
static int |
VERSION_6
Public constants.
|
static int |
VERSION_7
Public constants.
|
static int |
VERSION_8
Public constants.
|
static int |
VERSION_UNSUPP
Public constants.
|
HDW_TYPE_DAQ, HDW_TYPE_DAQ0, HDW_TYPE_DAQ1, HDW_TYPE_DAQ2, HDW_TYPE_DAQ4, HDW_TYPE_PCI, HDW_TYPE_PCI0, HDW_TYPE_PCI1| Constructor and Description |
|---|
BaseSet()
Constructor.
|
BaseSet(RegClient reg)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkNotVersion(int option,
int... version)
Checks for not particular option versions.
|
void |
checkVersion(int option,
int... version)
Checks for particular option versions.
|
long |
convertRawTime(long raw)
Converts a raw time-base value to milliseconds.
|
int |
convertStripNum(int strip)
Converts a canonical strip (CCD) number to its hardware version (or vice versa).
|
void |
disable()
Disables the time-base.
|
void |
disable(int regSet)
Disables a register set.
|
void |
enable()
Enables the time-base.
|
void |
enable(int regSet)
Enables a register set.
|
long |
getDrebSerial()
Gets the DREB serial number.
|
int |
getFwVersion()
Gets the firmware version.
|
int |
getHwVersion()
Gets the hardware version.
|
int |
getNumStrips()
Gets the number of strips.
|
long |
getRebSerial()
Gets the REB serial number.
|
int |
getRebType()
Gets the REB type.
|
long |
getTime()
Gets the time-base value as millisecond Unix time.
|
long |
getTimeRaw()
Gets the raw time-base value.
|
long |
getTriggerTime(int regSet)
Gets the trigger time for a register set as Unix millisecond time.
|
long |
getTriggerTimeRaw(int regSet)
Gets the raw trigger time for a register set.
|
int |
getVersion(int option)
Gets the version of a particular option.
|
int |
getVersion(int option,
boolean unsOkay)
Gets the version of a particular option.
|
boolean |
isBackBiasOn()
Gets the back bias setting.
|
boolean |
isDcdcSync()
Gets the DC/DC synchronization.
|
boolean |
isEnabled(int regSet)
Checks whether a register set is enabled.
|
boolean |
isVersion(int option,
int... version)
Tests for a particular option version.
|
void |
open(int hdw,
int id,
String ifc)
Opens a connection.
|
void |
setBackBias(boolean on)
Sets the back bias state.
|
void |
setDcdcSync(boolean enable)
Sets the DC/DC synchronization.
|
void |
setDefaultRebType(int type)
Sets the default REB type.
|
void |
setTime()
Sets the time-base value to the current system time.
|
void |
setTime(long time)
Sets the time-base value as millisecond Unix time.
|
void |
setTimeRaw(long time)
Sets the raw time-base value.
|
void |
throwIncompatException()
Throws incompatible firmware version exception.
|
void |
waitDone(int regSet)
Waits for a register set to become disabled.
|
void |
waitDone(int regSet,
int timeout)
Waits for a register set to become disabled.
|
public static final int RSET_STATUS
public static final int RSET_TIME_BASE
public static final int RSET_SEQUENCER
public static final int RSET_POWER_ADCS
public static final int RSET_TEMP_ADCS
public static final int RSET_FAST_ADCS
public static final int REG_SCHEMA
public static final int REG_VERSION
public static final int REG_ID
public static final int REG_TIME_BASE
public static final int REG_STATE
public static final int REG_TRIGGER
public static final int REG_TRIG_TIME
public static final int REG_SN_REB_START
public static final int REG_SN_REB_VALUE
public static final int REG_SN_DREB_START
public static final int REG_SN_DREB_VALUE
public static final int REG_DCDC_SYNC
public static final int REG_BACK_BIAS
public static final int BACK_BIAS_ON
public static final int BACK_BIAS_OFF
public static final int BACK_BIAS_ERROR
public static final int REB_TYPE_UNKNOWN
public static final int REB_TYPE_SCIENCE
public static final int REB_TYPE_GUIDER
public static final int REB_TYPE_WAVEFRONT
public static final int MAX_STRIPS
public static final int OPTN_SEQUENCER
public static final int OPTN_CABAC
public static final int OPTN_ASPIC
public static final int OPTN_REB_SN
public static final int OPTN_DREB_SN
public static final int OPTN_DCDC_SYNC
public static final int OPTN_BOARD_DACS
public static final int OPTN_BOARD_POWER
public static final int OPTN_BOARD_TEMP
public static final int OPTN_STATUS
public static final int OPTN_CCD_TEMP
public static final int OPTN_SLOW_ADCS
public static final int OPTN_FAST_ADCS
public static final int OPTN_BACK_BIAS
public static final int FW_VERSION_INITIAL
public static final int FW_VERSION_UNSET
public static final int FW_VERSION_UNKNOWN
public static final int FW_VERSION_REB0_0
public static final int FW_VERSION_REB0_1
public static final int FW_VERSION_REB1_2
public static final int FW_VERSION_REB1_3
public static final int FW_VERSION_REB1_4
public static final int FW_VERSION_WREB_1
public static final int FW_VERSION_REB3
public static final int FW_VERSION_WREB_2
public static final int FW_VERSION_REB4_0
public static final int FW_VERSION_GREB_0
public static final int FW_VERSION_WREB_3
public static final int FW_VERSION_REB5_0
public static final int FW_VERSION_REB4_1
public static final int FW_VERSION_REB5_1
public static final int FW_VERSION_GREB_1
public static final int FW_VERSION_WREB_4
public static final int FW_VERSION_REB4_2
public static final int FW_VERSION_GREB_2
public static final int FW_VERSION_WREB_5
public static final int VERSION_UNSUPP
public static final int VERSION_0
public static final int VERSION_1
public static final int VERSION_2
public static final int VERSION_3
public static final int VERSION_4
public static final int VERSION_5
public static final int VERSION_6
public static final int VERSION_7
public static final int VERSION_8
public static final int CLOCK_PERIOD_0
public static final int CLOCK_PERIOD_1
public static final long SN_READ_OKAY
public static final long SN_READ_ERROR
public static final long SN_READ_TIMEOUT
public static final long SN_VALUE_MASK
public BaseSet()
public BaseSet(RegClient reg)
reg - The associated register client objectpublic void open(int hdw,
int id,
String ifc)
throws REBException
open in class RegClienthdw - The hardware type to use (DAQ0, DAQ1, DAQ2, PCI0 or PCI1)id - The ID of the REB to connect toifc - The name of the DAQ2 partition or hardware interface to use.REBExceptionpublic int getHwVersion()
throws REBException
REBException - if the version register can't be readpublic int getFwVersion()
throws REBException
REBException - if the firmware version is unknownpublic int getRebType()
throws REBException
REBException - if the firmware version is unknownpublic void setDefaultRebType(int type)
type - The REB type to setpublic int getNumStrips()
throws REBException
REBException - if the firmware version is unknownpublic int convertStripNum(int strip)
throws REBException
strip - The canonical strip numberREBException - if the firmware version is unknownpublic int getVersion(int option)
throws REBException
option - The ID of the optionREBException - if the option ID is invalid or is not supported
by the firmware, or the firmware version is unknownpublic int getVersion(int option,
boolean unsOkay)
throws REBException
option - The ID of the optionunsOkay - If true, returns VERSION_UNSUPP if unsupportedREBException - if the option ID is invalid or is not supported
by the firmware, or the firmware version is unknownpublic boolean isVersion(int option,
int... version)
throws REBException
option - The ID of the optionversion - The array of possible versions to check againstREBException - if the firmware version is not recognizedpublic void checkVersion(int option,
int... version)
throws REBException
option - The ID of the optionversion - The array of possible versions to check againstREBException - if the firmware version is not recognized
or matches none of the specified versionspublic void checkNotVersion(int option,
int... version)
throws REBException
option - The ID of the optionversion - The array of possible versions to check againstREBException - if the firmware version is not recognized
or matches any of the specified versionspublic void throwIncompatException()
throws REBException
REBExceptionpublic void enable()
throws REBException
REBExceptionpublic void disable()
throws REBException
REBExceptionpublic long getTimeRaw()
throws REBException
REBExceptionpublic long getTime()
throws REBException
REBExceptionpublic long convertRawTime(long raw)
throws REBException
raw - The raw time in clock ticksREBExceptionpublic void setTimeRaw(long time)
throws REBException
time - The time-base value as clock ticksREBExceptionpublic void setTime(long time)
throws REBException
time - The time-base value as millisecond Unix timeREBExceptionpublic void setTime()
throws REBException
REBExceptionpublic void enable(int regSet)
throws REBException
regSet - The register set identifierREBExceptionpublic void disable(int regSet)
throws REBException
regSet - The register set identifierREBExceptionpublic boolean isEnabled(int regSet)
throws REBException
regSet - The register set identifierREBExceptionpublic void waitDone(int regSet)
throws REBException
regSet - The register set identifierREBExceptionpublic void waitDone(int regSet,
int timeout)
throws REBException
regSet - The register set identifiertimeout - The timeout period (ms)REBExceptionpublic long getTriggerTimeRaw(int regSet)
throws REBException
regSet - The register set identifierREBExceptionpublic long getTriggerTime(int regSet)
throws REBException
regSet - The register set identifierREBExceptionpublic long getRebSerial()
throws REBException
REBExceptionpublic long getDrebSerial()
throws REBException
REBExceptionpublic void setDcdcSync(boolean enable)
throws REBException
enable - If true, enable synchronization; otherwise disable itREBExceptionpublic boolean isDcdcSync()
throws REBException
REBExceptionpublic void setBackBias(boolean on)
throws REBException
on - If true, turn the back bias on; otherwise turn it offREBExceptionpublic boolean isBackBiasOn()
throws REBException
REBExceptionCopyright © 2021 LSST. All rights reserved.