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 int
The device.private String
The error message.private int
The extra part.private int
The frequency.private int[]
The hex.private static final String
private String
The misc message.private int
The obc.private String
The protocol name.private int
The repeat part.private int
The sub device. -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new decode ir caller.DecodeIRCaller
(File folder) Instantiates a new decode ir caller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
Decode size.int
Decode start.int
Gets the device.Gets the error message.int[]
getHex()
Gets the hex.Gets the misc message.int
getOBC()
Gets the oBC.Gets the protocol name.int
Gets the sub device.Gets the version.void
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 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)
-