Class LibConfig

java.lang.Object
com.dsi.ant.message.LibConfig
All Implemented Interfaces:
android.os.Parcelable

public final class LibConfig extends Object implements android.os.Parcelable
Specifies which ExtendedData to be included in received messages.
Since:
4.0
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<LibConfig> CREATOR
      For Parcelable
      Since:
      4.0
  • Constructor Details

    • LibConfig

      public LibConfig()
      Constructs the LibConfig with all flags set to false by default.
      Since:
      4.0
    • LibConfig

      public LibConfig(boolean enableChannelIdOutput, boolean enableRssiOutput, boolean enableRxTimestampOutput)
      Constructs the LibConfig with the given values for the flags
      Parameters:
      enableChannelIdOutput - Indicates if channel ID is to be included in ExtendedData
      enableRssiOutput - Indicates if RSSI data is to be included in ExtendedData
      enableRxTimestampOutput - Indicates if timestamp is to be included in ExtendedData
      Since:
      4.0
  • Method Details

    • getEnableChannelIdOutput

      public boolean getEnableChannelIdOutput()
      Gets the flag for enabling channel ID in ExtendedData.
      Returns:
      True, if channel ID is enabled. False, otherwise.
      Since:
      4.0
    • getEnableRssiOutput

      public boolean getEnableRssiOutput()
      Gets the flag for enabling RSSI data in ExtendedData.
      Returns:
      True, if RSSI data is enabled. False, otherwise.
      Since:
      4.0
    • getEnableRxTimestampOutput

      public boolean getEnableRxTimestampOutput()
      Gets the flag for enabling timestamp in ExtendedData.
      Returns:
      True, if timestamp is enabled. False, otherwise.
      Since:
      4.0
    • setEnableChannelIdOutput

      public void setEnableChannelIdOutput(boolean on)
      Enable or disable channel ID in ExtendedData.
      Parameters:
      on - True to include channel ID. False, otherwise.
      Since:
      4.0
    • setEnableRssiOutput

      public void setEnableRssiOutput(boolean on)
      Enable or disable RSSI data in ExtendedData.
      Parameters:
      on - True to include RSSI data. False, otherwise.
      Since:
      4.0
    • setEnableRxTimestampOutput

      public void setEnableRxTimestampOutput(boolean on)
      Enable or disable timestamp in ExtendedData.
      Parameters:
      on - True to include timestamp. False, otherwise.
      Since:
      4.0
    • getFlagsByte

      public byte getFlagsByte()
      Gets the byte representing the LibConfig settings. Applications should use the methods provided in LibConfig to set/get extended data flags contained in LibConfig.
      Returns:
      The flags byte.
      Since:
      4.0
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Since:
      4.0
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      Since:
      4.0
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Since:
      4.0
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable