public class TempRtds extends BaseSet
| Modifier and Type | Field and Description |
|---|---|
static int |
CAL_INT_FULL |
static int |
CAL_INT_ZERO |
static int |
CAL_SYS_FULL |
static int |
CAL_SYS_ZERO |
static int |
CFG_BOOST |
static int |
CFG_BUFFERED |
static int |
CFG_BURNOUT |
static int |
CFG_CHANNEL_M |
static int |
CFG_CHANNEL_V |
static int |
CFG_GAIN_M |
static int |
CFG_GAIN_V |
static int |
CFG_REF_DETECT |
static int |
CFG_REFSEL_M |
static int |
CFG_REFSEL_V |
static int |
CFG_STANDARD |
static int |
CFG_UNIPOLAR |
static int |
CFG_VBIAS_M |
static int |
CFG_VBIAS_V |
static int |
CHAN_AIN1 |
static int |
CHAN_AIN1A |
static int |
CHAN_AIN2 |
static int |
CHAN_AIN3 |
static int |
CHAN_AIN4 |
static int |
CHAN_AIN5 |
static int |
CHAN_AIN6 |
static int |
CHAN_TEMP |
static int |
CHAN_VDD |
static int |
CLOCK_EXT |
static int |
CLOCK_EXT_HALF |
static int |
CLOCK_INT |
static int |
CLOCK_INT_AVL |
static int |
CMND_READ
Public constants
|
static int |
COM_ADDRESS_M |
static int |
COM_ADDRESS_V |
static int |
COM_CONT_READ |
static int |
COM_READ |
static int |
CONFIG_REG |
static int |
DATA_REG |
static int |
DIO_ENABLE |
static int |
DIO_P1DATA |
static int |
DIO_P2DATA |
static int |
FRS_RATE_10 |
static int |
FRS_RATE_12 |
static int |
FRS_RATE_123 |
static int |
FRS_RATE_16 |
static int |
FRS_RATE_17 |
static int |
FRS_RATE_19 |
static int |
FRS_RATE_242 |
static int |
FRS_RATE_33 |
static int |
FRS_RATE_39 |
static int |
FRS_RATE_4 |
static int |
FRS_RATE_470 |
static int |
FRS_RATE_50 |
static int |
FRS_RATE_6 |
static int |
FRS_RATE_62 |
static int |
FRS_RATE_8 |
static int |
GAIN_1 |
static int |
GAIN_128 |
static int |
GAIN_16 |
static int |
GAIN_2 |
static int |
GAIN_32 |
static int |
GAIN_4 |
static int |
GAIN_64 |
static int |
GAIN_8 |
static int |
ID_REG |
static int |
IEXCDIR_11 |
static int |
IEXCDIR_12 |
static int |
IEXCDIR_21 |
static int |
IEXCDIR_22 |
static int |
IEXCENA_10 |
static int |
IEXCENA_1000 |
static int |
IEXCENA_210 |
static int |
IEXCENA_OFF |
static int |
IO_DIOENA |
static int |
IO_IEXCDIR_M |
static int |
IO_IEXCDIR_V |
static int |
IO_IEXCENA_M |
static int |
IO_IEXCENA_V |
static int |
IO_IO1DAT |
static int |
IO_IO2DAT |
static int |
IO_REG |
static int |
IO_STANDARD |
static int |
MOD_AMP_CM |
static int |
MOD_CHOP_DIS |
static int |
MOD_CLOCK_M |
static int |
MOD_CLOCK_V |
static int |
MOD_FRS_M |
static int |
MOD_FRS_V |
static int |
MOD_MODE_M |
static int |
MOD_MODE_V |
static int |
MOD_PSW |
static int |
MOD_STANDARD |
static int |
MODE_CONT |
static int |
MODE_IDLE |
static int |
MODE_INT_F_CAL |
static int |
MODE_INT_Z_CAL |
static int |
MODE_PWR_DOWN |
static int |
MODE_REG |
static int |
MODE_SINGLE |
static int |
MODE_SYS_F_CAL |
static int |
MODE_SYS_Z_CAL |
static int |
NUM_RTD_TEMPS
Public constants
|
static int |
OFFSET_REG |
static int |
OPTN_CONFIG |
static int |
OPTN_IMMED |
static int |
OPTN_SINGLE |
static int |
RANGE_1250 |
static int |
RANGE_156 |
static int |
RANGE_19 |
static int |
RANGE_2500 |
static int |
RANGE_312 |
static int |
RANGE_39 |
static int |
RANGE_625 |
static int |
RANGE_78 |
static int |
REFSEL_EXT1 |
static int |
REFSEL_EXT2 |
static int |
REFSEL_INT |
static int |
REG_RTD_COMMAND
Public constants
|
static int |
REG_RTD_REPLY
Public constants
|
static int |
REG_RTD_RESET
Public constants
|
static int |
SCALE_REG |
static int |
STATUS_REG |
static int |
STS_AD7794 |
static int |
STS_CHANNEL_M |
static int |
STS_CHANNEL_V |
static int |
STS_ERROR |
static int |
STS_NOXREF |
static int |
STS_READY |
static int |
VBIAS_AIN1 |
static int |
VBIAS_AIN2 |
static int |
VBIAS_AIN3 |
static int |
VBIAS_OFF |
CLOCK_PERIOD_0, CLOCK_PERIOD_1, OPTN_ASPIC, OPTN_BACK_BIAS, OPTN_BOARD_DACS, OPTN_BOARD_POWER, OPTN_BOARD_TEMP, OPTN_CABAC, OPTN_CCD_TEMP, OPTN_DCDC_SYNC, OPTN_DREB_SN, OPTN_FAST_ADCS, OPTN_REB_SN, OPTN_SEQUENCER, OPTN_SLOW_ADCS, OPTN_STATUS, REG_BACK_BIAS, 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_FAST_ADCS, 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, TYPE_CORNER, TYPE_SCIENCE, TYPE_UNKNOWN, VERSION_0, VERSION_1, VERSION_2, VERSION_3, VERSION_4, VERSION_5, VERSION_6, VERSION_UNKNOWN, VERSION_UNSET, VERSION_UNSUPPHDW_TYPE_DAQ0, HDW_TYPE_DAQ1, HDW_TYPE_PCI| Constructor and Description |
|---|
TempRtds()
Constructor.
|
TempRtds(RegClient reg)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
calibrate(int chan,
int type)
Calibrates an ADC channel
|
int[] |
getCalibration(int chan)
Gets the calibration data for an ADC channel.
|
int |
getChannel()
Gets the channel number
|
int |
getClockSource()
Gets the clock source
|
int |
getConvMode()
Gets the conversion mode
|
int |
getConvRate()
Gets the conversion rate
|
int |
getDio()
Gets the DIO values
|
int |
getGain()
Gets the ADC gain
|
int |
getRefSelect()
Gets the reference selection
|
int[] |
getRegSizes()
Gets the array of register sizes
|
int |
getSourceDirection()
Gets the current source direction
|
int |
getSourceEnable()
Gets the current source enable value
|
int |
getStatus()
Gets the chip status
|
boolean |
isBuffered()
Gets the buffered mode
|
boolean |
isPowerSwitch()
Gets the power switch state
|
boolean |
isRefDetect()
Gets the reference detect mode
|
boolean |
isUnipolar()
Gets the unipolar mode
|
int |
read(int addr)
Reads from a register.
|
int |
readAdc(int chan,
int optns)
Reads an ADC channel
|
int |
readRegister(int regnum)
Reads a register.
|
double |
readTemperature(int optns)
Reads the internal temperature sensor
|
double |
readVdd(int optns)
Reads the internal voltage monitor
|
void |
reset()
Resets the chip.
|
void |
setBuffered(boolean enable)
Sets the buffered mode
|
void |
setChannel(int chan)
Sets the channel number
|
void |
setClockSource(int source)
Sets the clock source
|
void |
setConvMode(int mode)
Sets the conversion mode
|
void |
setConvRate(int rate)
Sets the conversion rate
|
void |
setDebug(boolean on) |
void |
setDelay(int rDelay,
int wDelay) |
void |
setDio(int value)
Sets the DIO values
|
void |
setGain(int gain)
Sets the ADC gain
|
void |
setPowerSwitch(boolean on)
Sets the power switch state
|
void |
setRefDetect(boolean enable)
Sets the reference detect mode
|
void |
setRefSelect(int mode)
Sets the reference selection
|
void |
setSourceDirection(int dirn)
Sets the current source direction
|
void |
setSourceEnable(int enab)
Sets the current source enable value
|
void |
setUnipolar(boolean enable)
Sets the unipolar mode
|
void |
setupStandard()
Performs standard chip setup
|
void |
updateRegister(int regnum,
int mask,
int value)
Updates a register
|
void |
write(int addr,
int value)
Writes to a register.
|
void |
writeRegister(int regnum,
int value)
Writes a register
|
checkNotVersion, checkVersion, disable, disable, enable, enable, getDrebSerial, getFwVersion, getRebSerial, getTime, getTimeRaw, getTriggerTime, getTriggerTimeRaw, getVersion, getVersion, isBackBiasOn, isDcdcSync, isVersion, setBackBias, setDcdcSync, setTime, setTime, setTimeRaw, setVersions, throwIncompatException, waitDonepublic static final int REG_RTD_COMMAND
public static final int REG_RTD_REPLY
public static final int REG_RTD_RESET
public static final int CMND_READ
public static final int NUM_RTD_TEMPS
public static final int STATUS_REG
public static final int MODE_REG
public static final int CONFIG_REG
public static final int DATA_REG
public static final int ID_REG
public static final int IO_REG
public static final int OFFSET_REG
public static final int SCALE_REG
public static final int COM_READ
public static final int COM_ADDRESS_M
public static final int COM_ADDRESS_V
public static final int COM_CONT_READ
public static final int STS_READY
public static final int STS_ERROR
public static final int STS_NOXREF
public static final int STS_AD7794
public static final int STS_CHANNEL_M
public static final int STS_CHANNEL_V
public static final int MOD_MODE_M
public static final int MOD_MODE_V
public static final int MODE_CONT
public static final int MODE_SINGLE
public static final int MODE_IDLE
public static final int MODE_PWR_DOWN
public static final int MODE_INT_Z_CAL
public static final int MODE_INT_F_CAL
public static final int MODE_SYS_Z_CAL
public static final int MODE_SYS_F_CAL
public static final int MOD_PSW
public static final int MOD_AMP_CM
public static final int MOD_CLOCK_M
public static final int MOD_CLOCK_V
public static final int CLOCK_INT
public static final int CLOCK_INT_AVL
public static final int CLOCK_EXT
public static final int CLOCK_EXT_HALF
public static final int MOD_CHOP_DIS
public static final int MOD_FRS_M
public static final int MOD_FRS_V
public static final int FRS_RATE_470
public static final int FRS_RATE_242
public static final int FRS_RATE_123
public static final int FRS_RATE_62
public static final int FRS_RATE_50
public static final int FRS_RATE_39
public static final int FRS_RATE_33
public static final int FRS_RATE_19
public static final int FRS_RATE_17
public static final int FRS_RATE_16
public static final int FRS_RATE_12
public static final int FRS_RATE_10
public static final int FRS_RATE_8
public static final int FRS_RATE_6
public static final int FRS_RATE_4
public static final int MOD_STANDARD
public static final int CFG_VBIAS_M
public static final int CFG_VBIAS_V
public static final int VBIAS_OFF
public static final int VBIAS_AIN1
public static final int VBIAS_AIN2
public static final int VBIAS_AIN3
public static final int CFG_BURNOUT
public static final int CFG_UNIPOLAR
public static final int CFG_BOOST
public static final int CFG_GAIN_M
public static final int CFG_GAIN_V
public static final int GAIN_1
public static final int GAIN_2
public static final int GAIN_4
public static final int GAIN_8
public static final int GAIN_16
public static final int GAIN_32
public static final int GAIN_64
public static final int GAIN_128
public static final int RANGE_2500
public static final int RANGE_1250
public static final int RANGE_625
public static final int RANGE_312
public static final int RANGE_156
public static final int RANGE_78
public static final int RANGE_39
public static final int RANGE_19
public static final int CFG_REFSEL_M
public static final int CFG_REFSEL_V
public static final int REFSEL_EXT1
public static final int REFSEL_EXT2
public static final int REFSEL_INT
public static final int CFG_REF_DETECT
public static final int CFG_BUFFERED
public static final int CFG_CHANNEL_M
public static final int CFG_CHANNEL_V
public static final int CHAN_AIN1
public static final int CHAN_AIN2
public static final int CHAN_AIN3
public static final int CHAN_AIN4
public static final int CHAN_AIN5
public static final int CHAN_AIN6
public static final int CHAN_TEMP
public static final int CHAN_VDD
public static final int CHAN_AIN1A
public static final int CFG_STANDARD
public static final int IO_DIOENA
public static final int IO_IO2DAT
public static final int IO_IO1DAT
public static final int IO_IEXCDIR_M
public static final int IO_IEXCDIR_V
public static final int IEXCDIR_12
public static final int IEXCDIR_21
public static final int IEXCDIR_11
public static final int IEXCDIR_22
public static final int IO_IEXCENA_M
public static final int IO_IEXCENA_V
public static final int IEXCENA_OFF
public static final int IEXCENA_10
public static final int IEXCENA_210
public static final int IEXCENA_1000
public static final int IO_STANDARD
public static final int OPTN_CONFIG
public static final int OPTN_SINGLE
public static final int OPTN_IMMED
public static final int DIO_ENABLE
public static final int DIO_P1DATA
public static final int DIO_P2DATA
public static final int CAL_INT_ZERO
public static final int CAL_INT_FULL
public static final int CAL_SYS_ZERO
public static final int CAL_SYS_FULL
public TempRtds()
public TempRtds(RegClient reg)
reg - The associated register client objectpublic void reset()
throws REBException
REBExceptionpublic void setupStandard()
throws REBException
REBExceptionpublic int getStatus()
throws REBException
REBExceptionpublic void setChannel(int chan)
throws REBException
chan - The channel number to setREBExceptionpublic int getChannel()
throws REBException
REBExceptionpublic void setConvMode(int mode)
throws REBException
mode - The mode value to setREBExceptionpublic int getConvMode()
throws REBException
REBExceptionpublic void setClockSource(int source)
throws REBException
source - The source value to setREBExceptionpublic int getClockSource()
throws REBException
REBExceptionpublic void setPowerSwitch(boolean on)
throws REBException
on - Whether or not to set power switch onREBExceptionpublic boolean isPowerSwitch()
throws REBException
REBExceptionpublic void setConvRate(int rate)
throws REBException
rate - The rate value to setREBExceptionpublic int getConvRate()
throws REBException
REBExceptionpublic void setUnipolar(boolean enable)
throws REBException
enable - Whether or not to set unipolar modeREBExceptionpublic boolean isUnipolar()
throws REBException
REBExceptionpublic void setBuffered(boolean enable)
throws REBException
enable - Whether or not to set buffered modeREBExceptionpublic boolean isBuffered()
throws REBException
REBExceptionpublic void setRefDetect(boolean enable)
throws REBException
enable - Whether or not to set reference detect modeREBExceptionpublic boolean isRefDetect()
throws REBException
REBExceptionpublic void setRefSelect(int mode)
throws REBException
mode - The reference selection value to setREBExceptionpublic int getRefSelect()
throws REBException
REBExceptionpublic void setGain(int gain)
throws REBException
gain - The gain value to setREBExceptionpublic int getGain()
throws REBException
REBExceptionpublic void setDio(int value)
throws REBException
value - The DIO values to set, the OR of the following:
DIO_ENABLE: enable digital output
DIO_P1DATA: set 1 on pin P1
DIO_P2DATA: set 1 on pin P2REBExceptionpublic int getDio()
throws REBException
REBExceptionpublic void setSourceDirection(int dirn)
throws REBException
dirn - The direction value to setREBExceptionpublic int getSourceDirection()
throws REBException
REBExceptionpublic void setSourceEnable(int enab)
throws REBException
enab - The enable value to setREBExceptionpublic int getSourceEnable()
throws REBException
REBExceptionpublic int readAdc(int chan,
int optns)
throws REBException
chan - The ADC channel to read (0 - 7)optns - Options word, composed of the following possible bit
masks:
OPTN_CONFIG: First configures the conversion mode.
OPTN_SINGLE: Configures for a single conversion,
otherwise continuous.
OPTN_IMMED: Reads the data register immediately
instead of waiting for a conversion to
complete.REBExceptionpublic double readTemperature(int optns)
throws REBException
optns - Options word, composed of the following possible bit
masks:
OPTN_CONFIG: First configures the conversion mode.
OPTN_SINGLE: Configures for a single conversion,
otherwise continuous.
OPTN_IMMED: Reads the data register immediately
instead of waiting for a conversion to
complete.REBExceptionpublic double readVdd(int optns)
throws REBException
optns - Options word, composed of the following possible bit
masks:
OPTN_CONFIG: First configures the conversion mode.
OPTN_SINGLE: Configures for a single conversion,
otherwise continuous.
OPTN_IMMED: Reads the data register immediately
instead of waiting for a conversion to
complete.REBExceptionpublic int calibrate(int chan,
int type)
throws REBException
chan - The ADC channel to calibrate (0 - 7)type - The type of calibration to perform:
CAL_INT_ZERO: internal zero-point
CAL_INT_FULL: internal full-scale
CAL_SYS_ZERO: system zero-point
CAL_SYS_FULL: system full-scaleREBExceptionpublic int[] getCalibration(int chan)
throws REBException
chan - The ADC channel (0 - 7)REBExceptionpublic int readRegister(int regnum)
throws REBException
regnum - The register to readREBExceptionpublic void writeRegister(int regnum,
int value)
throws REBException
regnum - The register to writevalue - The value to writeREBExceptionpublic void updateRegister(int regnum,
int mask,
int value)
throws REBException
regnum - The register to updatemask - The mask of bits to updatevalue - The value to write, under the maskREBExceptionpublic int read(int addr)
throws REBException
RegClientread in class RegClientaddr - The address of the register to readREBExceptionpublic void write(int addr,
int value)
throws REBException
RegClientwrite in class RegClientaddr - The address of the register to writevalue - The value to write to the registerREBExceptionpublic void setDebug(boolean on)
public void setDelay(int rDelay,
int wDelay)
public int[] getRegSizes()
Copyright © 2016 LSST. All rights reserved.