public class RebPs extends Object
| 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 |
NUM_PS
Constants and data.
|
static int |
NUM_REBS
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.
|
| Constructor and Description |
|---|
RebPs() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
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.
|
int |
getFwVersion()
Gets the firmware version number.
|
int |
getGeogAddr()
Gets the geographical address.
|
int |
getNumSeqErr()
Gets the sequence error count.
|
int |
getNumTimeout()
Gets the socket timeout count.
|
int |
getPower(int rebNum)
Gets the power options for a REB.
|
int |
getPowerState()
Gets the overall power state.
|
long |
getSerialNo()
Gets the serial number.
|
boolean |
isPowerOn(int rebNum)
Gets the power state of a REB.
|
void |
open(String ipAddr)
Opens a connection to a board.
|
void |
open(String ipAddr,
int port)
Opens a connection to a board.
|
double[] |
readChannel(int rebNum,
int psNum)
Reads all channels of a power supply.
|
double |
readChannel(int rebNum,
int psNum,
int chan)
Reads a channel.
|
int |
readReg(int addr)
Reads a register.
|
int[] |
readRegs(int addr,
int count)
Reads registers.
|
double |
readSeqChan(int rebNum,
int psNum,
int chan)
Reads a sequencer channel.
|
double |
readTemperature()
Reads the temperature.
|
void |
setPower(int rebNum,
int value)
Sets the power options for a REB.
|
void |
setTemperatureRes(int value)
Sets the temperature resolution.
|
static boolean |
testChannelNumber(int psNum,
int chan)
Tests a channel number for validity.
|
static boolean |
testRebNumber(int rebNum)
Tests a REB number for validity.
|
void |
updateReg(int addr,
int mask,
int value)
Updates a register.
|
void |
writeDac(int rebNum,
int psNum,
double value)
Writes to a DAC.
|
void |
writeReg(int addr,
int value)
Writes a register.
|
void |
writeRegs(int addr,
int[] value)
Writes registers.
|
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 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_PS
public static final int NUM_REBS
public void open(String ipAddr) throws org.lsst.ccs.drivers.commons.DriverException
ipAddr - The IP addressorg.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String ipAddr, int port) throws org.lsst.ccs.drivers.commons.DriverException
ipAddr - The IP addressport - The port numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void writeReg(int addr,
int value)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The register addressvalue - The value to writeorg.lsst.ccs.drivers.commons.DriverExceptionpublic void writeRegs(int addr,
int[] value)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The first register addressvalue - The array of values to write. If it contains more than
MAX_REGS (currently 64) values, only MAX_REGS values
are written.org.lsst.ccs.drivers.commons.DriverExceptionpublic int readReg(int addr)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The register addressorg.lsst.ccs.drivers.commons.DriverExceptionpublic int[] readRegs(int addr,
int count)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The first register addresscount - The number of registers to read. If greater than
MAX_REGS (currently 64), is set to MAX_REGS.org.lsst.ccs.drivers.commons.DriverExceptionpublic void updateReg(int addr,
int mask,
int value)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The register addressmask - The mask of bits to be updatedvalue - The value to use for updatingorg.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 void setTemperatureRes(int value)
throws org.lsst.ccs.drivers.commons.DriverException
value - The resolution value (0 - 3)org.lsst.ccs.drivers.commons.DriverExceptionpublic double readTemperature()
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 int getPowerState()
throws org.lsst.ccs.drivers.commons.DriverException
org.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 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 readSeqChan(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 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 testRebNumber(int rebNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getNumSeqErr()
public int getNumTimeout()
Copyright © 2016 LSST. All rights reserved.