public class Mmr extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Mmr.Listener
Defines an event listener
|
| Modifier and Type | Field and Description |
|---|---|
static int |
FLD_A
Data field - address (ID)
|
static int |
FLD_D0
Data field - digital input line 0
|
static int |
FLD_D1
Data field - digital input line 1
|
static int |
FLD_I
Data field - current
|
static int |
FLD_P0
Data field - pressure transducer 0
|
static int |
FLD_P1
Data field - pressure transducer 1
|
static int |
FLD_T0
Data field - thermocouple 0
|
static int |
FLD_T1
Data field - thermocouple 1
|
static int |
N_FIELDS
Number of data fields
|
| Constructor and Description |
|---|
Mmr() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Mmr.Listener listener)
Adds an event listener.
|
void |
close()
Closes the connection to the controller.
|
void |
open(int type,
String ident)
Opens a connection to the controller.
|
void |
removeListener()
Removes the event listener.
|
public static final int FLD_A
public static final int FLD_T0
public static final int FLD_T1
public static final int FLD_P0
public static final int FLD_P1
public static final int FLD_D0
public static final int FLD_D1
public static final int FLD_I
public static final int N_FIELDS
public void open(int type,
String ident)
throws org.lsst.ccs.drivers.commons.DriverException
type - The type of connection, serial or FTDI.ident - Device identifier: device name for serial, USB serial
number for SCPI.org.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void addListener(Mmr.Listener listener)
listener - The event listener object, containing the
processData, setPowered and
setClosed methods.public void removeListener()
Copyright © 2014 LSST. All Rights Reserved.