public class IrGenericSerial extends IrSerial<LocalSerialPortBuffered> implements IRawIrSender
serialPort, verboserepeatMax| Constructor and Description |
|---|
IrGenericSerial(String portName,
int baudRate,
int dataSize,
int stopBits,
LocalSerialPort.Parity parity,
LocalSerialPort.FlowControl flowControl,
int timeout,
boolean verbose) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
sendIr(org.harctoolbox.ircore.IrSignal irSignal,
int count,
Transmitter transmitter) |
void |
setCommand(String command) |
void |
setDebug(int debug)
Sets a debug parameter.
|
void |
setLineEnding(String lineEnding) |
void |
setRaw(boolean raw) |
void |
setSeparator(String separator) |
void |
setUseSigns(boolean useSigns) |
close, getTransmitter, getVersion, isValid, open, setBaudRate, setDataSize, setFlowControl, setParity, setPortName, setStopBits, setTimeout, setVerboseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransmitterpublic IrGenericSerial(String portName, int baudRate, int dataSize, int stopBits, LocalSerialPort.Parity parity, LocalSerialPort.FlowControl flowControl, int timeout, boolean verbose) throws gnu.io.NoSuchPortException, gnu.io.PortInUseException, gnu.io.UnsupportedCommOperationException, IOException
gnu.io.NoSuchPortExceptiongnu.io.PortInUseExceptiongnu.io.UnsupportedCommOperationExceptionIOExceptionpublic void setCommand(String command)
command - the command to setpublic void setUseSigns(boolean useSigns)
useSigns - the useSigns to setpublic void setSeparator(String separator)
separator - the separator to setpublic void setLineEnding(String lineEnding)
lineEnding - the lineEnding to setpublic void setRaw(boolean raw)
raw - the raw to setpublic boolean sendIr(org.harctoolbox.ircore.IrSignal irSignal,
int count,
Transmitter transmitter)
throws NoSuchTransmitterException,
IOException
sendIr in interface IRawIrSenderNoSuchTransmitterExceptionIOExceptionpublic void setDebug(int debug)
IHarcHardwaresetDebug in interface IHarcHardwareCopyright © 2020. All rights reserved.