public class TwisTorr84
extends org.lsst.ccs.drivers.ascii.Ascii
| Modifier and Type | Class and Description |
|---|---|
static class |
TwisTorr84.CmndAlpha
Enumeration of controller commands with Alphanumeric data
|
static class |
TwisTorr84.CmndBool
Enumeration of controller commands with Logical (boolean) data
|
static class |
TwisTorr84.CmndNumeric
Enumeration of controller commands with Numeric (int) data
|
static class |
TwisTorr84.ConResp
Enumeration of single-byte acknowledgement or error responses
|
static class |
TwisTorr84.PumpStatus
Enumeration of pump status codes (returned by Read, window 205)
|
org.lsst.ccs.drivers.ascii.Ascii.DataBits, org.lsst.ccs.drivers.ascii.Ascii.FlowCtrl, org.lsst.ccs.drivers.ascii.Ascii.Option, org.lsst.ccs.drivers.ascii.Ascii.Parity, org.lsst.ccs.drivers.ascii.Ascii.StopBits, org.lsst.ccs.drivers.ascii.Ascii.Terminator| Constructor and Description |
|---|
TwisTorr84()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
decodeError(int errcode)
Decode error bit-pattern of reason(s) for pump status = FAIL
|
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident,
int baudRate,
int commParm)
Override underlying open method of Ascii class
|
void |
open(String serialName)
Open serial connection using default data characteristics
|
String |
readAlpha(TwisTorr84.CmndAlpha cmnd)
Read Alphanumeric data
|
boolean |
readBool(TwisTorr84.CmndBool cmnd)
Read Logical (boolean) data
|
int |
readNumeric(TwisTorr84.CmndNumeric cmnd)
Read Numeric (int) data
|
void |
writeAlpha(TwisTorr84.CmndAlpha cmnd,
String adata)
Write Alphanumeric data
|
void |
writeBool(TwisTorr84.CmndBool cmnd,
boolean bdata)
Write Logical (boolean) data
|
void |
writeNumeric(TwisTorr84.CmndNumeric cmnd,
int ndata)
Write Numeric (int) data
|
close, closeSilent, flush, getConnTimeout, getTimeout, isDropEcho, isOpen, makeDataCharacteristics, open, open, openFtdi, openFtdi, openFtdi, openNet, openNet, openSerial, openSerial, openSerial, read, read, readBytes, readBytes, setCommandTerm, setConnTimeout, setConnTimeout, setDefaultParm, setMultidrop, setOptions, setResponseTerm, setTerminator, setTimeout, setTimeout, write, writeBytes, writeBytespublic static String decodeError(int errcode)
public void open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType connType,
String ident,
int baudRate,
int commParm)
throws org.lsst.ccs.drivers.commons.DriverException
open in class org.lsst.ccs.drivers.ascii.AsciiconnType - The enumerated connection type: FTDI or SERIALident - The USB ID (FTDI) or port name (SERIAL)baudRate - The baud rate, or 0 for the default (9600)commParm - The communications parameters (ignored, 0 used)org.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String serialName) throws org.lsst.ccs.drivers.commons.DriverException
serialName - Serial device nameorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean readBool(TwisTorr84.CmndBool cmnd) throws org.lsst.ccs.drivers.commons.DriverException
cmnd - enumerated command identifierorg.lsst.ccs.drivers.commons.DriverExceptionpublic void writeBool(TwisTorr84.CmndBool cmnd, boolean bdata) throws org.lsst.ccs.drivers.commons.DriverException
cmnd - enumerated command identifierbdata - boolean data to writeorg.lsst.ccs.drivers.commons.DriverExceptionpublic int readNumeric(TwisTorr84.CmndNumeric cmnd) throws org.lsst.ccs.drivers.commons.DriverException
cmnd - enumerated command identifierorg.lsst.ccs.drivers.commons.DriverExceptionpublic void writeNumeric(TwisTorr84.CmndNumeric cmnd, int ndata) throws org.lsst.ccs.drivers.commons.DriverException
cmnd - enumerated command identifierndata - integer data to writeorg.lsst.ccs.drivers.commons.DriverExceptionpublic String readAlpha(TwisTorr84.CmndAlpha cmnd) throws org.lsst.ccs.drivers.commons.DriverException
cmnd - enumerated command identifierorg.lsst.ccs.drivers.commons.DriverExceptionpublic void writeAlpha(TwisTorr84.CmndAlpha cmnd, String adata) throws org.lsst.ccs.drivers.commons.DriverException
cmnd - enumerated command identifieradata - alphanumeric (String) data to writeorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2022 LSST. All rights reserved.