class Tira extends Object implements IHarcHardware, IRawIrSender
| Modifier and Type | Field and Description |
|---|---|
static String |
defaultPortName |
repeatMax| Modifier and Type | Method and Description |
|---|---|
void |
bootloaderMode() |
void |
close() |
String |
getPortName() |
Transmitter |
getTransmitter()
Returns a default Transmitter for the device.
|
String |
getVersion()
Returns the hardware version (not the version of the driver software).
|
boolean |
isValid()
Tries to identify instances that are not valid.
|
static void |
main(String[] args) |
void |
open()
Opens the device with previously set parameters.
|
void |
reset() |
String |
selftest() |
boolean |
sendCcf(String ccf,
int count,
Transmitter transmitter) |
boolean |
sendCcfRepeat(String ccf,
Transmitter transmitter)
Not supported due to hardware restrictions.
|
boolean |
sendIr(org.harctoolbox.ircore.IrSignal code,
int count,
Transmitter transmitter) |
void |
setDebug(int debug)
Sets a debug parameter.
|
void |
setLed(boolean status) |
void |
setLedMute(boolean status) |
void |
setTimeout(int timeout)
Set timeout in milliseconds.
|
void |
setVerbose(boolean verbose)
Sets a verbosity flag, causing commands to be executed verbosely.
|
public static final String defaultPortName
Tira()
throws gnu.io.NoSuchPortException,
gnu.io.PortInUseException,
gnu.io.UnsupportedCommOperationException,
IOException,
InterruptedException
gnu.io.NoSuchPortExceptiongnu.io.PortInUseExceptiongnu.io.UnsupportedCommOperationExceptionIOExceptionInterruptedExceptionTira(String portName) throws gnu.io.NoSuchPortException, gnu.io.PortInUseException, gnu.io.UnsupportedCommOperationException, IOException, InterruptedException
gnu.io.NoSuchPortExceptiongnu.io.PortInUseExceptiongnu.io.UnsupportedCommOperationExceptionIOExceptionInterruptedExceptionpublic static void main(String[] args)
args - the command line argumentspublic final void reset()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic String selftest() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void bootloaderMode()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic String getPortName()
public void setLedMute(boolean status)
throws IOException
IOExceptionpublic void setLed(boolean status)
throws IOException
IOExceptionpublic String getVersion()
IHarcHardwaregetVersion in interface IHarcHardwarepublic void setVerbose(boolean verbose)
IHarcHardwaresetVerbose in interface IHarcHardwareverbose - on or offpublic void setDebug(int debug)
IHarcHardwaresetDebug in interface IHarcHardwarepublic void setTimeout(int timeout)
IHarcHardwaresetTimeout in interface IHarcHardwaretimeout - Timeout in milliseconds.public boolean isValid()
IHarcHardwareisValid in interface IHarcHardwarepublic boolean sendIr(org.harctoolbox.ircore.IrSignal code,
int count,
Transmitter transmitter)
throws IOException
sendIr in interface IRawIrSenderIOExceptionpublic boolean sendCcf(String ccf, int count, Transmitter transmitter) throws IOException, org.harctoolbox.ircore.Pronto.NonProntoFormatException, org.harctoolbox.ircore.InvalidArgumentException
IOExceptionorg.harctoolbox.ircore.Pronto.NonProntoFormatExceptionorg.harctoolbox.ircore.InvalidArgumentExceptionpublic boolean sendCcfRepeat(String ccf, Transmitter transmitter)
ccf - transmitter - public Transmitter getTransmitter()
IRawIrSendergetTransmitter in interface IRawIrSenderpublic void open()
IHarcHardwareopen in interface IHarcHardwareCopyright © 2019. All rights reserved.