Class LocalSerialPortRaw
java.lang.Object
org.harctoolbox.harchardware.comm.LocalSerialPort
org.harctoolbox.harchardware.comm.LocalSerialPortRaw
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IBytesCommand
,IHarcHardware
-
Nested Class Summary
Nested classes/interfaces inherited from class org.harctoolbox.harchardware.comm.LocalSerialPort
LocalSerialPort.FlowControl, LocalSerialPort.Parity, LocalSerialPort.StopBits
-
Field Summary
Fields inherited from class org.harctoolbox.harchardware.comm.LocalSerialPort
DEFAULT, DEFAULT_BAUD, DEFAULT_DATABITS, DEFAULT_FLOWCONTROL, DEFAULT_PARITY, DEFAULT_PORT, DEFAULT_STOPBITS, DEFAULT_TIMEOUT, inStream, outStream, verbose
-
Constructor Summary
ConstructorDescriptionLocalSerialPortRaw
(String portName, boolean verbose, Integer timeout, Integer baud, Integer dataLength, LocalSerialPort.StopBits stopBits, LocalSerialPort.Parity parity, LocalSerialPort.FlowControl flowControl) -
Method Summary
Methods inherited from class org.harctoolbox.harchardware.comm.LocalSerialPort
canonicalizePortName, canonicalizePortName, close, dropDTR, flush, flushInput, getPortName, getSerialPortName, getSerialPortNames, getSoftwareVersion, getVersion, isValid, mkStopBits, open, setDebug, setDTR, setLibraryDir, setTimeout, setVerbose
-
Constructor Details
-
LocalSerialPortRaw
public LocalSerialPortRaw(String portName, boolean verbose, Integer timeout, Integer baud, Integer dataLength, LocalSerialPort.StopBits stopBits, LocalSerialPort.Parity parity, LocalSerialPort.FlowControl flowControl) throws IOException - Throws:
IOException
-
-
Method Details
-
main
-
readBytes
- Specified by:
readBytes
in interfaceIBytesCommand
- Throws:
IOException
-
readBytes
- Throws:
IOException
-
readByte
- Throws:
IOException
-
sendBytes
- Specified by:
sendBytes
in interfaceIBytesCommand
- Throws:
IOException
-
sendBytes
- Throws:
IOException
-
sendByte
- Throws:
IOException
-