public interface IMode2 extends Closeable
Modifier and Type | Method and Description |
---|---|
boolean |
canGetRecResolution() |
boolean |
canRec() |
boolean |
canSend() |
boolean |
canSetSendCarrier() |
boolean |
canSetTransmitterMask() |
int |
getNumberTransmitters()
Returns the number of transmitters, as reported from the device.
|
int |
getRecResolution() |
String |
getVersion()
Returns version of underlying C++ driver.
|
boolean |
isValid()
Returns true if the hardware is open and ready.
|
void |
open()
Opens the hardware using the previously given device name.
|
int[] |
receive()
Reads an IR signal as a sequence of durations.
|
void |
send(int[] data)
Sends the provided data as a sequence of durations.
|
void |
send(int[] data,
int frequency)
Sends the provided data as a sequence of durations.
|
void |
setEndingTimeout(int timeout) |
void |
setMaxCaptureLength(int maxCaptureLength) |
void |
setSendCarrier(int frequency) |
void |
setTransmitterMask(int mask) |
String |
toString() |
boolean canGetRecResolution()
boolean canSetSendCarrier()
int getRecResolution() throws NotSupportedException
NotSupportedException
void open() throws LircDeviceException
LircDeviceException
- Error occured.int[] receive() throws NotSupportedException
NotSupportedException
- if the hardwared does not support receiving.void send(int[] data) throws NotSupportedException
data
- interger array of durations.NotSupportedException
- if the hardware does not support sending.void send(int[] data, int frequency) throws NotSupportedException
data
- interger array of durations.frequency
- Frequency in Hz.NotSupportedException
- if the hardware does not support sending,
or setting of the modulation frequency.void setSendCarrier(int frequency) throws NotSupportedException
NotSupportedException
boolean canRec()
boolean canSend()
boolean canSetTransmitterMask()
int getNumberTransmitters()
String getVersion()
boolean isValid()
void setTransmitterMask(int mask) throws NotSupportedException, NonExistentTransmitterException, LircDeviceException
void setMaxCaptureLength(int maxCaptureLength)
void setEndingTimeout(int timeout)
Copyright © 2019. All rights reserved.