| Constructor and Description |
|---|
AsciiIOFtdi() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
void |
flush()
Flushes any available response data.
|
void |
open(String serial,
int baud,
int dchars)
Opens a connection.
|
int |
read(byte[] buff,
int offset,
int mleng)
Reads available response data.
|
void |
setTimeout(int timeout)
Sets the receive timeout.
|
void |
write(byte[] buff,
int offset,
int leng)
Writes command data.
|
public void open(String serial, int baud, int dchars) throws org.lsst.ccs.drivers.commons.DriverException
open in interface AsciiIOserial - The serial number string of the interface, optionally
prepended with the node name of a remote FTDI server,
and separated from it by a ":".baud - The baud ratedchars - The data characteristicsorg.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
throws org.lsst.ccs.drivers.commons.DriverException
public void write(byte[] buff,
int offset,
int leng)
throws org.lsst.ccs.drivers.commons.DriverException
public int read(byte[] buff,
int offset,
int mleng)
throws org.lsst.ccs.drivers.commons.DriverException
read in interface AsciiIObuff - The buffer to receive the response dataoffset - The offset to the first available byte in the buffermleng - The maximum number of bytes to readorg.lsst.ccs.drivers.commons.DriverExceptionorg.lsst.ccs.drivers.commons.DriverTimeoutExceptionpublic void flush()
throws org.lsst.ccs.drivers.commons.DriverException
public void setTimeout(int timeout)
throws org.lsst.ccs.drivers.commons.DriverException
setTimeout in interface AsciiIOtimeout - The receive timeout (ms). 0 means no timeout.org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.