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
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, setVerbosity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTransmitter
isValid, setTimeout, setVerbosity
public 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)
IHarcHardware
setDebug
in interface IHarcHardware
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(IrSignal irSignal, int count, Transmitter transmitter) throws IncompatibleArgumentException, IOException
sendIr
in interface IRawIrSender
IOException
IncompatibleArgumentException
public ModulatedIrSequence capture() throws IOException, IncompatibleArgumentException
ICapture
capture
in interface ICapture
IOException
IncompatibleArgumentException
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
public void setCaptureMaxSize(int integer)
setCaptureMaxSize
in interface IIrReader
public void setEndTimeout(int integer)
setEndTimeout
in interface IIrReader
Copyright © 2016. All rights reserved.