public class PowerAdcs extends BaseSet
| Modifier and Type | Field and Description |
|---|---|
static int |
ADC_V24_CURRENT
Public constants.
|
static int |
ADC_V24_VOLTAGE
Public constants.
|
static int |
ADC_V40_CURRENT
Public constants.
|
static int |
ADC_V40_VOLTAGE
Public constants.
|
static int |
ADC_V6_CURRENT
Public constants.
|
static int |
ADC_V6_VOLTAGE
Public constants.
|
static int |
ADC_V9_CURRENT
Public constants.
|
static int |
ADC_V9_VOLTAGE
Public constants.
|
static float |
CURRENT_SCALE |
static int |
ERROR_MASK
Public constants.
|
static int |
NUM_POWER_REGS
Public constants.
|
static float |
POWER_ERROR |
static int |
REG_POWER_ADCS
Public constants.
|
static int |
VALUE_MASK
Public constants.
|
static float |
VOLTAGE_SCALE |
CLOCK_PERIOD_0, CLOCK_PERIOD_1, REG_DCDC_SYNC, REG_ID, REG_SCHEMA, REG_SN_DREB_START, REG_SN_DREB_VALUE, REG_SN_REB_START, REG_SN_REB_VALUE, 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, SN_READ_ERROR, SN_READ_OKAY, SN_READ_TIMEOUT, SN_VALUE_MASK, VERSION_0, VERSION_1, VERSION_2, VERSION_3, VERSION_CURR, VERSION_UNKNOWN, VERSION_UNSET| Constructor and Description |
|---|
PowerAdcs()
Constructors.
|
PowerAdcs(RegClient reg) |
| Modifier and Type | Method and Description |
|---|---|
void |
enable()
Enables the power ADC reading.
|
long |
getTriggerTime()
Gets the time of the read enable.
|
float |
readAdc(int adc)
Reads one power value.
|
float[] |
readAdcs()
Reads all the power values.
|
float[] |
readAdcs(int first,
int count)
Reads a range of power values.
|
void |
waitDone()
Waits for the data to be available.
|
checkNotVersion, checkVersion, checkVersion, disable, disable, enable, getDrebSN, getRebSN, getTime, getTimeRaw, getTriggerTime, getTriggerTimeRaw, getVersion, isDcdcSync, setDcdcSync, setTime, setTime, setTimeRaw, waitDonepublic static final int REG_POWER_ADCS
public static final int ADC_V6_VOLTAGE
public static final int ADC_V6_CURRENT
public static final int ADC_V9_VOLTAGE
public static final int ADC_V9_CURRENT
public static final int ADC_V24_VOLTAGE
public static final int ADC_V24_CURRENT
public static final int ADC_V40_VOLTAGE
public static final int ADC_V40_CURRENT
public static final int NUM_POWER_REGS
public static final int ERROR_MASK
public static final int VALUE_MASK
public static final float VOLTAGE_SCALE
public static final float CURRENT_SCALE
public static final float POWER_ERROR
public PowerAdcs()
public PowerAdcs(RegClient reg)
public void enable()
throws REBException
enable in class BaseSetREBExceptionpublic void waitDone()
throws REBException
REBExceptionpublic long getTriggerTime()
throws REBException
REBExceptionpublic float readAdc(int adc)
throws REBException
adc - The number of the ADC to readREBExceptionpublic float[] readAdcs()
throws REBException
REBExceptionpublic float[] readAdcs(int first,
int count)
throws REBException
first - The number of the first ADC to readcount - The number of ADCs to readREBExceptionCopyright © 2014 LSST. All Rights Reserved.