@rickosborne/bluetools 2025.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2624 -0
- package/assigned.cjs +577 -0
- package/assigned.cjs.map +6 -0
- package/assigned.d.ts +552 -0
- package/assigned.d.ts.map +1 -0
- package/assigned.mjs +557 -0
- package/assigned.mjs.map +6 -0
- package/battery-level.cjs +50 -0
- package/battery-level.cjs.map +6 -0
- package/battery-level.d.ts +25 -0
- package/battery-level.d.ts.map +1 -0
- package/battery-level.mjs +31 -0
- package/battery-level.mjs.map +6 -0
- package/cross-trainer-data.cjs +188 -0
- package/cross-trainer-data.cjs.map +6 -0
- package/cross-trainer-data.d.ts +192 -0
- package/cross-trainer-data.d.ts.map +1 -0
- package/cross-trainer-data.mjs +169 -0
- package/cross-trainer-data.mjs.map +6 -0
- package/csc-feature.cjs +59 -0
- package/csc-feature.cjs.map +6 -0
- package/csc-feature.d.ts +55 -0
- package/csc-feature.d.ts.map +1 -0
- package/csc-feature.mjs +40 -0
- package/csc-feature.mjs.map +6 -0
- package/csc-measurement.cjs +76 -0
- package/csc-measurement.cjs.map +6 -0
- package/csc-measurement.d.ts +57 -0
- package/csc-measurement.d.ts.map +1 -0
- package/csc-measurement.mjs +57 -0
- package/csc-measurement.mjs.map +6 -0
- package/current-time.cjs +66 -0
- package/current-time.cjs.map +6 -0
- package/current-time.d.ts +65 -0
- package/current-time.d.ts.map +1 -0
- package/current-time.mjs +47 -0
- package/current-time.mjs.map +6 -0
- package/data-view-from-hex.cjs +34 -0
- package/data-view-from-hex.cjs.map +6 -0
- package/data-view-from-hex.d.ts +6 -0
- package/data-view-from-hex.d.ts.map +1 -0
- package/data-view-from-hex.mjs +15 -0
- package/data-view-from-hex.mjs.map +6 -0
- package/data-view-reader.cjs +115 -0
- package/data-view-reader.cjs.map +6 -0
- package/data-view-reader.d.ts +21 -0
- package/data-view-reader.d.ts.map +1 -0
- package/data-view-reader.mjs +96 -0
- package/data-view-reader.mjs.map +6 -0
- package/date-time.cjs +65 -0
- package/date-time.cjs.map +6 -0
- package/date-time.d.ts +89 -0
- package/date-time.d.ts.map +1 -0
- package/date-time.mjs +46 -0
- package/date-time.mjs.map +6 -0
- package/day-date-time.cjs +55 -0
- package/day-date-time.cjs.map +6 -0
- package/day-date-time.d.ts +21 -0
- package/day-date-time.d.ts.map +1 -0
- package/day-date-time.mjs +36 -0
- package/day-date-time.mjs.map +6 -0
- package/day-of-week.cjs +50 -0
- package/day-of-week.cjs.map +6 -0
- package/day-of-week.d.ts +33 -0
- package/day-of-week.d.ts.map +1 -0
- package/day-of-week.mjs +31 -0
- package/day-of-week.mjs.map +6 -0
- package/dst-offset.cjs +50 -0
- package/dst-offset.cjs.map +6 -0
- package/dst-offset.d.ts +30 -0
- package/dst-offset.d.ts.map +1 -0
- package/dst-offset.mjs +31 -0
- package/dst-offset.mjs.map +6 -0
- package/elevation.cjs +50 -0
- package/elevation.cjs.map +6 -0
- package/elevation.d.ts +22 -0
- package/elevation.d.ts.map +1 -0
- package/elevation.mjs +31 -0
- package/elevation.mjs.map +6 -0
- package/exact-time-256.cjs +54 -0
- package/exact-time-256.cjs.map +6 -0
- package/exact-time-256.d.ts +27 -0
- package/exact-time-256.d.ts.map +1 -0
- package/exact-time-256.mjs +35 -0
- package/exact-time-256.mjs.map +6 -0
- package/firmware-revision-string.cjs +50 -0
- package/firmware-revision-string.cjs.map +6 -0
- package/firmware-revision-string.d.ts +19 -0
- package/firmware-revision-string.d.ts.map +1 -0
- package/firmware-revision-string.mjs +31 -0
- package/firmware-revision-string.mjs.map +6 -0
- package/five-zone-heart-rate-limits.cjs +59 -0
- package/five-zone-heart-rate-limits.cjs.map +6 -0
- package/five-zone-heart-rate-limits.d.ts +47 -0
- package/five-zone-heart-rate-limits.d.ts.map +1 -0
- package/five-zone-heart-rate-limits.mjs +40 -0
- package/five-zone-heart-rate-limits.mjs.map +6 -0
- package/gatt-characteristic-presentation-format.cjs +62 -0
- package/gatt-characteristic-presentation-format.cjs.map +6 -0
- package/gatt-characteristic-presentation-format.d.ts +91 -0
- package/gatt-characteristic-presentation-format.d.ts.map +1 -0
- package/gatt-characteristic-presentation-format.mjs +43 -0
- package/gatt-characteristic-presentation-format.mjs.map +6 -0
- package/gatt.cjs +57 -0
- package/gatt.cjs.map +6 -0
- package/gatt.d.ts +4 -0
- package/gatt.d.ts.map +1 -0
- package/gatt.mjs +38 -0
- package/gatt.mjs.map +6 -0
- package/glucose-feature.cjs +83 -0
- package/glucose-feature.cjs.map +6 -0
- package/glucose-feature.d.ts +127 -0
- package/glucose-feature.d.ts.map +1 -0
- package/glucose-feature.mjs +64 -0
- package/glucose-feature.mjs.map +6 -0
- package/glucose-measurement-context.cjs +133 -0
- package/glucose-measurement-context.cjs.map +6 -0
- package/glucose-measurement-context.d.ts +183 -0
- package/glucose-measurement-context.d.ts.map +1 -0
- package/glucose-measurement-context.mjs +114 -0
- package/glucose-measurement-context.mjs.map +6 -0
- package/glucose-measurement.cjs +136 -0
- package/glucose-measurement.cjs.map +6 -0
- package/glucose-measurement.d.ts +230 -0
- package/glucose-measurement.d.ts.map +1 -0
- package/glucose-measurement.mjs +117 -0
- package/glucose-measurement.mjs.map +6 -0
- package/hardware-revision-string.cjs +50 -0
- package/hardware-revision-string.cjs.map +6 -0
- package/hardware-revision-string.d.ts +19 -0
- package/hardware-revision-string.d.ts.map +1 -0
- package/hardware-revision-string.mjs +31 -0
- package/hardware-revision-string.mjs.map +6 -0
- package/heart-rate-control-point.cjs +50 -0
- package/heart-rate-control-point.cjs.map +6 -0
- package/heart-rate-control-point.d.ts +26 -0
- package/heart-rate-control-point.d.ts.map +1 -0
- package/heart-rate-control-point.mjs +31 -0
- package/heart-rate-control-point.mjs.map +6 -0
- package/heart-rate-max.cjs +50 -0
- package/heart-rate-max.cjs.map +6 -0
- package/heart-rate-max.d.ts +23 -0
- package/heart-rate-max.d.ts.map +1 -0
- package/heart-rate-max.mjs +31 -0
- package/heart-rate-max.mjs.map +6 -0
- package/heart-rate-measurement.cjs +79 -0
- package/heart-rate-measurement.cjs.map +6 -0
- package/heart-rate-measurement.d.ts +65 -0
- package/heart-rate-measurement.d.ts.map +1 -0
- package/heart-rate-measurement.mjs +60 -0
- package/heart-rate-measurement.mjs.map +6 -0
- package/heart-rate.cjs +58 -0
- package/heart-rate.cjs.map +6 -0
- package/heart-rate.d.ts +7 -0
- package/heart-rate.d.ts.map +1 -0
- package/heart-rate.mjs +39 -0
- package/heart-rate.mjs.map +6 -0
- package/index.cjs +84 -0
- package/index.cjs.map +6 -0
- package/index.d.ts +67 -0
- package/index.d.ts.map +1 -0
- package/index.mjs +67 -0
- package/index.mjs.map +6 -0
- package/indoor-bike-data.cjs +153 -0
- package/indoor-bike-data.cjs.map +6 -0
- package/indoor-bike-data.d.ts +146 -0
- package/indoor-bike-data.d.ts.map +1 -0
- package/indoor-bike-data.mjs +134 -0
- package/indoor-bike-data.mjs.map +6 -0
- package/language.cjs +50 -0
- package/language.cjs.map +6 -0
- package/language.d.ts +22 -0
- package/language.d.ts.map +1 -0
- package/language.mjs +31 -0
- package/language.mjs.map +6 -0
- package/latitude.cjs +50 -0
- package/latitude.cjs.map +6 -0
- package/latitude.d.ts +19 -0
- package/latitude.d.ts.map +1 -0
- package/latitude.mjs +31 -0
- package/latitude.mjs.map +6 -0
- package/local-time-information.cjs +55 -0
- package/local-time-information.cjs.map +6 -0
- package/local-time-information.d.ts +21 -0
- package/local-time-information.d.ts.map +1 -0
- package/local-time-information.mjs +36 -0
- package/local-time-information.mjs.map +6 -0
- package/location-and-speed.cjs +114 -0
- package/location-and-speed.cjs.map +6 -0
- package/location-and-speed.d.ts +182 -0
- package/location-and-speed.d.ts.map +1 -0
- package/location-and-speed.mjs +95 -0
- package/location-and-speed.mjs.map +6 -0
- package/location-name.cjs +50 -0
- package/location-name.cjs.map +6 -0
- package/location-name.d.ts +19 -0
- package/location-name.d.ts.map +1 -0
- package/location-name.mjs +31 -0
- package/location-name.mjs.map +6 -0
- package/longitude.cjs +50 -0
- package/longitude.cjs.map +6 -0
- package/longitude.d.ts +19 -0
- package/longitude.d.ts.map +1 -0
- package/longitude.mjs +31 -0
- package/longitude.mjs.map +6 -0
- package/manufacturer-name-string.cjs +50 -0
- package/manufacturer-name-string.cjs.map +6 -0
- package/manufacturer-name-string.d.ts +19 -0
- package/manufacturer-name-string.d.ts.map +1 -0
- package/manufacturer-name-string.mjs +31 -0
- package/manufacturer-name-string.mjs.map +6 -0
- package/maximum-recommended-heart-rate.cjs +50 -0
- package/maximum-recommended-heart-rate.cjs.map +6 -0
- package/maximum-recommended-heart-rate.d.ts +23 -0
- package/maximum-recommended-heart-rate.d.ts.map +1 -0
- package/maximum-recommended-heart-rate.mjs +31 -0
- package/maximum-recommended-heart-rate.mjs.map +6 -0
- package/measurement-interval.cjs +50 -0
- package/measurement-interval.cjs.map +6 -0
- package/measurement-interval.d.ts +27 -0
- package/measurement-interval.d.ts.map +1 -0
- package/measurement-interval.mjs +31 -0
- package/measurement-interval.mjs.map +6 -0
- package/model-number-string.cjs +50 -0
- package/model-number-string.cjs.map +6 -0
- package/model-number-string.d.ts +19 -0
- package/model-number-string.d.ts.map +1 -0
- package/model-number-string.mjs +31 -0
- package/model-number-string.mjs.map +6 -0
- package/navigation.cjs +90 -0
- package/navigation.cjs.map +6 -0
- package/navigation.d.ts +134 -0
- package/navigation.d.ts.map +1 -0
- package/navigation.mjs +71 -0
- package/navigation.mjs.map +6 -0
- package/number-of-digitals.cjs +50 -0
- package/number-of-digitals.cjs.map +6 -0
- package/number-of-digitals.d.ts +19 -0
- package/number-of-digitals.d.ts.map +1 -0
- package/number-of-digitals.mjs +31 -0
- package/number-of-digitals.mjs.map +6 -0
- package/package.json +456 -0
- package/plx-continuous-measurement.cjs +184 -0
- package/plx-continuous-measurement.cjs.map +6 -0
- package/plx-continuous-measurement.d.ts +352 -0
- package/plx-continuous-measurement.d.ts.map +1 -0
- package/plx-continuous-measurement.mjs +165 -0
- package/plx-continuous-measurement.mjs.map +6 -0
- package/plx-features.cjs +163 -0
- package/plx-features.cjs.map +6 -0
- package/plx-features.d.ts +354 -0
- package/plx-features.d.ts.map +1 -0
- package/plx-features.mjs +144 -0
- package/plx-features.mjs.map +6 -0
- package/plx-spot-check-measurement.cjs +169 -0
- package/plx-spot-check-measurement.cjs.map +6 -0
- package/plx-spot-check-measurement.d.ts +334 -0
- package/plx-spot-check-measurement.d.ts.map +1 -0
- package/plx-spot-check-measurement.mjs +150 -0
- package/plx-spot-check-measurement.mjs.map +6 -0
- package/reference-time-information.cjs +61 -0
- package/reference-time-information.cjs.map +6 -0
- package/reference-time-information.d.ts +38 -0
- package/reference-time-information.d.ts.map +1 -0
- package/reference-time-information.mjs +42 -0
- package/reference-time-information.mjs.map +6 -0
- package/resting-heart-rate.cjs +50 -0
- package/resting-heart-rate.cjs.map +6 -0
- package/resting-heart-rate.d.ts +23 -0
- package/resting-heart-rate.d.ts.map +1 -0
- package/resting-heart-rate.mjs +31 -0
- package/resting-heart-rate.mjs.map +6 -0
- package/rsc-feature.cjs +65 -0
- package/rsc-feature.cjs.map +6 -0
- package/rsc-feature.d.ts +73 -0
- package/rsc-feature.d.ts.map +1 -0
- package/rsc-feature.mjs +46 -0
- package/rsc-feature.mjs.map +6 -0
- package/rsc-measurement.cjs +73 -0
- package/rsc-measurement.cjs.map +6 -0
- package/rsc-measurement.d.ts +70 -0
- package/rsc-measurement.d.ts.map +1 -0
- package/rsc-measurement.mjs +54 -0
- package/rsc-measurement.mjs.map +6 -0
- package/scripts/fetch-and-cache-text.d.ts +2 -0
- package/scripts/fetch-and-cache-text.d.ts.map +1 -0
- package/scripts/from-xml.d.ts +2 -0
- package/scripts/from-xml.d.ts.map +1 -0
- package/scripts/gatt-assigned.d.ts +2 -0
- package/scripts/gatt-assigned.d.ts.map +1 -0
- package/sensor-location.cjs +50 -0
- package/sensor-location.cjs.map +6 -0
- package/sensor-location.d.ts +42 -0
- package/sensor-location.d.ts.map +1 -0
- package/sensor-location.mjs +31 -0
- package/sensor-location.mjs.map +6 -0
- package/serial-number-string.cjs +50 -0
- package/serial-number-string.cjs.map +6 -0
- package/serial-number-string.d.ts +19 -0
- package/serial-number-string.d.ts.map +1 -0
- package/serial-number-string.mjs +31 -0
- package/serial-number-string.mjs.map +6 -0
- package/software-revision-string.cjs +50 -0
- package/software-revision-string.cjs.map +6 -0
- package/software-revision-string.d.ts +19 -0
- package/software-revision-string.d.ts.map +1 -0
- package/software-revision-string.mjs +31 -0
- package/software-revision-string.mjs.map +6 -0
- package/supported-heart-rate-range.cjs +56 -0
- package/supported-heart-rate-range.cjs.map +6 -0
- package/supported-heart-rate-range.d.ts +37 -0
- package/supported-heart-rate-range.d.ts.map +1 -0
- package/supported-heart-rate-range.mjs +37 -0
- package/supported-heart-rate-range.mjs.map +6 -0
- package/supported-inclination-range.cjs +56 -0
- package/supported-inclination-range.cjs.map +6 -0
- package/supported-inclination-range.d.ts +37 -0
- package/supported-inclination-range.d.ts.map +1 -0
- package/supported-inclination-range.mjs +37 -0
- package/supported-inclination-range.mjs.map +6 -0
- package/supported-speed-range.cjs +56 -0
- package/supported-speed-range.cjs.map +6 -0
- package/supported-speed-range.d.ts +37 -0
- package/supported-speed-range.d.ts.map +1 -0
- package/supported-speed-range.mjs +37 -0
- package/supported-speed-range.mjs.map +6 -0
- package/system-id.cjs +53 -0
- package/system-id.cjs.map +6 -0
- package/system-id.d.ts +34 -0
- package/system-id.d.ts.map +1 -0
- package/system-id.mjs +34 -0
- package/system-id.mjs.map +6 -0
- package/temperature-measurement.cjs +79 -0
- package/temperature-measurement.cjs.map +6 -0
- package/temperature-measurement.d.ts +61 -0
- package/temperature-measurement.d.ts.map +1 -0
- package/temperature-measurement.mjs +60 -0
- package/temperature-measurement.mjs.map +6 -0
- package/temperature-type.cjs +50 -0
- package/temperature-type.cjs.map +6 -0
- package/temperature-type.d.ts +37 -0
- package/temperature-type.d.ts.map +1 -0
- package/temperature-type.mjs +31 -0
- package/temperature-type.mjs.map +6 -0
- package/temperature.cjs +50 -0
- package/temperature.cjs.map +6 -0
- package/temperature.d.ts +22 -0
- package/temperature.d.ts.map +1 -0
- package/temperature.mjs +31 -0
- package/temperature.mjs.map +6 -0
- package/three-zone-heart-rate-limits.cjs +53 -0
- package/three-zone-heart-rate-limits.cjs.map +6 -0
- package/three-zone-heart-rate-limits.d.ts +33 -0
- package/three-zone-heart-rate-limits.d.ts.map +1 -0
- package/three-zone-heart-rate-limits.mjs +34 -0
- package/three-zone-heart-rate-limits.mjs.map +6 -0
- package/time-accuracy.cjs +50 -0
- package/time-accuracy.cjs.map +6 -0
- package/time-accuracy.d.ts +23 -0
- package/time-accuracy.d.ts.map +1 -0
- package/time-accuracy.mjs +31 -0
- package/time-accuracy.mjs.map +6 -0
- package/time-source.cjs +50 -0
- package/time-source.cjs.map +6 -0
- package/time-source.d.ts +33 -0
- package/time-source.d.ts.map +1 -0
- package/time-source.mjs +31 -0
- package/time-source.mjs.map +6 -0
- package/time-update-control-point.cjs +50 -0
- package/time-update-control-point.cjs.map +6 -0
- package/time-update-control-point.d.ts +29 -0
- package/time-update-control-point.d.ts.map +1 -0
- package/time-update-control-point.mjs +31 -0
- package/time-update-control-point.mjs.map +6 -0
- package/time-update-state.cjs +53 -0
- package/time-update-state.cjs.map +6 -0
- package/time-update-state.d.ts +45 -0
- package/time-update-state.d.ts.map +1 -0
- package/time-update-state.mjs +34 -0
- package/time-update-state.mjs.map +6 -0
- package/time-with-dst.cjs +55 -0
- package/time-with-dst.cjs.map +6 -0
- package/time-with-dst.d.ts +21 -0
- package/time-with-dst.d.ts.map +1 -0
- package/time-with-dst.mjs +36 -0
- package/time-with-dst.mjs.map +6 -0
- package/time-zone.cjs +50 -0
- package/time-zone.cjs.map +6 -0
- package/time-zone.d.ts +23 -0
- package/time-zone.d.ts.map +1 -0
- package/time-zone.mjs +31 -0
- package/time-zone.mjs.map +6 -0
- package/treadmill-data.cjs +171 -0
- package/treadmill-data.cjs.map +6 -0
- package/treadmill-data.d.ts +167 -0
- package/treadmill-data.d.ts.map +1 -0
- package/treadmill-data.mjs +152 -0
- package/treadmill-data.mjs.map +6 -0
- package/two-zone-heart-rate-limit.cjs +50 -0
- package/two-zone-heart-rate-limit.cjs.map +6 -0
- package/two-zone-heart-rate-limit.d.ts +23 -0
- package/two-zone-heart-rate-limit.d.ts.map +1 -0
- package/two-zone-heart-rate-limit.mjs +31 -0
- package/two-zone-heart-rate-limit.mjs.map +6 -0
- package/vo2-max.cjs +50 -0
- package/vo2-max.cjs.map +6 -0
- package/vo2-max.d.ts +22 -0
- package/vo2-max.d.ts.map +1 -0
- package/vo2-max.mjs +31 -0
- package/vo2-max.mjs.map +6 -0
package/plx-features.cjs
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
|
+
var plx_features_exports = {};
|
|
23
|
+
__export(plx_features_exports, {
|
|
24
|
+
PlxFeaturesImpl: () => PlxFeaturesImpl,
|
|
25
|
+
plxFeaturesFromDataView: () => plxFeaturesFromDataView
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(plx_features_exports);
|
|
28
|
+
var import_data_view_reader = require("./data-view-reader.cjs");
|
|
29
|
+
const _PlxFeaturesImpl = class _PlxFeaturesImpl {
|
|
30
|
+
/** Parse from a DataView into {@link PlxFeatures}. */
|
|
31
|
+
static fromDataView(dataView, indexStart) {
|
|
32
|
+
return new _PlxFeaturesImpl(plxFeaturesFromDataView(dataView, indexStart));
|
|
33
|
+
}
|
|
34
|
+
calibrationOngoingBitSupported;
|
|
35
|
+
dataForDemonstrationBitSupported;
|
|
36
|
+
dataForTestingBitSupported;
|
|
37
|
+
dataFromMeasurementStorageBitSupported;
|
|
38
|
+
deviceAndSensorStatusSupport;
|
|
39
|
+
earlyEstimatedDataBitSupported;
|
|
40
|
+
equipmentMalfunctionDetectedBitSupported;
|
|
41
|
+
erraticSignalDetectedBitSupported;
|
|
42
|
+
extendedDisplayUpdateOngoingBitSupported;
|
|
43
|
+
fullyQualifiedDataBitSupported;
|
|
44
|
+
inadequiteSignalDetectedBitSupported;
|
|
45
|
+
invalidMeasurementDetectedBitSupported;
|
|
46
|
+
lowPerfusionDetectedBitSupported;
|
|
47
|
+
measurementOngoingBitSupported;
|
|
48
|
+
measurementStatusSupport;
|
|
49
|
+
measurementStorageForSpotCheckMeasurementsIsSupported;
|
|
50
|
+
measurementUnavailableBitSupported;
|
|
51
|
+
multipleBondsSupported;
|
|
52
|
+
nonpulsatileSignalDetectedBitSupported;
|
|
53
|
+
poorSignalDetectedBitSupported;
|
|
54
|
+
pulseAmplitudeIndexFieldIsSupported;
|
|
55
|
+
questionableMeasurementDetectedBitSupported;
|
|
56
|
+
questionablePulseDetectedBitSupported;
|
|
57
|
+
sensorDisconnectedBitSupported;
|
|
58
|
+
sensorDisplacedBitSupported;
|
|
59
|
+
sensorInterfaceDetectedBitSupported;
|
|
60
|
+
sensorMalfunctioningBitSupported;
|
|
61
|
+
sensorUnconnectedToUserBitSupported;
|
|
62
|
+
signalAnalysisOngoingBitSupported;
|
|
63
|
+
signalProcessingIrregularityDetectedBitSupported;
|
|
64
|
+
spo2prFastMetricIsSupported;
|
|
65
|
+
spo2prSlowMetricIsSupported;
|
|
66
|
+
supportedFeatures;
|
|
67
|
+
timestampForSpotCheckMeasurementsIsSupported;
|
|
68
|
+
unknownSensorConnectedBitSupported;
|
|
69
|
+
validatedDataBitSupported;
|
|
70
|
+
constructor(plxFeatures) {
|
|
71
|
+
this.calibrationOngoingBitSupported = plxFeatures.calibrationOngoingBitSupported;
|
|
72
|
+
this.dataForDemonstrationBitSupported = plxFeatures.dataForDemonstrationBitSupported;
|
|
73
|
+
this.dataForTestingBitSupported = plxFeatures.dataForTestingBitSupported;
|
|
74
|
+
this.dataFromMeasurementStorageBitSupported = plxFeatures.dataFromMeasurementStorageBitSupported;
|
|
75
|
+
this.deviceAndSensorStatusSupport = plxFeatures.deviceAndSensorStatusSupport;
|
|
76
|
+
this.earlyEstimatedDataBitSupported = plxFeatures.earlyEstimatedDataBitSupported;
|
|
77
|
+
this.equipmentMalfunctionDetectedBitSupported = plxFeatures.equipmentMalfunctionDetectedBitSupported;
|
|
78
|
+
this.erraticSignalDetectedBitSupported = plxFeatures.erraticSignalDetectedBitSupported;
|
|
79
|
+
this.extendedDisplayUpdateOngoingBitSupported = plxFeatures.extendedDisplayUpdateOngoingBitSupported;
|
|
80
|
+
this.fullyQualifiedDataBitSupported = plxFeatures.fullyQualifiedDataBitSupported;
|
|
81
|
+
this.inadequiteSignalDetectedBitSupported = plxFeatures.inadequiteSignalDetectedBitSupported;
|
|
82
|
+
this.invalidMeasurementDetectedBitSupported = plxFeatures.invalidMeasurementDetectedBitSupported;
|
|
83
|
+
this.lowPerfusionDetectedBitSupported = plxFeatures.lowPerfusionDetectedBitSupported;
|
|
84
|
+
this.measurementOngoingBitSupported = plxFeatures.measurementOngoingBitSupported;
|
|
85
|
+
this.measurementStatusSupport = plxFeatures.measurementStatusSupport;
|
|
86
|
+
this.measurementStorageForSpotCheckMeasurementsIsSupported = plxFeatures.measurementStorageForSpotCheckMeasurementsIsSupported;
|
|
87
|
+
this.measurementUnavailableBitSupported = plxFeatures.measurementUnavailableBitSupported;
|
|
88
|
+
this.multipleBondsSupported = plxFeatures.multipleBondsSupported;
|
|
89
|
+
this.nonpulsatileSignalDetectedBitSupported = plxFeatures.nonpulsatileSignalDetectedBitSupported;
|
|
90
|
+
this.poorSignalDetectedBitSupported = plxFeatures.poorSignalDetectedBitSupported;
|
|
91
|
+
this.pulseAmplitudeIndexFieldIsSupported = plxFeatures.pulseAmplitudeIndexFieldIsSupported;
|
|
92
|
+
this.questionableMeasurementDetectedBitSupported = plxFeatures.questionableMeasurementDetectedBitSupported;
|
|
93
|
+
this.questionablePulseDetectedBitSupported = plxFeatures.questionablePulseDetectedBitSupported;
|
|
94
|
+
this.sensorDisconnectedBitSupported = plxFeatures.sensorDisconnectedBitSupported;
|
|
95
|
+
this.sensorDisplacedBitSupported = plxFeatures.sensorDisplacedBitSupported;
|
|
96
|
+
this.sensorInterfaceDetectedBitSupported = plxFeatures.sensorInterfaceDetectedBitSupported;
|
|
97
|
+
this.sensorMalfunctioningBitSupported = plxFeatures.sensorMalfunctioningBitSupported;
|
|
98
|
+
this.sensorUnconnectedToUserBitSupported = plxFeatures.sensorUnconnectedToUserBitSupported;
|
|
99
|
+
this.signalAnalysisOngoingBitSupported = plxFeatures.signalAnalysisOngoingBitSupported;
|
|
100
|
+
this.signalProcessingIrregularityDetectedBitSupported = plxFeatures.signalProcessingIrregularityDetectedBitSupported;
|
|
101
|
+
this.spo2prFastMetricIsSupported = plxFeatures.spo2prFastMetricIsSupported;
|
|
102
|
+
this.spo2prSlowMetricIsSupported = plxFeatures.spo2prSlowMetricIsSupported;
|
|
103
|
+
this.supportedFeatures = plxFeatures.supportedFeatures;
|
|
104
|
+
this.timestampForSpotCheckMeasurementsIsSupported = plxFeatures.timestampForSpotCheckMeasurementsIsSupported;
|
|
105
|
+
this.unknownSensorConnectedBitSupported = plxFeatures.unknownSensorConnectedBitSupported;
|
|
106
|
+
this.validatedDataBitSupported = plxFeatures.validatedDataBitSupported;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
__name(_PlxFeaturesImpl, "PlxFeaturesImpl");
|
|
110
|
+
__publicField(_PlxFeaturesImpl, "UUID_PREFIX", 10848);
|
|
111
|
+
__publicField(_PlxFeaturesImpl, "TYPE_NAME", "org.bluetooth.characteristic.plx_features");
|
|
112
|
+
__publicField(_PlxFeaturesImpl, "NAME", "PLX Features");
|
|
113
|
+
let PlxFeaturesImpl = _PlxFeaturesImpl;
|
|
114
|
+
function plxFeaturesFromDataView(dataView, indexStart = 0) {
|
|
115
|
+
const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
|
|
116
|
+
const supportedFeatures = $dvr.uint16();
|
|
117
|
+
const measurementStatusSupportIsPresent = !!(supportedFeatures & 1);
|
|
118
|
+
const deviceAndSensorStatusSupportIsPresent = !!((supportedFeatures & 2) >> 1);
|
|
119
|
+
const measurementStorageForSpotCheckMeasurementsIsSupported = (supportedFeatures & 4) >> 2;
|
|
120
|
+
const timestampForSpotCheckMeasurementsIsSupported = (supportedFeatures & 8) >> 3;
|
|
121
|
+
const spo2prFastMetricIsSupported = (supportedFeatures & 16) >> 4;
|
|
122
|
+
const spo2prSlowMetricIsSupported = (supportedFeatures & 32) >> 5;
|
|
123
|
+
const pulseAmplitudeIndexFieldIsSupported = (supportedFeatures & 64) >> 6;
|
|
124
|
+
const multipleBondsSupported = (supportedFeatures & 128) >> 7;
|
|
125
|
+
let measurementStatusSupport = 0;
|
|
126
|
+
if (measurementStatusSupportIsPresent) {
|
|
127
|
+
measurementStatusSupport = $dvr.uint16();
|
|
128
|
+
}
|
|
129
|
+
const measurementOngoingBitSupported = (measurementStatusSupport & 32) >> 5;
|
|
130
|
+
const earlyEstimatedDataBitSupported = (measurementStatusSupport & 64) >> 6;
|
|
131
|
+
const validatedDataBitSupported = (measurementStatusSupport & 128) >> 7;
|
|
132
|
+
const fullyQualifiedDataBitSupported = (measurementStatusSupport & 256) >> 8;
|
|
133
|
+
const dataFromMeasurementStorageBitSupported = (measurementStatusSupport & 512) >> 9;
|
|
134
|
+
const dataForDemonstrationBitSupported = (measurementStatusSupport & 1024) >> 10;
|
|
135
|
+
const dataForTestingBitSupported = (measurementStatusSupport & 2048) >> 11;
|
|
136
|
+
const calibrationOngoingBitSupported = (measurementStatusSupport & 4096) >> 12;
|
|
137
|
+
const measurementUnavailableBitSupported = (measurementStatusSupport & 8192) >> 13;
|
|
138
|
+
const questionableMeasurementDetectedBitSupported = (measurementStatusSupport & 16384) >> 14;
|
|
139
|
+
const invalidMeasurementDetectedBitSupported = (measurementStatusSupport & 32768) >> 15;
|
|
140
|
+
let deviceAndSensorStatusSupport = 0;
|
|
141
|
+
if (deviceAndSensorStatusSupportIsPresent) {
|
|
142
|
+
deviceAndSensorStatusSupport = $dvr.uint24();
|
|
143
|
+
}
|
|
144
|
+
const extendedDisplayUpdateOngoingBitSupported = deviceAndSensorStatusSupport & 1;
|
|
145
|
+
const equipmentMalfunctionDetectedBitSupported = (deviceAndSensorStatusSupport & 2) >> 1;
|
|
146
|
+
const signalProcessingIrregularityDetectedBitSupported = (deviceAndSensorStatusSupport & 4) >> 2;
|
|
147
|
+
const inadequiteSignalDetectedBitSupported = (deviceAndSensorStatusSupport & 8) >> 3;
|
|
148
|
+
const poorSignalDetectedBitSupported = (deviceAndSensorStatusSupport & 16) >> 4;
|
|
149
|
+
const lowPerfusionDetectedBitSupported = (deviceAndSensorStatusSupport & 32) >> 5;
|
|
150
|
+
const erraticSignalDetectedBitSupported = (deviceAndSensorStatusSupport & 64) >> 6;
|
|
151
|
+
const nonpulsatileSignalDetectedBitSupported = (deviceAndSensorStatusSupport & 128) >> 7;
|
|
152
|
+
const questionablePulseDetectedBitSupported = (deviceAndSensorStatusSupport & 256) >> 8;
|
|
153
|
+
const signalAnalysisOngoingBitSupported = (deviceAndSensorStatusSupport & 512) >> 9;
|
|
154
|
+
const sensorInterfaceDetectedBitSupported = (deviceAndSensorStatusSupport & 1024) >> 10;
|
|
155
|
+
const sensorUnconnectedToUserBitSupported = (deviceAndSensorStatusSupport & 2048) >> 11;
|
|
156
|
+
const unknownSensorConnectedBitSupported = (deviceAndSensorStatusSupport & 4096) >> 12;
|
|
157
|
+
const sensorDisplacedBitSupported = (deviceAndSensorStatusSupport & 8192) >> 13;
|
|
158
|
+
const sensorMalfunctioningBitSupported = (deviceAndSensorStatusSupport & 16384) >> 14;
|
|
159
|
+
const sensorDisconnectedBitSupported = (deviceAndSensorStatusSupport & 32768) >> 15;
|
|
160
|
+
return { calibrationOngoingBitSupported, dataForDemonstrationBitSupported, dataForTestingBitSupported, dataFromMeasurementStorageBitSupported, deviceAndSensorStatusSupport, earlyEstimatedDataBitSupported, equipmentMalfunctionDetectedBitSupported, erraticSignalDetectedBitSupported, extendedDisplayUpdateOngoingBitSupported, fullyQualifiedDataBitSupported, inadequiteSignalDetectedBitSupported, invalidMeasurementDetectedBitSupported, lowPerfusionDetectedBitSupported, measurementOngoingBitSupported, measurementStatusSupport, measurementStorageForSpotCheckMeasurementsIsSupported, measurementUnavailableBitSupported, multipleBondsSupported, nonpulsatileSignalDetectedBitSupported, poorSignalDetectedBitSupported, pulseAmplitudeIndexFieldIsSupported, questionableMeasurementDetectedBitSupported, questionablePulseDetectedBitSupported, sensorDisconnectedBitSupported, sensorDisplacedBitSupported, sensorInterfaceDetectedBitSupported, sensorMalfunctioningBitSupported, sensorUnconnectedToUserBitSupported, signalAnalysisOngoingBitSupported, signalProcessingIrregularityDetectedBitSupported, spo2prFastMetricIsSupported, spo2prSlowMetricIsSupported, supportedFeatures, timestampForSpotCheckMeasurementsIsSupported, unknownSensorConnectedBitSupported, validatedDataBitSupported };
|
|
161
|
+
}
|
|
162
|
+
__name(plxFeaturesFromDataView, "plxFeaturesFromDataView");
|
|
163
|
+
//# sourceMappingURL=plx-features.cjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/packages/bluetools/plx-features.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AAwT7C,MAAM,mBAAN,MAAM,iBAAuC;AAAA;AAAA,EAMhD,OAAc,aAAa,UAAqC,YAAkD;AAC9G,WAAO,IAAI,iBAAgB,wBAAwB,UAAU,UAAU,CAAC;AAAA,EAC5E;AAAA,EAEgB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,aAA0B;AACzC,SAAK,iCAAiC,YAAY;AAClD,SAAK,mCAAmC,YAAY;AACpD,SAAK,6BAA6B,YAAY;AAC9C,SAAK,yCAAyC,YAAY;AAC1D,SAAK,+BAA+B,YAAY;AAChD,SAAK,iCAAiC,YAAY;AAClD,SAAK,2CAA2C,YAAY;AAC5D,SAAK,oCAAoC,YAAY;AACrD,SAAK,2CAA2C,YAAY;AAC5D,SAAK,i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,wCAAwC,8BAA8B,gCAAgC,0CAA0C,mCAAmC,0CAA0C,gCAAgC,sCAAsC,wCAAwC,kCAAkC,gCAAgC,0BAA0B,uDAAuD,oCAAoC,wBAAwB,wCAAwC,gCAAgC,qCAAqC,6CAA6C,uCAAuC,gCAAgC,6BAA6B,qCAAqC,kCAAkC,qCAAqC,mCAAmC,kDAAkD,6BAA6B,6BAA6B,mBAAmB,8CAA8C,oCAAoC,0BAA0B;AAC7vC;AArQgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
import { type DataViewReader } from "./data-view-reader.js";
|
|
2
|
+
/** <p>The PLX Features characteristic is used to describe the supported features of the Server. Included in the characteristic is a PLX Features field, and, depending on the contents of the PLX Features field, the Measurement Status Support field, and the Device and Sensor Status Support field.</p> */
|
|
3
|
+
export interface PlxFeatures {
|
|
4
|
+
/**
|
|
5
|
+
* | value | description |
|
|
6
|
+
* | ----- | ----------- |
|
|
7
|
+
* | 0 | False |
|
|
8
|
+
* | 1 | True |
|
|
9
|
+
*/
|
|
10
|
+
calibrationOngoingBitSupported: number;
|
|
11
|
+
/**
|
|
12
|
+
* | value | description |
|
|
13
|
+
* | ----- | ----------- |
|
|
14
|
+
* | 0 | False |
|
|
15
|
+
* | 1 | True |
|
|
16
|
+
*/
|
|
17
|
+
dataForDemonstrationBitSupported: number;
|
|
18
|
+
/**
|
|
19
|
+
* | value | description |
|
|
20
|
+
* | ----- | ----------- |
|
|
21
|
+
* | 0 | False |
|
|
22
|
+
* | 1 | True |
|
|
23
|
+
*/
|
|
24
|
+
dataForTestingBitSupported: number;
|
|
25
|
+
/**
|
|
26
|
+
* | value | description |
|
|
27
|
+
* | ----- | ----------- |
|
|
28
|
+
* | 0 | False |
|
|
29
|
+
* | 1 | True |
|
|
30
|
+
*/
|
|
31
|
+
dataFromMeasurementStorageBitSupported: number;
|
|
32
|
+
/**
|
|
33
|
+
* <p>Format: `24bit`</p>
|
|
34
|
+
*
|
|
35
|
+
* Bit field:
|
|
36
|
+
*
|
|
37
|
+
* | index | size | name |
|
|
38
|
+
* | ----- | ---- | ----------------------------------------------------- |
|
|
39
|
+
* | 0 | 1 | Extended Display Update Ongoing bit supported |
|
|
40
|
+
* | 1 | 1 | Equipment Malfunction Detected bit supported |
|
|
41
|
+
* | 2 | 1 | Signal Processing Irregularity Detected bit supported |
|
|
42
|
+
* | 3 | 1 | Inadequite Signal Detected bit supported |
|
|
43
|
+
* | 4 | 1 | Poor Signal Detected bit supported |
|
|
44
|
+
* | 5 | 1 | Low Perfusion Detected bit supported |
|
|
45
|
+
* | 6 | 1 | Erratic Signal Detected bit supported |
|
|
46
|
+
* | 7 | 1 | Nonpulsatile Signal Detected bit supported |
|
|
47
|
+
* | 8 | 1 | Questionable Pulse Detected bit supported |
|
|
48
|
+
* | 9 | 1 | Signal Analysis Ongoing bit supported |
|
|
49
|
+
* | 10 | 1 | Sensor Interface Detected bit supported |
|
|
50
|
+
* | 11 | 1 | Sensor Unconnected to User bit supported |
|
|
51
|
+
* | 12 | 1 | Unknown Sensor Connected bit supported |
|
|
52
|
+
* | 13 | 1 | Sensor Displaced bit supported |
|
|
53
|
+
* | 14 | 1 | Sensor Malfunctioning bit supported |
|
|
54
|
+
* | 15 | 1 | Sensor Disconnected bit supported |
|
|
55
|
+
* | 16 | 8 | Reserved for future use |
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
deviceAndSensorStatusSupport: number;
|
|
59
|
+
/**
|
|
60
|
+
* | value | description |
|
|
61
|
+
* | ----- | ----------- |
|
|
62
|
+
* | 0 | False |
|
|
63
|
+
* | 1 | True |
|
|
64
|
+
*/
|
|
65
|
+
earlyEstimatedDataBitSupported: number;
|
|
66
|
+
/**
|
|
67
|
+
* | value | description |
|
|
68
|
+
* | ----- | ----------- |
|
|
69
|
+
* | 0 | False |
|
|
70
|
+
* | 1 | True |
|
|
71
|
+
*/
|
|
72
|
+
equipmentMalfunctionDetectedBitSupported: number;
|
|
73
|
+
/**
|
|
74
|
+
* | value | description |
|
|
75
|
+
* | ----- | ----------- |
|
|
76
|
+
* | 0 | False |
|
|
77
|
+
* | 1 | True |
|
|
78
|
+
*/
|
|
79
|
+
erraticSignalDetectedBitSupported: number;
|
|
80
|
+
/**
|
|
81
|
+
* | value | description |
|
|
82
|
+
* | ----- | ----------- |
|
|
83
|
+
* | 0 | False |
|
|
84
|
+
* | 1 | True |
|
|
85
|
+
*/
|
|
86
|
+
extendedDisplayUpdateOngoingBitSupported: number;
|
|
87
|
+
/**
|
|
88
|
+
* | value | description |
|
|
89
|
+
* | ----- | ----------- |
|
|
90
|
+
* | 0 | False |
|
|
91
|
+
* | 1 | True |
|
|
92
|
+
*/
|
|
93
|
+
fullyQualifiedDataBitSupported: number;
|
|
94
|
+
/**
|
|
95
|
+
* | value | description |
|
|
96
|
+
* | ----- | ----------- |
|
|
97
|
+
* | 0 | False |
|
|
98
|
+
* | 1 | True |
|
|
99
|
+
*/
|
|
100
|
+
inadequiteSignalDetectedBitSupported: number;
|
|
101
|
+
/**
|
|
102
|
+
* | value | description |
|
|
103
|
+
* | ----- | ----------- |
|
|
104
|
+
* | 0 | False |
|
|
105
|
+
* | 1 | True |
|
|
106
|
+
*/
|
|
107
|
+
invalidMeasurementDetectedBitSupported: number;
|
|
108
|
+
/**
|
|
109
|
+
* | value | description |
|
|
110
|
+
* | ----- | ----------- |
|
|
111
|
+
* | 0 | False |
|
|
112
|
+
* | 1 | True |
|
|
113
|
+
*/
|
|
114
|
+
lowPerfusionDetectedBitSupported: number;
|
|
115
|
+
/**
|
|
116
|
+
* | value | description |
|
|
117
|
+
* | ----- | ----------- |
|
|
118
|
+
* | 0 | False |
|
|
119
|
+
* | 1 | True |
|
|
120
|
+
*/
|
|
121
|
+
measurementOngoingBitSupported: number;
|
|
122
|
+
/**
|
|
123
|
+
* <p>Format: `16bit`</p>
|
|
124
|
+
*
|
|
125
|
+
* Bit field:
|
|
126
|
+
*
|
|
127
|
+
* | index | size | name |
|
|
128
|
+
* | ----- | ---- | ----------------------------------------------- |
|
|
129
|
+
* | 5 | 1 | Measurement Ongoing bit supported |
|
|
130
|
+
* | 6 | 1 | Early Estimated Data bit supported |
|
|
131
|
+
* | 7 | 1 | Validated Data bit supported |
|
|
132
|
+
* | 8 | 1 | Fully Qualified Data bit supported |
|
|
133
|
+
* | 9 | 1 | Data from Measurement Storage bit supported |
|
|
134
|
+
* | 10 | 1 | Data for Demonstration bit supported |
|
|
135
|
+
* | 11 | 1 | Data for Testing bit supported |
|
|
136
|
+
* | 12 | 1 | Calibration Ongoing bit supported |
|
|
137
|
+
* | 13 | 1 | Measurement Unavailable bit supported |
|
|
138
|
+
* | 14 | 1 | Questionable Measurement Detected bit supported |
|
|
139
|
+
* | 15 | 1 | Invalid Measurement Detected bit supported |
|
|
140
|
+
* | 0 | 5 | Reserved for future use |
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
143
|
+
measurementStatusSupport: number;
|
|
144
|
+
/**
|
|
145
|
+
* | value | description |
|
|
146
|
+
* | ----- | ----------- |
|
|
147
|
+
* | 0 | False |
|
|
148
|
+
* | 1 | True |
|
|
149
|
+
*/
|
|
150
|
+
measurementStorageForSpotCheckMeasurementsIsSupported: number;
|
|
151
|
+
/**
|
|
152
|
+
* | value | description |
|
|
153
|
+
* | ----- | ----------- |
|
|
154
|
+
* | 0 | False |
|
|
155
|
+
* | 1 | True |
|
|
156
|
+
*/
|
|
157
|
+
measurementUnavailableBitSupported: number;
|
|
158
|
+
/**
|
|
159
|
+
* | value | description |
|
|
160
|
+
* | ----- | ----------- |
|
|
161
|
+
* | 0 | False |
|
|
162
|
+
* | 1 | True |
|
|
163
|
+
*/
|
|
164
|
+
multipleBondsSupported: number;
|
|
165
|
+
/**
|
|
166
|
+
* | value | description |
|
|
167
|
+
* | ----- | ----------- |
|
|
168
|
+
* | 0 | False |
|
|
169
|
+
* | 1 | True |
|
|
170
|
+
*/
|
|
171
|
+
nonpulsatileSignalDetectedBitSupported: number;
|
|
172
|
+
/**
|
|
173
|
+
* | value | description |
|
|
174
|
+
* | ----- | ----------- |
|
|
175
|
+
* | 0 | False |
|
|
176
|
+
* | 1 | True |
|
|
177
|
+
*/
|
|
178
|
+
poorSignalDetectedBitSupported: number;
|
|
179
|
+
/**
|
|
180
|
+
* | value | description |
|
|
181
|
+
* | ----- | ----------- |
|
|
182
|
+
* | 0 | False |
|
|
183
|
+
* | 1 | True |
|
|
184
|
+
*/
|
|
185
|
+
pulseAmplitudeIndexFieldIsSupported: number;
|
|
186
|
+
/**
|
|
187
|
+
* | value | description |
|
|
188
|
+
* | ----- | ----------- |
|
|
189
|
+
* | 0 | False |
|
|
190
|
+
* | 1 | True |
|
|
191
|
+
*/
|
|
192
|
+
questionableMeasurementDetectedBitSupported: number;
|
|
193
|
+
/**
|
|
194
|
+
* | value | description |
|
|
195
|
+
* | ----- | ----------- |
|
|
196
|
+
* | 0 | False |
|
|
197
|
+
* | 1 | True |
|
|
198
|
+
*/
|
|
199
|
+
questionablePulseDetectedBitSupported: number;
|
|
200
|
+
/**
|
|
201
|
+
* | value | description |
|
|
202
|
+
* | ----- | ----------- |
|
|
203
|
+
* | 0 | False |
|
|
204
|
+
* | 1 | True |
|
|
205
|
+
*/
|
|
206
|
+
sensorDisconnectedBitSupported: number;
|
|
207
|
+
/**
|
|
208
|
+
* | value | description |
|
|
209
|
+
* | ----- | ----------- |
|
|
210
|
+
* | 0 | False |
|
|
211
|
+
* | 1 | True |
|
|
212
|
+
*/
|
|
213
|
+
sensorDisplacedBitSupported: number;
|
|
214
|
+
/**
|
|
215
|
+
* | value | description |
|
|
216
|
+
* | ----- | ----------- |
|
|
217
|
+
* | 0 | False |
|
|
218
|
+
* | 1 | True |
|
|
219
|
+
*/
|
|
220
|
+
sensorInterfaceDetectedBitSupported: number;
|
|
221
|
+
/**
|
|
222
|
+
* | value | description |
|
|
223
|
+
* | ----- | ----------- |
|
|
224
|
+
* | 0 | False |
|
|
225
|
+
* | 1 | True |
|
|
226
|
+
*/
|
|
227
|
+
sensorMalfunctioningBitSupported: number;
|
|
228
|
+
/**
|
|
229
|
+
* | value | description |
|
|
230
|
+
* | ----- | ----------- |
|
|
231
|
+
* | 0 | False |
|
|
232
|
+
* | 1 | True |
|
|
233
|
+
*/
|
|
234
|
+
sensorUnconnectedToUserBitSupported: number;
|
|
235
|
+
/**
|
|
236
|
+
* | value | description |
|
|
237
|
+
* | ----- | ----------- |
|
|
238
|
+
* | 0 | False |
|
|
239
|
+
* | 1 | True |
|
|
240
|
+
*/
|
|
241
|
+
signalAnalysisOngoingBitSupported: number;
|
|
242
|
+
/**
|
|
243
|
+
* | value | description |
|
|
244
|
+
* | ----- | ----------- |
|
|
245
|
+
* | 0 | False |
|
|
246
|
+
* | 1 | True |
|
|
247
|
+
*/
|
|
248
|
+
signalProcessingIrregularityDetectedBitSupported: number;
|
|
249
|
+
/**
|
|
250
|
+
* | value | description |
|
|
251
|
+
* | ----- | ----------- |
|
|
252
|
+
* | 0 | False |
|
|
253
|
+
* | 1 | True |
|
|
254
|
+
*/
|
|
255
|
+
spo2prFastMetricIsSupported: number;
|
|
256
|
+
/**
|
|
257
|
+
* | value | description |
|
|
258
|
+
* | ----- | ----------- |
|
|
259
|
+
* | 0 | False |
|
|
260
|
+
* | 1 | True |
|
|
261
|
+
*/
|
|
262
|
+
spo2prSlowMetricIsSupported: number;
|
|
263
|
+
/**
|
|
264
|
+
* <p>Format: `16bit`</p>
|
|
265
|
+
*
|
|
266
|
+
* Bit field:
|
|
267
|
+
*
|
|
268
|
+
* | index | size | req | name |
|
|
269
|
+
* | ----- | ---- | --- | ------------------------------------------------------------ |
|
|
270
|
+
* | 0 | 1 | C1 | Measurement Status support is present |
|
|
271
|
+
* | 1 | 1 | C2 | Device and Sensor Status support is present |
|
|
272
|
+
* | 2 | 1 | | Measurement Storage for Spot-check measurements is supported |
|
|
273
|
+
* | 3 | 1 | | Timestamp for Spot-check measurements is supported |
|
|
274
|
+
* | 4 | 1 | | SpO2PR-Fast metric is supported |
|
|
275
|
+
* | 5 | 1 | | SpO2PR-Slow metric is supported |
|
|
276
|
+
* | 6 | 1 | | Pulse Amplitude Index field is supported |
|
|
277
|
+
* | 7 | 1 | | Multiple Bonds Supported |
|
|
278
|
+
* | 8 | 8 | | Reserved for future use |
|
|
279
|
+
*
|
|
280
|
+
*/
|
|
281
|
+
supportedFeatures: number;
|
|
282
|
+
/**
|
|
283
|
+
* | value | description |
|
|
284
|
+
* | ----- | ----------- |
|
|
285
|
+
* | 0 | False |
|
|
286
|
+
* | 1 | True |
|
|
287
|
+
*/
|
|
288
|
+
timestampForSpotCheckMeasurementsIsSupported: number;
|
|
289
|
+
/**
|
|
290
|
+
* | value | description |
|
|
291
|
+
* | ----- | ----------- |
|
|
292
|
+
* | 0 | False |
|
|
293
|
+
* | 1 | True |
|
|
294
|
+
*/
|
|
295
|
+
unknownSensorConnectedBitSupported: number;
|
|
296
|
+
/**
|
|
297
|
+
* | value | description |
|
|
298
|
+
* | ----- | ----------- |
|
|
299
|
+
* | 0 | False |
|
|
300
|
+
* | 1 | True |
|
|
301
|
+
*/
|
|
302
|
+
validatedDataBitSupported: number;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* The fields in the above table, reading from top to bottom, are shown in the order of LSO to MSO, where LSO = Least Significant Octet and MSO = Most Significant Octet.
|
|
306
|
+
* @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.plx_features.xml | Plx Features}
|
|
307
|
+
*/
|
|
308
|
+
export declare class PlxFeaturesImpl implements PlxFeatures {
|
|
309
|
+
static readonly UUID_PREFIX = 10848;
|
|
310
|
+
static readonly TYPE_NAME = "org.bluetooth.characteristic.plx_features";
|
|
311
|
+
static readonly NAME = "PLX Features";
|
|
312
|
+
/** Parse from a DataView into {@link PlxFeatures}. */
|
|
313
|
+
static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): PlxFeaturesImpl;
|
|
314
|
+
readonly calibrationOngoingBitSupported: number;
|
|
315
|
+
readonly dataForDemonstrationBitSupported: number;
|
|
316
|
+
readonly dataForTestingBitSupported: number;
|
|
317
|
+
readonly dataFromMeasurementStorageBitSupported: number;
|
|
318
|
+
readonly deviceAndSensorStatusSupport: number;
|
|
319
|
+
readonly earlyEstimatedDataBitSupported: number;
|
|
320
|
+
readonly equipmentMalfunctionDetectedBitSupported: number;
|
|
321
|
+
readonly erraticSignalDetectedBitSupported: number;
|
|
322
|
+
readonly extendedDisplayUpdateOngoingBitSupported: number;
|
|
323
|
+
readonly fullyQualifiedDataBitSupported: number;
|
|
324
|
+
readonly inadequiteSignalDetectedBitSupported: number;
|
|
325
|
+
readonly invalidMeasurementDetectedBitSupported: number;
|
|
326
|
+
readonly lowPerfusionDetectedBitSupported: number;
|
|
327
|
+
readonly measurementOngoingBitSupported: number;
|
|
328
|
+
readonly measurementStatusSupport: number;
|
|
329
|
+
readonly measurementStorageForSpotCheckMeasurementsIsSupported: number;
|
|
330
|
+
readonly measurementUnavailableBitSupported: number;
|
|
331
|
+
readonly multipleBondsSupported: number;
|
|
332
|
+
readonly nonpulsatileSignalDetectedBitSupported: number;
|
|
333
|
+
readonly poorSignalDetectedBitSupported: number;
|
|
334
|
+
readonly pulseAmplitudeIndexFieldIsSupported: number;
|
|
335
|
+
readonly questionableMeasurementDetectedBitSupported: number;
|
|
336
|
+
readonly questionablePulseDetectedBitSupported: number;
|
|
337
|
+
readonly sensorDisconnectedBitSupported: number;
|
|
338
|
+
readonly sensorDisplacedBitSupported: number;
|
|
339
|
+
readonly sensorInterfaceDetectedBitSupported: number;
|
|
340
|
+
readonly sensorMalfunctioningBitSupported: number;
|
|
341
|
+
readonly sensorUnconnectedToUserBitSupported: number;
|
|
342
|
+
readonly signalAnalysisOngoingBitSupported: number;
|
|
343
|
+
readonly signalProcessingIrregularityDetectedBitSupported: number;
|
|
344
|
+
readonly spo2prFastMetricIsSupported: number;
|
|
345
|
+
readonly spo2prSlowMetricIsSupported: number;
|
|
346
|
+
readonly supportedFeatures: number;
|
|
347
|
+
readonly timestampForSpotCheckMeasurementsIsSupported: number;
|
|
348
|
+
readonly unknownSensorConnectedBitSupported: number;
|
|
349
|
+
readonly validatedDataBitSupported: number;
|
|
350
|
+
constructor(plxFeatures: PlxFeatures);
|
|
351
|
+
}
|
|
352
|
+
/** Parse from a DataView into {@link PlxFeatures}. */
|
|
353
|
+
export declare function plxFeaturesFromDataView(dataView: DataView | DataViewReader, indexStart?: number): PlxFeatures;
|
|
354
|
+
//# sourceMappingURL=plx-features.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plx-features.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/plx-features.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,+SAA+S;AAC/S,MAAM,WAAW,WAAW;IACxB;;;;;OAKG;IACH,8BAA8B,EAAE,MAAM,CAAC;IACvC;;;;;OAKG;IACH,gCAAgC,EAAE,MAAM,CAAC;IACzC;;;;;OAKG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;;OAKG;IACH,sCAAsC,EAAE,MAAM,CAAC;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;;OAKG;IACH,8BAA8B,EAAE,MAAM,CAAC;IACvC;;;;;OAKG;IACH,wCAAwC,EAAE,MAAM,CAAC;IACjD;;;;;OAKG;IACH,iCAAiC,EAAE,MAAM,CAAC;IAC1C;;;;;OAKG;IACH,wCAAwC,EAAE,MAAM,CAAC;IACjD;;;;;OAKG;IACH,8BAA8B,EAAE,MAAM,CAAC;IACvC;;;;;OAKG;IACH,oCAAoC,EAAE,MAAM,CAAC;IAC7C;;;;;OAKG;IACH,sCAAsC,EAAE,MAAM,CAAC;IAC/C;;;;;OAKG;IACH,gCAAgC,EAAE,MAAM,CAAC;IACzC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