
public class Maq20Device
extends org.lsst.ccs.monitor.Device
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
Maq20Device.Maq20Control
Inner control interface.
|
static class |
Maq20Device.ModuleData
Inner class for holding dynamic module data.
|
static class |
Maq20Device.ModuleDef
Inner class for holding static module type constants.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CHAN_FREQUENCY |
static int |
CHAN_PULSE_COUNT |
static int |
CHAN_PULSE_RPM |
static int |
CHAN_PWM_LOW1 |
static int |
CHAN_PWM_LOW2 |
static int |
CHAN_PWM_PERIOD |
protected Map<String,Maq20Device.Maq20Control> |
controlMap
Data fields.
|
static int |
DISC_FUNC_FREQ |
static int |
DISC_FUNC_NONE |
static int |
DISC_FUNC_PULSE |
static int |
DISC_FUNC_PWM |
protected org.lsst.ccs.drivers.dataforth.Maq20 |
maq |
protected String[] |
modules |
protected String |
node |
static int |
NUM_CHAN_DINP
Public constants
|
static int |
NUM_CHAN_DIOH
Public constants
|
static int |
NUM_CHAN_DIOL
Public constants
|
static int |
NUM_CHAN_DOUT
Public constants
|
static int |
NUM_CHAN_FREQ
Public constants
|
static int |
NUM_CHAN_IVD
Public constants
|
static int |
NUM_CHAN_IVO
Public constants
|
static int |
NUM_CHAN_IVS
Public constants
|
static int |
NUM_CHAN_PULSE
Public constants
|
static int |
NUM_CHAN_PWM
Public constants
|
static int |
NUM_CHAN_RTD
Public constants
|
static int |
NUM_CHAN_TC
Public constants
|
protected String[] |
serials |
| Constructor and Description |
|---|
Maq20Device() |
| Modifier and Type | Method and Description |
|---|---|
protected int[] |
checkChannel(String chName,
int hwChan,
String type,
String subtype)
Checks a channel's parameters for validity.
|
protected void |
close()
Closes the connection.
|
int |
getModuleCount()
Gets the number of defined modules.
|
Maq20Device.ModuleData |
getModuleData(int index)
Gets the module data with the specified index.
|
protected void |
initChannel(String chName,
int id,
int hwChan,
int type,
int subtype)
Initializes a channel.
|
protected void |
initDevice()
Performs configuration.
|
protected void |
initialize()
Performs full initialization.
|
protected double |
readChannel(int hwChan,
int type)
Reads a channel.
|
void |
setOnline(boolean state)
Sets the device online state (public version)
|
addLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setHwLine, setLine, setLineWarm, setOutputLines, testOnlinepublic static final int NUM_CHAN_TC
public static final int NUM_CHAN_RTD
public static final int NUM_CHAN_IVS
public static final int NUM_CHAN_IVD
public static final int NUM_CHAN_IVO
public static final int NUM_CHAN_DIOL
public static final int NUM_CHAN_DIOH
public static final int NUM_CHAN_PULSE
public static final int NUM_CHAN_PWM
public static final int NUM_CHAN_FREQ
public static final int NUM_CHAN_DINP
public static final int NUM_CHAN_DOUT
public static final int CHAN_FREQUENCY
public static final int CHAN_PULSE_COUNT
public static final int CHAN_PULSE_RPM
public static final int CHAN_PWM_PERIOD
public static final int CHAN_PWM_LOW1
public static final int CHAN_PWM_LOW2
public static final int DISC_FUNC_NONE
public static final int DISC_FUNC_PULSE
public static final int DISC_FUNC_PWM
public static final int DISC_FUNC_FREQ
@LookupField(strategy=CHILDREN) protected final Map<String,Maq20Device.Maq20Control> controlMap
@ConfigurationParameter(category="Device",
isFinal=true)
protected volatile String node
@ConfigurationParameter(category="Device",
maxLength=24,
isFinal=true)
protected volatile String[] serials
protected String[] modules
protected final org.lsst.ccs.drivers.dataforth.Maq20 maq
protected void initDevice()
initDevice in class org.lsst.ccs.monitor.Deviceprotected void initialize()
initialize in class org.lsst.ccs.monitor.Deviceprotected void close()
close in class org.lsst.ccs.monitor.Devicepublic void setOnline(boolean state)
setOnline in class org.lsst.ccs.monitor.Devicestate - protected int[] checkChannel(String chName, int hwChan, String type, String subtype) throws Exception
checkChannel in class org.lsst.ccs.monitor.DevicechName - The name of the channel.hwChan - The hardware channel number.type - The channel type string.subtype - The channel subtype string.Exception - if any errors found in the parameters.protected void initChannel(String chName, int id, int hwChan, int type, int subtype)
initChannel in class org.lsst.ccs.monitor.DevicechName - The channel nameid - The channel IDhwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.subtype - The channel subtype returned by checkChannel.protected double readChannel(int hwChan,
int type)
readChannel in class org.lsst.ccs.monitor.DevicehwChan - The hardware channel number.type - The encoded channel type returned by checkChannel.public int getModuleCount()
public Maq20Device.ModuleData getModuleData(int index)
index - The module indexCopyright © 2021 LSST. All rights reserved.