org.lsst.ccs.drivers.rcm
Class TempAdcs

java.lang.Object
  extended by org.lsst.ccs.drivers.rcm.RegClient
      extended by org.lsst.ccs.drivers.rcm.BaseSet
          extended by org.lsst.ccs.drivers.rcm.TempAdcs

public class TempAdcs
extends BaseSet

Temperature ADCs reading routines

Author:
Owen Saxton

Field Summary
static int ADC_DREB_T1
          Public constants
static int ADC_DREB_T2
          Public constants
static int ADC_REB_T1
          Public constants
static int ADC_REB_T2
          Public constants
static int ADC_REB_T3
          Public constants
static int ADC_REB_T4
          Public constants
static int ADC_REB_T5
          Public constants
static int ADC_REB_T6
          Public constants
static int ADC_REB_T7
          Public constants
static int ADC_REB_T8
          Public constants
static int ADC_REB_T9
          Public constants
static int NUM_TEMP_REGS
          Public constants
static int REG_TEMP_ADCS
          Public constants
static float TEMP_SCALE
           
 
Fields inherited from class org.lsst.ccs.drivers.rcm.BaseSet
CLOCK_PERIOD_0, CLOCK_PERIOD_1, REG_ID, REG_SCHEMA, 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, VERSION_0, VERSION_1, VERSION_2, VERSION_UNKNOWN, VERSION_UNSET
 
Constructor Summary
TempAdcs()
          Constructors.
TempAdcs(RegClient reg)
           
 
Method Summary
 void enable()
          Enables the temperature ADC reading
 long getTriggerTime()
          Gets the time of the read enable
 float readAdc(int adc)
          Reads one temperature value
 float[] readAdcs()
          Reads all the temperature values
 float[] readAdcs(int first, int count)
          Reads a range of temperature values
 void waitDone()
          Waits for the data to be available
 
Methods inherited from class org.lsst.ccs.drivers.rcm.BaseSet
checkNotVersion, checkVersion, disable, disable, enable, getTime, getTimeRaw, getTriggerTime, getTriggerTimeRaw, getVersion, setTime, setTime, setTimeRaw, waitDone
 
Methods inherited from class org.lsst.ccs.drivers.rcm.RegClient
checkOpen, close, finalize, open, read, read, read, readLong, update, write, write, write, writeLong
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REG_TEMP_ADCS

public static final int REG_TEMP_ADCS
Public constants

See Also:
Constant Field Values

ADC_DREB_T1

public static final int ADC_DREB_T1
Public constants

See Also:
Constant Field Values

ADC_DREB_T2

public static final int ADC_DREB_T2
Public constants

See Also:
Constant Field Values

ADC_REB_T1

public static final int ADC_REB_T1
Public constants

See Also:
Constant Field Values

ADC_REB_T2

public static final int ADC_REB_T2
Public constants

See Also:
Constant Field Values

ADC_REB_T3

public static final int ADC_REB_T3
Public constants

See Also:
Constant Field Values

ADC_REB_T4

public static final int ADC_REB_T4
Public constants

See Also:
Constant Field Values

ADC_REB_T5

public static final int ADC_REB_T5
Public constants

See Also:
Constant Field Values

ADC_REB_T6

public static final int ADC_REB_T6
Public constants

See Also:
Constant Field Values

ADC_REB_T7

public static final int ADC_REB_T7
Public constants

See Also:
Constant Field Values

ADC_REB_T8

public static final int ADC_REB_T8
Public constants

See Also:
Constant Field Values

ADC_REB_T9

public static final int ADC_REB_T9
Public constants

See Also:
Constant Field Values

NUM_TEMP_REGS

public static final int NUM_TEMP_REGS
Public constants

See Also:
Constant Field Values

TEMP_SCALE

public static final float TEMP_SCALE
See Also:
Constant Field Values
Constructor Detail

TempAdcs

public TempAdcs()
Constructors.


TempAdcs

public TempAdcs(RegClient reg)
Method Detail

enable

public void enable()
            throws RcmException
Enables the temperature ADC reading

Overrides:
enable in class BaseSet
Throws:
RcmException

waitDone

public void waitDone()
              throws RcmException
Waits for the data to be available

Throws:
RcmException

getTriggerTime

public long getTriggerTime()
                    throws RcmException
Gets the time of the read enable

Throws:
RcmException

readAdc

public float readAdc(int adc)
              throws RcmException
Reads one temperature value

Throws:
RcmException

readAdcs

public float[] readAdcs()
                 throws RcmException
Reads all the temperature values

Throws:
RcmException

readAdcs

public float[] readAdcs(int first,
                        int count)
                 throws RcmException
Reads a range of temperature values

Throws:
RcmException


Copyright © 2013 LSST. All Rights Reserved.