public class PowerAdcs extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ADC_ANA_CURRENT
Public constants.
|
static int |
ADC_ANA_VOLTAGE
Public constants.
|
static int |
ADC_CLKH_CURRENT
Public constants.
|
static int |
ADC_CLKH_VOLTAGE
Public constants.
|
static int |
ADC_CLKL_CURRENT
Public constants.
|
static int |
ADC_CLKL_VOLTAGE
Public constants.
|
static int |
ADC_DIG_CURRENT
Public constants.
|
static int |
ADC_DIG_VOLTAGE
Public constants.
|
static int |
ADC_DPHI_CURRENT
Public constants.
|
static int |
ADC_DPHI_VOLTAGE
Public constants.
|
static int |
ADC_HTR_CURRENT
Public constants.
|
static int |
ADC_HTR_VOLTAGE
Public constants.
|
static int |
ADC_OD_CURRENT
Public constants.
|
static int |
ADC_OD_VOLTAGE
Public constants.
|
static double |
CURRENT_SCALE_HI |
static double |
CURRENT_SCALE_LO |
static double |
CURRENT_SCALE_MD |
static int |
ERROR_MASK
Public constants.
|
static int |
NUM_POWER_REGS_G
Public constants.
|
static int |
NUM_POWER_REGS_M
Public constants.
|
static int |
NUM_POWER_REGS_S
Public constants.
|
static int |
NUM_POWER_REGS_S5
Public constants.
|
static int |
NUM_POWER_REGS_W
Public constants.
|
static int |
REG_POWER_ADCS
Public constants.
|
static int |
VALUE_MASK
Public constants.
|
static int |
VERSION_GREB
Public constants.
|
static int |
VERSION_REB0
Public constants.
|
static int |
VERSION_REB1
Public constants.
|
static int |
VERSION_REB5
Public constants.
|
static int |
VERSION_REB5X
Public constants.
|
static int |
VERSION_WREB
Public constants.
|
static double |
VOLTAGE_SCALE |
| Modifier and Type | Method and Description |
|---|---|
void |
enable()
Enables the power ADC reading.
|
int |
getNumRegs()
Gets the number of ADC registers.
|
long |
getTriggerTime()
Gets the time of the read enable.
|
double |
readAdc(int adc)
Reads one power value.
|
double[] |
readAdcs()
Reads all the power values.
|
double[] |
readAdcs(int first,
int count)
Reads a range of power values.
|
void |
waitDone()
Waits for the data to be available.
|
public static final int VERSION_REB0
public static final int VERSION_REB1
public static final int VERSION_REB5
public static final int VERSION_REB5X
public static final int VERSION_WREB
public static final int VERSION_GREB
public static final int REG_POWER_ADCS
public static final int NUM_POWER_REGS_S
public static final int NUM_POWER_REGS_S5
public static final int NUM_POWER_REGS_W
public static final int NUM_POWER_REGS_G
public static final int NUM_POWER_REGS_M
public static final int ADC_DIG_VOLTAGE
public static final int ADC_DIG_CURRENT
public static final int ADC_ANA_VOLTAGE
public static final int ADC_ANA_CURRENT
public static final int ADC_CLKH_VOLTAGE
public static final int ADC_CLKH_CURRENT
public static final int ADC_OD_VOLTAGE
public static final int ADC_OD_CURRENT
public static final int ADC_HTR_VOLTAGE
public static final int ADC_HTR_CURRENT
public static final int ADC_DPHI_VOLTAGE
public static final int ADC_DPHI_CURRENT
public static final int ADC_CLKL_VOLTAGE
public static final int ADC_CLKL_CURRENT
public static final int ERROR_MASK
public static final int VALUE_MASK
public static final double VOLTAGE_SCALE
public static final double CURRENT_SCALE_LO
public static final double CURRENT_SCALE_MD
public static final double CURRENT_SCALE_HI
public PowerAdcs(BaseSet bss)
bss - The associated base set objectpublic void enable()
throws REBException
REBExceptionpublic void waitDone()
throws REBException
REBExceptionpublic long getTriggerTime()
throws REBException
REBExceptionpublic double readAdc(int adc)
throws REBException
adc - The number of the ADC to readREBExceptionpublic double[] readAdcs()
throws REBException
REBExceptionpublic double[] readAdcs(int first,
int count)
throws REBException
first - The number of the first ADC to readcount - The number of ADCs to readREBExceptionpublic int getNumRegs()
throws REBException
REBExceptionCopyright © 2019 LSST. All rights reserved.