public class IrGenericSerial extends IrSerial<LocalSerialPortBuffered> implements IRawIrSender
serialPort, verbose
repeatMax
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(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, setVerbosity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTransmitter
public IrGenericSerial(String portName, int baudRate, int dataSize, int stopBits, LocalSerialPort.Parity parity, LocalSerialPort.FlowControl flowControl, int timeout, boolean verbose) throws NoSuchPortException, PortInUseException, UnsupportedCommOperationException, IOException
public 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(IrSignal irSignal, int count, Transmitter transmitter) throws NoSuchTransmitterException, IrpMasterException, IOException
sendIr
in interface IRawIrSender
NoSuchTransmitterException
IrpMasterException
IOException
public void setDebug(int debug)
IHarcHardware
setDebug
in interface IHarcHardware
Copyright © 2016. All rights reserved.