
public class PlutoDevice
extends org.lsst.ccs.subsystem.monitor.Device
| Constructor and Description |
|---|
PlutoDevice() |
PlutoDevice(String nodeName,
List areaCfg)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String name,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
protected void |
checkHwLine(String name,
int line)
Checks an output line number.
|
protected void |
close()
Closes the connection.
|
protected void |
configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
protected boolean |
isHwLineSet(int line)
Gets the set state of an output line.
|
int |
readBit(int area,
int bit)
Reads a bit value.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
protected void |
readChannelGroup()
Reads all referenced channels.
|
protected void |
setHwLine(int line,
boolean on)
Sets an output line on or off.
|
void |
writeBit(int area,
int bit,
int value)
Writes a bit value.
|
void |
writeRegister(int area,
int reg,
int value)
Writes a register value.
|
addChannel, addConfigValues, addLine, checkLine, checkOnline, checkTimeout, disable, dropChannel, enable, getConfigValues, getFullName, getOutputLines, initChannel, initChannel, initSensors, isLineSet, isOnline, isTimeout, readChannelNow, readSensors, setLine, setLineWarm, setOnline, setOutputLines, testOnlinegetChildren, getEnvironment, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getCheckedValueFromConfiguration, getComponentByName, getName, getParent, getParentObject, getSubmittedChanges, getSubsystem, init, isParameterConfigurable, notifyChange, notifyChangeWithoutPreliminaryChecks, postStart, printConfigurableParameters, setBulkParameter, shutdownNow, start, submitChange, submitChanges, validateBulkChangepublic PlutoDevice(String nodeName, List areaCfg)
nodeName - The node name of the MAQ20 systemareaCfg - The additional area configuration datapublic PlutoDevice()
protected void configure(org.lsst.ccs.subsystem.monitor.Monitor mon)
configure in class org.lsst.ccs.subsystem.monitor.Devicemon - The associated monitorprotected void initialize()
initialize in class org.lsst.ccs.subsystem.monitor.Deviceprotected void close()
close in class org.lsst.ccs.subsystem.monitor.Deviceprotected int[] checkChannel(String name, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.subsystem.monitor.Devicename - The channel namehwChan - The hardware channel numbertype - The channel type stringsubtype - The channel subtype stringException - if any errors found in the parameters.protected void readChannelGroup()
readChannelGroup in class org.lsst.ccs.subsystem.monitor.Deviceprotected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.subsystem.monitor.DevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.protected void checkHwLine(String name, int line) throws Exception
checkHwLine in class org.lsst.ccs.subsystem.monitor.Devicename - The name of the output line.line - The hardware line number of the output line.Exception - If line number is invalidprotected void setHwLine(int line,
boolean on)
setHwLine in class org.lsst.ccs.subsystem.monitor.Deviceline - The output line number.on - The on state to set: true or falseprotected boolean isHwLineSet(int line)
isHwLineSet in class org.lsst.ccs.subsystem.monitor.Deviceline - The output line number.public void writeBit(int area,
int bit,
int value)
area - The area numberbit - The bit numbervalue - The bit valuepublic int readBit(int area,
int bit)
area - The area numberbit - The bit numberpublic void writeRegister(int area,
int reg,
int value)
area - The area numberreg - The register numbervalue - The register valueCopyright © 2016 LSST. All rights reserved.