public class RebPS extends Srp
Srp.BoardType| Modifier and Type | Field and Description |
|---|---|
static int |
CHAN_CURR_AFT_LDO
Constants and data.
|
static int |
CHAN_CURR_BEF_LDO
Constants and data.
|
static int |
CHAN_VOLT_AFT_LDO
Constants and data.
|
static int |
CHAN_VOLT_AFT_SW
Constants and data.
|
static int |
CHAN_VOLT_BEF_LDO
Constants and data.
|
static int |
CHAN_VOLT_DAC
Constants and data.
|
static int |
CHAN_VOLT2_AFT_LDO
Constants and data.
|
static int |
DAC_MAXIMUM
Constants and data.
|
static int |
EXT_LIMIT_HIGH
Constants and data.
|
static int |
EXT_LIMIT_LOW
Constants and data.
|
static int |
EXT_VALUE_CURR
Constants and data.
|
static int |
EXT_VALUE_MAX
Constants and data.
|
static int |
EXT_VALUE_MIN
Constants and data.
|
static int |
MAX_REBS
Constants and data.
|
static int |
NUM_CHAN_EXT
Constants and data.
|
static int |
NUM_EXT_VALUE
Constants and data.
|
static int |
NUM_PS
Constants and data.
|
static int |
PS_ANALOG
Constants and data.
|
static int |
PS_CLK_HIGH
Constants and data.
|
static int |
PS_CLK_LOW
Constants and data.
|
static int |
PS_DIGITAL
Constants and data.
|
static int |
PS_DPHI
Constants and data.
|
static int |
PS_HEATER
Constants and data.
|
static int |
PS_HV_BIAS
Constants and data.
|
static int |
PS_OD
Constants and data.
|
static int |
REB_QUANTUM
Constants and data.
|
static int |
TYPE_CORNER
Constants and data.
|
static int |
TYPE_SCIENCE
Constants and data.
|
static int |
TYPE_UNKNOWN
Constants and data.
|
static int |
VERSION_PROD
Constants and data.
|
static int |
VERSION_PROTO
Constants and data.
|
boardType, DEFAULT_PORT| Constructor and Description |
|---|
RebPS()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
configTemperature()
Configures the temperature system.
|
void |
configure(int rebNum)
Configures all devices of a REB.
|
void |
configure(int rebNum,
int psNum)
Configures all devices of a power supply.
|
void |
configure(int rebNum,
int psNum,
int devc)
Configures a device.
|
void |
enableAllWrite(boolean on)
Sets whether writing of all registers is enabled.
|
void |
enablePowerLeftOn(boolean on)
Sets whether leaving power on after failure is enabled.
|
int |
getFailureDetail(int rebNum)
Gets the failure details for a REB.
|
int |
getFailureSummary()
Gets the failure summary.
|
int |
getFwVersion()
Gets the firmware version number.
|
int |
getGeogAddr()
Gets the geographical address.
|
int |
getInitStatus()
Gets the initialization status.
|
int |
getNumRebs()
Gets the number of REBs
|
int |
getNumTemperatures()
Gets the number of temperatures
|
int |
getPower(int rebNum)
Gets the power options for a REB.
|
long |
getSerialNo()
Gets the serial number.
|
int[] |
getTemperatureRes()
Gets all temperature resolutions.
|
int |
getTemperatureRes(int sensor)
Gets a temperature resolution.
|
int |
getType()
Gets the PS type
|
int |
getVersion()
Gets the PS firmware version
|
boolean |
isAllWriteEnabled()
Gets whether writing of all registers is enabled.
|
boolean |
isPowerLeftOnEnabled()
Gets whether leaving power on after failure is enabled.
|
boolean |
isPowerOn(int rebNum)
Gets the overall powered state of a REB.
|
boolean |
isPowerOn(int rebNum,
int psNum)
Gets the powered state of a single REB PS element.
|
void |
open(String ipAddr,
int port)
Opens a connection to a board.
|
double[][] |
readChanExtended(int rebNum,
int psNum)
Reads all extended channel data for a power supply.
|
double[] |
readChanExtended(int rebNum,
int psNum,
int chan)
Reads extended channel data.
|
double[] |
readChannel(int rebNum,
int psNum)
Reads all channels of a power supply.
|
double |
readChannel(int rebNum,
int psNum,
int chan)
Reads a channel.
|
double[] |
readTemperature()
Reads all temperatures.
|
double |
readTemperature(int sensor)
Reads a temperature.
|
double[] |
readTempError()
Reads all error temperature limits.
|
double[] |
readTempWarn()
Reads all warning temperature limits.
|
void |
resetChanExtrema(int rebNum,
int psNum,
int chan)
Resets channel extrema data.
|
void |
setPower(int rebNum,
int value)
Sets the power options for a REB.
|
void |
setTemperatureRes(int value)
Sets the temperature resolution for all sensors.
|
void |
setTemperatureRes(int sensor,
int value)
Sets the temperature resolution for a sensor.
|
protected void |
simInitialize()
Initializes the simulation.
|
protected void |
simWriteRegs(int addr,
int[] value,
int count)
Writes simulated registers.
|
static boolean |
testChannelNumber(int psNum,
int chan)
Tests a channel number for validity.
|
static boolean |
testPsNumber(int psNum)
Tests a power supply number for validity.
|
boolean |
testRebNumber(int rebNum)
Tests a REB number for validity.
|
void |
writeDac(int rebNum,
int psNum,
double value)
Writes to a DAC.
|
clearSimRegMap, close, getBoardType, getBuildStamp, getIpAddress, getNumSeqErr, getNumTimeout, getSimRegMap, isSimulated, open, open, open, putSimRegMap, readReg, readRegs, setDebug, setSrpVersion, setValidBoardTypes, simReadRegs, updateReg, writeReg, writeRegspublic static final int VERSION_PROTO
public static final int VERSION_PROD
public static final int TYPE_UNKNOWN
public static final int TYPE_SCIENCE
public static final int TYPE_CORNER
public static final int PS_DIGITAL
public static final int PS_ANALOG
public static final int PS_OD
public static final int PS_CLK_HIGH
public static final int PS_CLK_LOW
public static final int PS_HEATER
public static final int PS_DPHI
public static final int PS_HV_BIAS
public static final int NUM_PS
public static final int CHAN_VOLT_BEF_LDO
public static final int CHAN_CURR_BEF_LDO
public static final int CHAN_VOLT_AFT_LDO
public static final int CHAN_CURR_AFT_LDO
public static final int CHAN_VOLT_AFT_SW
public static final int CHAN_VOLT2_AFT_LDO
public static final int CHAN_VOLT_DAC
public static final int NUM_CHAN_EXT
public static final int EXT_VALUE_CURR
public static final int EXT_VALUE_MAX
public static final int EXT_VALUE_MIN
public static final int EXT_LIMIT_HIGH
public static final int EXT_LIMIT_LOW
public static final int NUM_EXT_VALUE
public static final int DAC_MAXIMUM
public static final int REB_QUANTUM
public static final int MAX_REBS
public void open(String ipAddr, int port) throws org.lsst.ccs.drivers.commons.DriverException
public int getVersion()
public int getNumRebs()
public int getNumTemperatures()
public int getType()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getFwVersion()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic long getSerialNo()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getGeogAddr()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getInitStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getFailureSummary()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getFailureDetail(int rebNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void configTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setTemperatureRes(int sensor,
int value)
throws org.lsst.ccs.drivers.commons.DriverException
sensor - The sensor number (0 - 6)value - The resolution value (0 - 3)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setTemperatureRes(int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The resolution value (0 - 3)org.lsst.ccs.drivers.commons.DriverExceptionpublic int getTemperatureRes(int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
sensor - The sensor number (0 - 6)org.lsst.ccs.drivers.commons.DriverExceptionpublic int[] getTemperatureRes()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readTemperature(int sensor)
throws org.lsst.ccs.drivers.commons.DriverException
sensor - The sensor number (0 - 6)org.lsst.ccs.drivers.commons.DriverException - if communications errorpublic double[] readTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readTempWarn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readTempError()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPower(int rebNum,
int value)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numbervalue - The value to setorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getPower(int rebNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isPowerOn(int rebNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isPowerOn(int rebNum,
int psNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void configure(int rebNum,
int psNum,
int devc)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numberdevc - The device numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void configure(int rebNum,
int psNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void configure(int rebNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readChannel(int rebNum,
int psNum,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numberchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readChannel(int rebNum,
int psNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[] readChanExtended(int rebNum,
int psNum,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numberchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double[][] readChanExtended(int rebNum,
int psNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void resetChanExtrema(int rebNum,
int psNum,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numberchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void writeDac(int rebNum,
int psNum,
double value)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numbervalue - The voltage value to writeorg.lsst.ccs.drivers.commons.DriverExceptionpublic void enableAllWrite(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - True to enable writing; false to disable itorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isAllWriteEnabled()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void enablePowerLeftOn(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - True to enable power left on; false to disable itorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isPowerLeftOnEnabled()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic static boolean testChannelNumber(int psNum,
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
psNum - The power supply numberchan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic static boolean testPsNumber(int psNum)
psNum - The power supply numberpublic boolean testRebNumber(int rebNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberorg.lsst.ccs.drivers.commons.DriverExceptionprotected void simInitialize()
simInitialize in class Srpprotected void simWriteRegs(int addr,
int[] value,
int count)
simWriteRegs in class Srpaddr - The first register addressvalue - The array of values to write.count - The number of values to write.Copyright © 2018 LSST. All rights reserved.