Class DecodeIRCaller

java.lang.Object
com.hifiremote.decodeir.DecodeIRCaller

public class DecodeIRCaller extends Object
The Class DecodeIRCaller.
  • Field Details

    • 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 String protocolName
      The protocol name.
    • miscMessage

      private String miscMessage
      The misc message.
    • errorMessage

      private String errorMessage
      The error message.
    • libraryName

      private static final String libraryName
      See Also:
  • Constructor Details

    • DecodeIRCaller

      public DecodeIRCaller(File folder)
      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 b
      r - 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 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 String getMiscMessage()
      Gets the misc message.
      Returns:
      the misc message
    • getErrorMessage

      public 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 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_ctx
      bursts - the bursts
      r - the r
      e - the e
      freq - the freq
      Returns:
      true, if successful
    • decode2

      private boolean decode2(int[] decoder_ctx, int[] bursts, int r, int e, int freq)