Srp.BoardType| Modifier and Type | Field and Description |
|---|---|
protected static int |
ADC_AD_IN_BASE
Constants and data.
|
protected static int |
ADC_ALERT
Constants and data.
|
protected static int |
ADC_CONTROL
Constants and data.
|
protected static int |
ADC_CURR_MEAS
Constants and data.
|
protected static int |
ADC_FAULT
Constants and data.
|
protected static int |
ADC_FAULT_COR
Constants and data.
|
protected static int |
ADC_INCREMENT
Constants and data.
|
protected static int |
ADC_MAX_MEAS
Constants and data.
|
protected static int |
ADC_MAX_THRESH
Constants and data.
|
protected static int |
ADC_MIN_MEAS
Constants and data.
|
protected static int |
ADC_MIN_THRESH
Constants and data.
|
protected static int |
ADC_POWER_BASE
Constants and data.
|
protected static int |
ADC_SENSE_BASE
Constants and data.
|
protected static int |
ADC_STATUS
Constants and data.
|
protected static int |
ADC_V_IN_BASE
Constants and data.
|
protected static double |
CURR_SCALE |
protected static int |
REG_ADC_BASE
Constants and data.
|
protected static int |
REG_ALERTS
Constants and data.
|
protected static int |
REG_DEVICE_BASE
Constants and data.
|
protected static int |
REG_LINK_FAULT
Constants and data.
|
protected static int |
REG_MAIN_STATUS
Constants and data.
|
protected static int |
REG_MAIN_SWITCH
Constants and data.
|
protected static int |
REG_SWITCHES
Constants and data.
|
protected static double |
VOLT_SCALE |
DEFAULT_PORT| Constructor and Description |
|---|
PduCommon() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAlertStatus()
Gets the status of the alerts
|
String[] |
getChannelNames()
Gets the array of channel names
|
int |
getLinkFault()
Gets the I2C link fault indicator
|
int |
getMainStatus()
Gets the status of the main power
|
int |
getSwitchStatus()
Gets the channel power status
|
int |
getValidChannels()
Gets the mask of valid channels
|
boolean |
isChannelOn(int chan)
Gets the state of a channel's power
|
boolean |
isChannelOn(String chan)
Gets the state of a named channel's power
|
boolean |
isMainOn()
Gets the state of the main power
|
double |
readCurrent(int chan)
Reads a channel's current
|
double |
readCurrent(String chan)
Reads a named channel's current
|
double |
readVoltage(int chan)
Reads a channel's voltage
|
double |
readVoltage(String chan)
Reads a named channel's voltage
|
protected void |
setChannelMap(Map chans)
Sets the map of channel names
|
void |
setChannelOff(int chan)
Turns off a channel
|
void |
setChannelOff(String chan)
Turns off a named channel
|
void |
setChannelOn(int chan)
Turns on a channel
|
void |
setChannelOn(String chan)
Turns on a named channel
|
protected void |
setCurrentScales(double[] scales)
Sets the array of current scale factors
|
void |
setMainOff()
Turns off the main power
|
void |
setMainOn()
Turns on the main power
|
protected void |
setValidChannels(int chans)
Sets the mask of valid channels
|
clearSimRegMap, close, getBoardType, getIpAddress, getNumSeqErr, getNumTimeout, getSimRegMap, isSimulated, open, open, putSimRegMap, readReg, readRegs, setDebug, setProbeAddress, setSrpVersion, setValidBoardTypes, simInitialize, simReadRegs, simWriteRegs, updateReg, writeReg, writeRegsprotected static final int REG_DEVICE_BASE
protected static final int REG_SWITCHES
protected static final int REG_MAIN_SWITCH
protected static final int REG_MAIN_STATUS
protected static final int REG_ALERTS
protected static final int REG_LINK_FAULT
protected static final int ADC_INCREMENT
protected static final int REG_ADC_BASE
protected static final int ADC_CONTROL
protected static final int ADC_ALERT
protected static final int ADC_STATUS
protected static final int ADC_FAULT
protected static final int ADC_FAULT_COR
protected static final int ADC_POWER_BASE
protected static final int ADC_SENSE_BASE
protected static final int ADC_V_IN_BASE
protected static final int ADC_AD_IN_BASE
protected static final int ADC_CURR_MEAS
protected static final int ADC_MAX_MEAS
protected static final int ADC_MIN_MEAS
protected static final int ADC_MAX_THRESH
protected static final int ADC_MIN_THRESH
protected static final double VOLT_SCALE
protected static final double CURR_SCALE
protected void setValidChannels(int chans)
chans - The valid channel maskpublic int getValidChannels()
protected void setCurrentScales(double[] scales)
scales - The array of scales, indexed by channel numberprotected void setChannelMap(Map chans)
chans - The map of channel names to numberspublic String[] getChannelNames()
public void setMainOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setMainOff()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isMainOn()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getMainStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setChannelOn(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverException - if the channel number is invalidpublic void setChannelOn(String chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel nameorg.lsst.ccs.drivers.commons.DriverException - if the channel name is invalidpublic void setChannelOff(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverException - if the channel number is invalidpublic void setChannelOff(String chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel nameorg.lsst.ccs.drivers.commons.DriverException - if the channel name is invalidpublic boolean isChannelOn(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverException - if the channel number is invalidpublic boolean isChannelOn(String chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel nameorg.lsst.ccs.drivers.commons.DriverException - if the channel name is invalidpublic int getSwitchStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getAlertStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getLinkFault()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readVoltage(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverException - if the channel number is invalidpublic double readVoltage(String chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel nameorg.lsst.ccs.drivers.commons.DriverException - if the channel name is invalidpublic double readCurrent(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverException - if the channel number is invalidpublic double readCurrent(String chan) throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel nameorg.lsst.ccs.drivers.commons.DriverException - if the channel name is invalidCopyright © 2018 LSST. All rights reserved.