org.lsst.ccs.drivers.rcm
Class PowerAdcs

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.PowerAdcs

public class PowerAdcs
extends BaseSet

Power ADCs reading routines

Author:
Owen Saxton

Field Summary
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 NUM_POWER_REGS
          Public constants
static int REG_POWER_ADCS
          Public constants
static float VOLTAGE_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
PowerAdcs()
          Constructors.
PowerAdcs(RegClient reg)
           
 
Method Summary
 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
 
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_POWER_ADCS

public static final int REG_POWER_ADCS
Public constants

See Also:
Constant Field Values

ADC_V6_VOLTAGE

public static final int ADC_V6_VOLTAGE
Public constants

See Also:
Constant Field Values

ADC_V6_CURRENT

public static final int ADC_V6_CURRENT
Public constants

See Also:
Constant Field Values

ADC_V9_VOLTAGE

public static final int ADC_V9_VOLTAGE
Public constants

See Also:
Constant Field Values

ADC_V9_CURRENT

public static final int ADC_V9_CURRENT
Public constants

See Also:
Constant Field Values

ADC_V24_VOLTAGE

public static final int ADC_V24_VOLTAGE
Public constants

See Also:
Constant Field Values

ADC_V24_CURRENT

public static final int ADC_V24_CURRENT
Public constants

See Also:
Constant Field Values

ADC_V40_VOLTAGE

public static final int ADC_V40_VOLTAGE
Public constants

See Also:
Constant Field Values

ADC_V40_CURRENT

public static final int ADC_V40_CURRENT
Public constants

See Also:
Constant Field Values

NUM_POWER_REGS

public static final int NUM_POWER_REGS
Public constants

See Also:
Constant Field Values

VOLTAGE_SCALE

public static final float VOLTAGE_SCALE
See Also:
Constant Field Values

CURRENT_SCALE

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

PowerAdcs

public PowerAdcs()
Constructors.


PowerAdcs

public PowerAdcs(RegClient reg)
Method Detail

enable

public void enable()
            throws RcmException
Enables the power 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 power value

Throws:
RcmException

readAdcs

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

Throws:
RcmException

readAdcs

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

Throws:
RcmException


Copyright © 2013 LSST. All Rights Reserved.