public class TempAdcs extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_MASK
Public constants
|
static int |
NUM_TEMP_REGS_G
Public constants
|
static int |
NUM_TEMP_REGS_M
Public constants
|
static int |
NUM_TEMP_REGS_S
Public constants
|
static int |
NUM_TEMP_REGS_S0
Public constants
|
static int |
NUM_TEMP_REGS_W
Public constants
|
static int |
REG_TEMP_ADCS
Public constants
|
static double |
TEMP_SCALE |
| Modifier and Type | Method and Description |
|---|---|
void |
enable()
Enables the temperature 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 temperature value.
|
double[] |
readAdcs()
Reads all the temperature values.
|
double[] |
readAdcs(int first,
int count)
Reads a range of temperature values.
|
void |
waitDone()
Waits for the data to be available.
|
public static final int REG_TEMP_ADCS
public static final int NUM_TEMP_REGS_S
public static final int NUM_TEMP_REGS_S0
public static final int NUM_TEMP_REGS_W
public static final int NUM_TEMP_REGS_G
public static final int NUM_TEMP_REGS_M
public static final int ERROR_MASK
public static final double TEMP_SCALE
public TempAdcs(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 © 2017 LSST. All rights reserved.