Package com.hifiremote.decodeir
Class DecodeIRCaller
- java.lang.Object
-
- com.hifiremote.decodeir.DecodeIRCaller
-
public class DecodeIRCaller extends java.lang.ObjectThe Class DecodeIRCaller.
-
-
Field Summary
Fields Modifier and Type Field Description private int[]burstsThe bursts.private int[]decoder_ctxThe decoder_ctx.private intdeviceThe device.private java.lang.StringerrorMessageThe error message.private intextraPartThe extra part.private intfrequencyThe frequency.private int[]hexThe hex.private static java.lang.StringlibraryNameprivate java.lang.StringmiscMessageThe misc message.private intobcThe obc.private java.lang.StringprotocolNameThe protocol name.private intrepeatPartThe repeat part.private intsubDeviceThe 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 booleandecode()Decode.private booleandecode(int[] decoder_ctx, int[] bursts, int r, int freq)Decode.private booleandecode2(int[] decoder_ctx, int[] bursts, int r, int e, int freq)intdecodeSize()Decode size.intdecodeStart()Decode start.intgetDevice()Gets the device.java.lang.StringgetErrorMessage()Gets the error message.int[]getHex()Gets the hex.java.lang.StringgetMiscMessage()Gets the misc message.intgetOBC()Gets the oBC.java.lang.StringgetProtocolName()Gets the protocol name.intgetSubDevice()Gets the sub device.java.lang.StringgetVersion()Gets the version.voidinitDecoder()Inits the decoder.voidsetBursts(int[] b, int r)Sets the bursts.voidsetBursts(int[] b, int r, int e)voidsetFrequency(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)
-
-