public class CommandFusion extends IrSerial<LocalSerialPortRaw> implements IRawIrSender, ICapture
| Modifier and Type | Field and Description |
|---|---|
static int |
defaultBaudRate |
static String |
defaultPortName |
serialPort, verboserepeatMaxdefaultBeginTimeout, defaultCaptureMaxSize| Constructor and Description |
|---|
CommandFusion() |
CommandFusion(String portName) |
CommandFusion(String portName,
boolean verbose) |
CommandFusion(String portName,
int baudRate,
int beginTimeout,
boolean verbose) |
| Modifier and Type | Method and Description |
|---|---|
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) |
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(IrSignal irSignal,
int count,
Transmitter transmitter) |
void |
setBeginTimeout(int integer) |
void |
setCaptureMaxSize(int integer) |
void |
setDebug(int debug)
Sets a debug parameter.
|
void |
setEndTimeout(int integer) |
boolean |
stopCapture()
Signals the capturing device that it should stop capturing.
|
close, getTransmitter, isValid, setBaudRate, setDataSize, setFlowControl, setParity, setPortName, setStopBits, setTimeout, setVerbosityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransmitterisValid, setTimeout, setVerbositypublic static final String defaultPortName
public static final int defaultBaudRate
public CommandFusion()
throws NoSuchPortException,
PortInUseException,
UnsupportedCommOperationException,
IOException
public CommandFusion(String portName) throws NoSuchPortException, PortInUseException, UnsupportedCommOperationException, IOException
public CommandFusion(String portName, boolean verbose) throws NoSuchPortException, PortInUseException, UnsupportedCommOperationException, IOException
public CommandFusion(String portName, int baudRate, int beginTimeout, boolean verbose) throws NoSuchPortException, PortInUseException, UnsupportedCommOperationException, IOException
public static void main(String[] args)
args - the command line argumentspublic void setDebug(int debug)
IHarcHardwaresetDebug in interface IHarcHardwarepublic void open()
throws HarcHardwareException,
IOException
IHarcHardwareopen in interface IHarcHardwareopen in class IrSerial<LocalSerialPortRaw>HarcHardwareExceptionIOExceptionpublic boolean sendIr(int deviceType,
int codeset,
int key)
throws IOException
deviceType - codeset - key - function codeIOExceptionpublic boolean sendIr(IrSignal irSignal, int count, Transmitter transmitter) throws IncompatibleArgumentException, IOException
sendIr in interface IRawIrSenderIOExceptionIncompatibleArgumentExceptionpublic ModulatedIrSequence capture() throws IOException, IncompatibleArgumentException
ICapturecapture in interface ICaptureIOExceptionIncompatibleArgumentExceptionpublic boolean stopCapture()
ICapturestopCapture in interface ICapturepublic String getVersion()
IHarcHardwaregetVersion in interface IHarcHardwaregetVersion in class IrSerial<LocalSerialPortRaw>public void setBeginTimeout(int integer)
setBeginTimeout in interface IIrReaderpublic void setCaptureMaxSize(int integer)
setCaptureMaxSize in interface IIrReaderpublic void setEndTimeout(int integer)
setEndTimeout in interface IIrReaderCopyright © 2016. All rights reserved.