diff options
author | Sven Gothel <[email protected]> | 2022-01-04 19:30:38 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-01-04 19:30:38 +0100 |
commit | 7c849a2f4d9ae32a208afcfd49705e92608f7e5d (patch) | |
tree | 9a84ecc1fd7950ecf2216e651704c604f3a38dc3 /java | |
parent | 1bea71f672ba091ac7ce36c9c47ec495f19006d9 (diff) |
EIRDataType[Set]: Add CONN_IVAL for Slave Connection Interval Range (Supplement, Part A, section 1.9)
Diffstat (limited to 'java')
-rw-r--r-- | java/org/direct_bt/EIRDataTypeSet.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/org/direct_bt/EIRDataTypeSet.java b/java/org/direct_bt/EIRDataTypeSet.java index a9830ffb..cae0c87c 100644 --- a/java/org/direct_bt/EIRDataTypeSet.java +++ b/java/org/direct_bt/EIRDataTypeSet.java @@ -54,6 +54,7 @@ public class EIRDataTypeSet { HASH (1 << 12), RANDOMIZER (1 << 13), DEVICE_ID (1 << 14), + CONN_IVAL (1 << 15), SERVICE_UUID (1 << 30); DataType(final int v) { value = v; } @@ -65,6 +66,9 @@ public class EIRDataTypeSet { public EIRDataTypeSet(final int v) { mask = v; } + public EIRDataTypeSet() { + mask = 0; + } public boolean isSet(final DataType bit) { return 0 != ( mask & bit.value ); } public void set(final DataType bit) { mask = mask | bit.value; } |