Package com.hifiremote.decodeir
Class DecodeIRCaller
- java.lang.Object
-
- com.hifiremote.decodeir.DecodeIRCaller
-
public class DecodeIRCaller extends java.lang.Object
The Class DecodeIRCaller.
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
bursts
The bursts.private int[]
decoder_ctx
The decoder_ctx.private int
device
The device.private java.lang.String
errorMessage
The error message.private int
extraPart
The extra part.private int
frequency
The frequency.private int[]
hex
The hex.private static java.lang.String
libraryName
private java.lang.String
miscMessage
The misc message.private int
obc
The obc.private java.lang.String
protocolName
The protocol name.private int
repeatPart
The repeat part.private int
subDevice
The sub device.
-
Constructor Summary
Constructors Constructor Description DecodeIRCaller()
Instantiates a new decode ir caller.DecodeIRCaller(java.io.File folder)
Instantiates a new decode ir caller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
decode()
Decode.private boolean
decode(int[] decoder_ctx, int[] bursts, int r, int freq)
Decode.private boolean
decode2(int[] decoder_ctx, int[] bursts, int r, int e, int freq)
int
decodeSize()
Decode size.int
decodeStart()
Decode start.int
getDevice()
Gets the device.java.lang.String
getErrorMessage()
Gets the error message.int[]
getHex()
Gets the hex.java.lang.String
getMiscMessage()
Gets the misc message.int
getOBC()
Gets the oBC.java.lang.String
getProtocolName()
Gets the protocol name.int
getSubDevice()
Gets the sub device.java.lang.String
getVersion()
Gets the version.void
initDecoder()
Inits the decoder.void
setBursts(int[] b, int r)
Sets the bursts.void
setBursts(int[] b, int r, int e)
void
setFrequency(int f)
Sets the frequency.
-
-
-
Field Detail
-
bursts
private int[] bursts
The bursts.
-
repeatPart
private int repeatPart
The repeat part.
-
extraPart
private int extraPart
The extra part.
-
frequency
private int frequency
The frequency.
-
decoder_ctx
private int[] decoder_ctx
The decoder_ctx.
-
device
private int device
The device.
-
subDevice
private int subDevice
The sub device.
-
obc
private int obc
The obc.
-
hex
private int[] hex
The hex.
-
protocolName
private java.lang.String protocolName
The protocol name.
-
miscMessage
private java.lang.String miscMessage
The misc message.
-
errorMessage
private java.lang.String errorMessage
The error message.
-
libraryName
private static final java.lang.String libraryName
- See Also:
- Constant Field Values
-
-
Method Detail
-
setBursts
public void setBursts(int[] b, int r)
Sets the bursts.- Parameters:
b
- the br
- the r
-
setBursts
public void setBursts(int[] b, int r, int e)
-
setFrequency
public void setFrequency(int f)
Sets the frequency.- Parameters:
f
- the new frequency
-
initDecoder
public void initDecoder()
Inits the decoder.
-
decode
public boolean decode()
Decode.- Returns:
- true, if successful
-
getProtocolName
public java.lang.String getProtocolName()
Gets the protocol name.- Returns:
- the protocol name
-
getDevice
public int getDevice()
Gets the device.- Returns:
- the device
-
getSubDevice
public int getSubDevice()
Gets the sub device.- Returns:
- the sub device
-
getOBC
public int getOBC()
Gets the oBC.- Returns:
- the oBC
-
getHex
public int[] getHex()
Gets the hex.- Returns:
- the hex
-
getMiscMessage
public java.lang.String getMiscMessage()
Gets the misc message.- Returns:
- the misc message
-
getErrorMessage
public java.lang.String getErrorMessage()
Gets the error message.- Returns:
- the error message
-
decodeStart
public int decodeStart()
Decode start.- Returns:
- the int
-
decodeSize
public int decodeSize()
Decode size.- Returns:
- the int
-
getVersion
public java.lang.String getVersion()
Gets the version.- Returns:
- the version
-
decode
private boolean decode(int[] decoder_ctx, int[] bursts, int r, int freq)
Decode.- Parameters:
decoder_ctx
- the decoder_ctxbursts
- the burstsr
- the re
- the efreq
- the freq- Returns:
- true, if successful
-
decode2
private boolean decode2(int[] decoder_ctx, int[] bursts, int r, int e, int freq)
-
-