Package com.hifiremote.decodeir
Class DecodeIRCaller
java.lang.Object
com.hifiremote.decodeir.DecodeIRCaller
The Class DecodeIRCaller.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]The bursts.private int[]The decoder_ctx.private intThe device.private StringThe error message.private intThe extra part.private intThe frequency.private int[]The hex.private static final Stringprivate StringThe misc message.private intThe obc.private StringThe protocol name.private intThe repeat part.private intThe sub device. -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new decode ir caller.DecodeIRCaller(File folder) Instantiates a new decode ir caller. -
Method Summary
Modifier and TypeMethodDescriptionbooleandecode()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) intDecode size.intDecode start.intGets the device.Gets the error message.int[]getHex()Gets the hex.Gets the misc message.intgetOBC()Gets the oBC.Gets the protocol name.intGets the sub device.Gets the version.voidInits the decoder.voidsetBursts(int[] b, int r) Sets the bursts.voidsetBursts(int[] b, int r, int e) voidsetFrequency(int f) Sets the frequency.
-
Field Details
-
bursts
private int[] burstsThe bursts. -
repeatPart
private int repeatPartThe repeat part. -
extraPart
private int extraPartThe extra part. -
frequency
private int frequencyThe frequency. -
decoder_ctx
private int[] decoder_ctxThe decoder_ctx. -
device
private int deviceThe device. -
subDevice
private int subDeviceThe sub device. -
obc
private int obcThe obc. -
hex
private int[] hexThe hex. -
protocolName
The protocol name. -
miscMessage
The misc message. -
errorMessage
The error message. -
libraryName
- See Also:
-
-
Constructor Details
-
DecodeIRCaller
Instantiates a new decode ir caller.- Parameters:
folder- the folder
-
DecodeIRCaller
public DecodeIRCaller()Instantiates a new decode ir caller.
-
-
Method Details
-
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
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
Gets the misc message.- Returns:
- the misc message
-
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
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)
-