public class CommandFusion extends IrSerial<LocalSerialPortRaw> implements IRawIrSender, ICapture
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULTBAUDRATE |
static String |
DEFAULTPORTNAME |
serialPort, verbose
repeatMax
defaultBeginTimeout, defaultCaptureMaxSize, defaultEndingTimeout
Constructor and Description |
---|
CommandFusion() |
CommandFusion(String portName) |
CommandFusion(String portName,
boolean verbose) |
CommandFusion(String portName,
int baudRate,
boolean verbose) |
CommandFusion(String portName,
int baudRate,
int timeoutNotUsed,
boolean verbose) |
Modifier and Type | Method and Description |
---|---|
org.harctoolbox.ircore.ModulatedIrSequence |
capture()
Listens to the device and returns a sequence.
|
String |
getVersion()
Returns the hardware version (not the version of the driver software).
|
static void |
main(String[] args)
Demos sending and receiving.
|
void |
open()
Opens the device with previously set parameters.
|
boolean |
sendIr(int deviceType,
int codeset,
int key)
Sends an IR signal from the built-in, proprietary data base.
|
boolean |
sendIr(org.harctoolbox.ircore.IrSignal irSignal,
int count,
Transmitter transmitter) |
void |
setBeginTimeout(int integer)
Dummy without function.
|
void |
setCaptureMaxSize(int integer)
Dummy without function.
|
void |
setDebug(int debug)
Dummy without function.
|
void |
setEndingTimeout(int integer)
Dummy without function.
|
boolean |
stopCapture()
Signals the capturing device that it should stop capturing.
|
close, getTransmitter, isValid, setBaudRate, setDataSize, setFlowControl, setParity, setPortName, setStopBits, setTimeout, setVerbose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTransmitter
isValid, setTimeout, setVerbose
public static final String DEFAULTPORTNAME
public static final int DEFAULTBAUDRATE
public CommandFusion() throws gnu.io.NoSuchPortException, gnu.io.PortInUseException, gnu.io.UnsupportedCommOperationException, IOException
gnu.io.NoSuchPortException
gnu.io.PortInUseException
gnu.io.UnsupportedCommOperationException
IOException
public CommandFusion(String portName) throws gnu.io.NoSuchPortException, gnu.io.PortInUseException, gnu.io.UnsupportedCommOperationException, IOException
gnu.io.NoSuchPortException
gnu.io.PortInUseException
gnu.io.UnsupportedCommOperationException
IOException
public CommandFusion(String portName, boolean verbose) throws gnu.io.NoSuchPortException, gnu.io.PortInUseException, gnu.io.UnsupportedCommOperationException, IOException
gnu.io.NoSuchPortException
gnu.io.PortInUseException
gnu.io.UnsupportedCommOperationException
IOException
public CommandFusion(String portName, int baudRate, boolean verbose) throws gnu.io.NoSuchPortException, gnu.io.PortInUseException, gnu.io.UnsupportedCommOperationException, IOException
gnu.io.NoSuchPortException
gnu.io.PortInUseException
gnu.io.UnsupportedCommOperationException
IOException
public CommandFusion(String portName, int baudRate, int timeoutNotUsed, boolean verbose) throws gnu.io.NoSuchPortException, gnu.io.PortInUseException, gnu.io.UnsupportedCommOperationException, IOException
gnu.io.NoSuchPortException
gnu.io.PortInUseException
gnu.io.UnsupportedCommOperationException
IOException
public static void main(String[] args)
args
- Pronto hex of signal to send, or empty for receiving.public void setDebug(int debug)
setDebug
in interface IHarcHardware
debug
- public void open() throws HarcHardwareException, IOException
IHarcHardware
open
in interface IHarcHardware
open
in class IrSerial<LocalSerialPortRaw>
HarcHardwareException
IOException
public boolean sendIr(int deviceType, int codeset, int key) throws IOException
deviceType
- codeset
- key
- function codeIOException
public boolean sendIr(org.harctoolbox.ircore.IrSignal irSignal, int count, Transmitter transmitter) throws IOException
sendIr
in interface IRawIrSender
irSignal
- count
- transmitter
- Not usedIOException
public org.harctoolbox.ircore.ModulatedIrSequence capture() throws IOException, org.harctoolbox.ircore.InvalidArgumentException
ICapture
capture
in interface ICapture
IOException
org.harctoolbox.ircore.OddSequenceLengthException
org.harctoolbox.ircore.InvalidArgumentException
public boolean stopCapture()
ICapture
stopCapture
in interface ICapture
public String getVersion()
IHarcHardware
getVersion
in interface IHarcHardware
getVersion
in class IrSerial<LocalSerialPortRaw>
public void setBeginTimeout(int integer)
setBeginTimeout
in interface IIrReader
integer
- public void setCaptureMaxSize(int integer)
setCaptureMaxSize
in interface IIrReader
integer
- public void setEndingTimeout(int integer)
setEndingTimeout
in interface IIrReader
integer
- Copyright © 2019. All rights reserved.