public final class LibConfig
extends java.lang.Object
ExtendedData to be included in received messages.| Modifier and Type | Class and Description |
|---|---|
class |
LibConfig.Flag
The flags which indicate which features to enable in a raw Lib Config byte.
|
| Modifier and Type | Field and Description |
|---|---|
static |
CREATOR
For Parcelable
|
| Constructor and Description |
|---|
LibConfig()
Constructs the LibConfig with all flags set to false by default.
|
LibConfig(boolean enableChannelIdOutput,
boolean enableRssiOutput,
boolean enableRxTimestampOutput)
Constructs the LibConfig with the given values for the flags
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object obj) |
boolean |
getEnableChannelIdOutput()
Gets the flag for enabling channel ID in
ExtendedData. |
boolean |
getEnableRssiOutput()
Gets the flag for enabling RSSI data in
ExtendedData. |
boolean |
getEnableRxTimestampOutput()
Gets the flag for enabling timestamp in
ExtendedData. |
byte |
getFlagsByte()
Gets the byte representing the LibConfig settings.
|
int |
hashCode() |
void |
setEnableChannelIdOutput(boolean on)
Enable or disable channel ID in
ExtendedData. |
void |
setEnableRssiOutput(boolean on)
Enable or disable RSSI data in
ExtendedData. |
void |
setEnableRxTimestampOutput(boolean on)
Enable or disable timestamp in
ExtendedData. |
java.lang.String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public LibConfig()
public LibConfig(boolean enableChannelIdOutput,
boolean enableRssiOutput,
boolean enableRxTimestampOutput)
enableChannelIdOutput - Indicates if channel ID is to be included in
ExtendedDataenableRssiOutput - Indicates if RSSI data is to be included in
ExtendedDataenableRxTimestampOutput - Indicates if timestamp is to be included
in ExtendedDatapublic boolean getEnableChannelIdOutput()
ExtendedData.public boolean getEnableRssiOutput()
ExtendedData.public boolean getEnableRxTimestampOutput()
ExtendedData.public void setEnableChannelIdOutput(boolean on)
ExtendedData.on - True to include channel ID. False, otherwise.public void setEnableRssiOutput(boolean on)
ExtendedData.on - True to include RSSI data. False, otherwise.public void setEnableRxTimestampOutput(boolean on)
ExtendedData.on - True to include timestamp. False, otherwise.public byte getFlagsByte()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int describeContents()
public void writeToParcel(Parcel dest,
int flags)
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.