@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
|
@@ -0,0 +1,83 @@
|
|
|
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 glucose_feature_exports = {};
|
|
23
|
+
__export(glucose_feature_exports, {
|
|
24
|
+
GlucoseFeatureImpl: () => GlucoseFeatureImpl,
|
|
25
|
+
glucoseFeatureFromDataView: () => glucoseFeatureFromDataView
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(glucose_feature_exports);
|
|
28
|
+
var import_data_view_reader = require("./data-view-reader.cjs");
|
|
29
|
+
const _GlucoseFeatureImpl = class _GlucoseFeatureImpl {
|
|
30
|
+
/** Parse from a DataView into {@link GlucoseFeature}. */
|
|
31
|
+
static fromDataView(dataView, indexStart) {
|
|
32
|
+
return new _GlucoseFeatureImpl(glucoseFeatureFromDataView(dataView, indexStart));
|
|
33
|
+
}
|
|
34
|
+
generalDeviceFaultSupported;
|
|
35
|
+
glucoseFeature;
|
|
36
|
+
lowBatteryDetectionDuringMeasurementSupported;
|
|
37
|
+
multipleBondSupported;
|
|
38
|
+
sensorMalfunctionDetectionSupported;
|
|
39
|
+
sensorReadInterruptDetectionSupported;
|
|
40
|
+
sensorResultHighLowDetectionSupported;
|
|
41
|
+
sensorSampleSizeSupported;
|
|
42
|
+
sensorStripInsertionErrorDetectionSupported;
|
|
43
|
+
sensorStripTypeErrorDetectionSupported;
|
|
44
|
+
sensorTemperatureHighLowDetectionSupported;
|
|
45
|
+
timeFaultSupported;
|
|
46
|
+
constructor(glucoseFeature) {
|
|
47
|
+
this.generalDeviceFaultSupported = glucoseFeature.generalDeviceFaultSupported;
|
|
48
|
+
this.glucoseFeature = glucoseFeature.glucoseFeature;
|
|
49
|
+
this.lowBatteryDetectionDuringMeasurementSupported = glucoseFeature.lowBatteryDetectionDuringMeasurementSupported;
|
|
50
|
+
this.multipleBondSupported = glucoseFeature.multipleBondSupported;
|
|
51
|
+
this.sensorMalfunctionDetectionSupported = glucoseFeature.sensorMalfunctionDetectionSupported;
|
|
52
|
+
this.sensorReadInterruptDetectionSupported = glucoseFeature.sensorReadInterruptDetectionSupported;
|
|
53
|
+
this.sensorResultHighLowDetectionSupported = glucoseFeature.sensorResultHighLowDetectionSupported;
|
|
54
|
+
this.sensorSampleSizeSupported = glucoseFeature.sensorSampleSizeSupported;
|
|
55
|
+
this.sensorStripInsertionErrorDetectionSupported = glucoseFeature.sensorStripInsertionErrorDetectionSupported;
|
|
56
|
+
this.sensorStripTypeErrorDetectionSupported = glucoseFeature.sensorStripTypeErrorDetectionSupported;
|
|
57
|
+
this.sensorTemperatureHighLowDetectionSupported = glucoseFeature.sensorTemperatureHighLowDetectionSupported;
|
|
58
|
+
this.timeFaultSupported = glucoseFeature.timeFaultSupported;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
__name(_GlucoseFeatureImpl, "GlucoseFeatureImpl");
|
|
62
|
+
__publicField(_GlucoseFeatureImpl, "UUID_PREFIX", 10833);
|
|
63
|
+
__publicField(_GlucoseFeatureImpl, "TYPE_NAME", "org.bluetooth.characteristic.glucose_feature");
|
|
64
|
+
__publicField(_GlucoseFeatureImpl, "NAME", "Glucose Feature");
|
|
65
|
+
let GlucoseFeatureImpl = _GlucoseFeatureImpl;
|
|
66
|
+
function glucoseFeatureFromDataView(dataView, indexStart = 0) {
|
|
67
|
+
const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
|
|
68
|
+
const glucoseFeature = $dvr.uint16();
|
|
69
|
+
const lowBatteryDetectionDuringMeasurementSupported = glucoseFeature & 1;
|
|
70
|
+
const sensorMalfunctionDetectionSupported = (glucoseFeature & 2) >> 1;
|
|
71
|
+
const sensorSampleSizeSupported = (glucoseFeature & 4) >> 2;
|
|
72
|
+
const sensorStripInsertionErrorDetectionSupported = (glucoseFeature & 8) >> 3;
|
|
73
|
+
const sensorStripTypeErrorDetectionSupported = (glucoseFeature & 16) >> 4;
|
|
74
|
+
const sensorResultHighLowDetectionSupported = (glucoseFeature & 32) >> 5;
|
|
75
|
+
const sensorTemperatureHighLowDetectionSupported = (glucoseFeature & 64) >> 6;
|
|
76
|
+
const sensorReadInterruptDetectionSupported = (glucoseFeature & 128) >> 7;
|
|
77
|
+
const generalDeviceFaultSupported = (glucoseFeature & 256) >> 8;
|
|
78
|
+
const timeFaultSupported = (glucoseFeature & 512) >> 9;
|
|
79
|
+
const multipleBondSupported = (glucoseFeature & 1024) >> 10;
|
|
80
|
+
return { generalDeviceFaultSupported, glucoseFeature, lowBatteryDetectionDuringMeasurementSupported, multipleBondSupported, sensorMalfunctionDetectionSupported, sensorReadInterruptDetectionSupported, sensorResultHighLowDetectionSupported, sensorSampleSizeSupported, sensorStripInsertionErrorDetectionSupported, sensorStripTypeErrorDetectionSupported, sensorTemperatureHighLowDetectionSupported, timeFaultSupported };
|
|
81
|
+
}
|
|
82
|
+
__name(glucoseFeatureFromDataView, "glucoseFeatureFromDataView");
|
|
83
|
+
//# sourceMappingURL=glucose-feature.cjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/packages/bluetools/glucose-feature.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AA6G7C,MAAM,sBAAN,MAAM,oBAA6C;AAAA;AAAA,EAMtD,OAAc,aAAa,UAAqC,YAAqD;AACjH,WAAO,IAAI,oBAAmB,2BAA2B,UAAU,UAAU,CAAC;AAAA,EAClF;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,EAET,YAAY,gBAAgC;AAC/C,SAAK,8BAA8B,eAAe;AAClD,SAAK,iBAAiB,eAAe;AACrC,SAAK,gDAAgD,eAAe;AACpE,SAAK,wBAAwB,eAAe;AAC5C,SAAK,sCAAsC,eAAe;AAC1D,SAAK,wCAAwC,eAAe;AAC5D,SAAK,wCAAwC,eAAe;AAC5D,SAAK,4BAA4B,eAAe;AAChD,SAAK,8CAA8C,eAAe;AAClE,SAAK,yCAAyC,eAAe;AAC7D,SAAK,6CAA6C,eAAe;AACjE,SAAK,qBAAqB,eAAe;AAAA,EAC7C;AACJ;AArC0D;AACtD,cADS,qBACc,eAAc;AACrC,cAFS,qBAEc,aAAY;AACnC,cAHS,qBAGc,QAAO;AAH3B,IAAM,qBAAN;AAwCA,SAAS,2BAA2B,UAAqC,aAAqB,GAAmB;AACpH,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,iBAAiB,KAAK,OAAO;AAOnC,QAAM,gDAAgD,iBAAiB;AAOvE,QAAM,uCAAuC,iBAAiB,MAA0B;AAOxF,QAAM,6BAA6B,iBAAiB,MAA0B;AAO9E,QAAM,+CAA+C,iBAAiB,MAA0B;AAOhG,QAAM,0CAA0C,iBAAiB,OAA0B;AAO3F,QAAM,yCAAyC,iBAAiB,OAA0B;AAO1F,QAAM,8CAA8C,iBAAiB,OAA0B;AAO/F,QAAM,yCAAyC,iBAAiB,QAA0B;AAO1F,QAAM,+BAA+B,iBAAiB,QAA0B;AAOhF,QAAM,sBAAsB,iBAAiB,QAA0B;AAOvE,QAAM,yBAAyB,iBAAiB,SAA0B;AAC1E,SAAO,EAAE,6BAA6B,gBAAgB,+CAA+C,uBAAuB,qCAAqC,uCAAuC,uCAAuC,2BAA2B,6CAA6C,wCAAwC,4CAA4C,mBAAmB;AACla;AAjFgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { type DataViewReader } from "./data-view-reader.js";
|
|
2
|
+
/** <p>The Glucose Feature characteristic is used to describe the supported features of the Server. When read, the Glucose Feature characteristic returns a value that is used by a Client to determine the supported features of the Server.</p> */
|
|
3
|
+
export interface GlucoseFeature {
|
|
4
|
+
/**
|
|
5
|
+
* | value | description |
|
|
6
|
+
* | ----- | ----------- |
|
|
7
|
+
* | 0 | False |
|
|
8
|
+
* | 1 | True |
|
|
9
|
+
*/
|
|
10
|
+
generalDeviceFaultSupported: number;
|
|
11
|
+
/**
|
|
12
|
+
* <p>Format: `16bit`</p>
|
|
13
|
+
*
|
|
14
|
+
* Bit field:
|
|
15
|
+
*
|
|
16
|
+
* | index | size | name |
|
|
17
|
+
* | ----- | ---- | -------------------------------------------------- |
|
|
18
|
+
* | 0 | 1 | Low Battery Detection During Measurement Supported |
|
|
19
|
+
* | 1 | 1 | Sensor Malfunction Detection Supported |
|
|
20
|
+
* | 2 | 1 | Sensor Sample Size Supported |
|
|
21
|
+
* | 3 | 1 | Sensor Strip Insertion Error Detection Supported |
|
|
22
|
+
* | 4 | 1 | Sensor Strip Type Error Detection Supported |
|
|
23
|
+
* | 5 | 1 | Sensor Result High-Low Detection Supported |
|
|
24
|
+
* | 6 | 1 | Sensor Temperature High-Low Detection Supported |
|
|
25
|
+
* | 7 | 1 | Sensor Read Interrupt Detection Supported |
|
|
26
|
+
* | 8 | 1 | General Device Fault Supported |
|
|
27
|
+
* | 9 | 1 | Time Fault Supported |
|
|
28
|
+
* | 10 | 1 | Multiple Bond Supported |
|
|
29
|
+
* | 11 | 5 | Reserved for future use |
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
glucoseFeature: number;
|
|
33
|
+
/**
|
|
34
|
+
* | value | description |
|
|
35
|
+
* | ----- | ----------- |
|
|
36
|
+
* | 0 | False |
|
|
37
|
+
* | 1 | True |
|
|
38
|
+
*/
|
|
39
|
+
lowBatteryDetectionDuringMeasurementSupported: number;
|
|
40
|
+
/**
|
|
41
|
+
* | value | description |
|
|
42
|
+
* | ----- | ----------- |
|
|
43
|
+
* | 0 | False |
|
|
44
|
+
* | 1 | True |
|
|
45
|
+
*/
|
|
46
|
+
multipleBondSupported: number;
|
|
47
|
+
/**
|
|
48
|
+
* | value | description |
|
|
49
|
+
* | ----- | ----------- |
|
|
50
|
+
* | 0 | False |
|
|
51
|
+
* | 1 | True |
|
|
52
|
+
*/
|
|
53
|
+
sensorMalfunctionDetectionSupported: number;
|
|
54
|
+
/**
|
|
55
|
+
* | value | description |
|
|
56
|
+
* | ----- | ----------- |
|
|
57
|
+
* | 0 | False |
|
|
58
|
+
* | 1 | True |
|
|
59
|
+
*/
|
|
60
|
+
sensorReadInterruptDetectionSupported: number;
|
|
61
|
+
/**
|
|
62
|
+
* | value | description |
|
|
63
|
+
* | ----- | ----------- |
|
|
64
|
+
* | 0 | False |
|
|
65
|
+
* | 1 | True |
|
|
66
|
+
*/
|
|
67
|
+
sensorResultHighLowDetectionSupported: number;
|
|
68
|
+
/**
|
|
69
|
+
* | value | description |
|
|
70
|
+
* | ----- | ----------- |
|
|
71
|
+
* | 0 | False |
|
|
72
|
+
* | 1 | True |
|
|
73
|
+
*/
|
|
74
|
+
sensorSampleSizeSupported: number;
|
|
75
|
+
/**
|
|
76
|
+
* | value | description |
|
|
77
|
+
* | ----- | ----------- |
|
|
78
|
+
* | 0 | False |
|
|
79
|
+
* | 1 | True |
|
|
80
|
+
*/
|
|
81
|
+
sensorStripInsertionErrorDetectionSupported: number;
|
|
82
|
+
/**
|
|
83
|
+
* | value | description |
|
|
84
|
+
* | ----- | ----------- |
|
|
85
|
+
* | 0 | False |
|
|
86
|
+
* | 1 | True |
|
|
87
|
+
*/
|
|
88
|
+
sensorStripTypeErrorDetectionSupported: number;
|
|
89
|
+
/**
|
|
90
|
+
* | value | description |
|
|
91
|
+
* | ----- | ----------- |
|
|
92
|
+
* | 0 | False |
|
|
93
|
+
* | 1 | True |
|
|
94
|
+
*/
|
|
95
|
+
sensorTemperatureHighLowDetectionSupported: number;
|
|
96
|
+
/**
|
|
97
|
+
* | value | description |
|
|
98
|
+
* | ----- | ----------- |
|
|
99
|
+
* | 0 | False |
|
|
100
|
+
* | 1 | True |
|
|
101
|
+
*/
|
|
102
|
+
timeFaultSupported: number;
|
|
103
|
+
}
|
|
104
|
+
/** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.glucose_feature.xml | Glucose Feature} */
|
|
105
|
+
export declare class GlucoseFeatureImpl implements GlucoseFeature {
|
|
106
|
+
static readonly UUID_PREFIX = 10833;
|
|
107
|
+
static readonly TYPE_NAME = "org.bluetooth.characteristic.glucose_feature";
|
|
108
|
+
static readonly NAME = "Glucose Feature";
|
|
109
|
+
/** Parse from a DataView into {@link GlucoseFeature}. */
|
|
110
|
+
static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): GlucoseFeatureImpl;
|
|
111
|
+
readonly generalDeviceFaultSupported: number;
|
|
112
|
+
readonly glucoseFeature: number;
|
|
113
|
+
readonly lowBatteryDetectionDuringMeasurementSupported: number;
|
|
114
|
+
readonly multipleBondSupported: number;
|
|
115
|
+
readonly sensorMalfunctionDetectionSupported: number;
|
|
116
|
+
readonly sensorReadInterruptDetectionSupported: number;
|
|
117
|
+
readonly sensorResultHighLowDetectionSupported: number;
|
|
118
|
+
readonly sensorSampleSizeSupported: number;
|
|
119
|
+
readonly sensorStripInsertionErrorDetectionSupported: number;
|
|
120
|
+
readonly sensorStripTypeErrorDetectionSupported: number;
|
|
121
|
+
readonly sensorTemperatureHighLowDetectionSupported: number;
|
|
122
|
+
readonly timeFaultSupported: number;
|
|
123
|
+
constructor(glucoseFeature: GlucoseFeature);
|
|
124
|
+
}
|
|
125
|
+
/** Parse from a DataView into {@link GlucoseFeature}. */
|
|
126
|
+
export declare function glucoseFeatureFromDataView(dataView: DataView | DataViewReader, indexStart?: number): GlucoseFeature;
|
|
127
|
+
//# sourceMappingURL=glucose-feature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glucose-feature.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/glucose-feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,oPAAoP;AACpP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E,MAAM,CAAC;IACpE,SAAgB,sCAAsC,EAAE,MAAM,CAAC;IAC/D,SAAgB,0CAA0C,EAAE,MAAM,CAAC;IACnE,SAAgB,kBAAkB,EAAE,MAAM,CAAC;gBAExB,cAAc,EAAE,cAAc;CAcpD;AAED,yDAAyD;AACzD,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,cAAc,CAiFtH"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
import { dataViewReader } from "./data-view-reader.mjs";
|
|
6
|
+
const _GlucoseFeatureImpl = class _GlucoseFeatureImpl {
|
|
7
|
+
/** Parse from a DataView into {@link GlucoseFeature}. */
|
|
8
|
+
static fromDataView(dataView, indexStart) {
|
|
9
|
+
return new _GlucoseFeatureImpl(glucoseFeatureFromDataView(dataView, indexStart));
|
|
10
|
+
}
|
|
11
|
+
generalDeviceFaultSupported;
|
|
12
|
+
glucoseFeature;
|
|
13
|
+
lowBatteryDetectionDuringMeasurementSupported;
|
|
14
|
+
multipleBondSupported;
|
|
15
|
+
sensorMalfunctionDetectionSupported;
|
|
16
|
+
sensorReadInterruptDetectionSupported;
|
|
17
|
+
sensorResultHighLowDetectionSupported;
|
|
18
|
+
sensorSampleSizeSupported;
|
|
19
|
+
sensorStripInsertionErrorDetectionSupported;
|
|
20
|
+
sensorStripTypeErrorDetectionSupported;
|
|
21
|
+
sensorTemperatureHighLowDetectionSupported;
|
|
22
|
+
timeFaultSupported;
|
|
23
|
+
constructor(glucoseFeature) {
|
|
24
|
+
this.generalDeviceFaultSupported = glucoseFeature.generalDeviceFaultSupported;
|
|
25
|
+
this.glucoseFeature = glucoseFeature.glucoseFeature;
|
|
26
|
+
this.lowBatteryDetectionDuringMeasurementSupported = glucoseFeature.lowBatteryDetectionDuringMeasurementSupported;
|
|
27
|
+
this.multipleBondSupported = glucoseFeature.multipleBondSupported;
|
|
28
|
+
this.sensorMalfunctionDetectionSupported = glucoseFeature.sensorMalfunctionDetectionSupported;
|
|
29
|
+
this.sensorReadInterruptDetectionSupported = glucoseFeature.sensorReadInterruptDetectionSupported;
|
|
30
|
+
this.sensorResultHighLowDetectionSupported = glucoseFeature.sensorResultHighLowDetectionSupported;
|
|
31
|
+
this.sensorSampleSizeSupported = glucoseFeature.sensorSampleSizeSupported;
|
|
32
|
+
this.sensorStripInsertionErrorDetectionSupported = glucoseFeature.sensorStripInsertionErrorDetectionSupported;
|
|
33
|
+
this.sensorStripTypeErrorDetectionSupported = glucoseFeature.sensorStripTypeErrorDetectionSupported;
|
|
34
|
+
this.sensorTemperatureHighLowDetectionSupported = glucoseFeature.sensorTemperatureHighLowDetectionSupported;
|
|
35
|
+
this.timeFaultSupported = glucoseFeature.timeFaultSupported;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
__name(_GlucoseFeatureImpl, "GlucoseFeatureImpl");
|
|
39
|
+
__publicField(_GlucoseFeatureImpl, "UUID_PREFIX", 10833);
|
|
40
|
+
__publicField(_GlucoseFeatureImpl, "TYPE_NAME", "org.bluetooth.characteristic.glucose_feature");
|
|
41
|
+
__publicField(_GlucoseFeatureImpl, "NAME", "Glucose Feature");
|
|
42
|
+
let GlucoseFeatureImpl = _GlucoseFeatureImpl;
|
|
43
|
+
function glucoseFeatureFromDataView(dataView, indexStart = 0) {
|
|
44
|
+
const $dvr = dataViewReader(dataView, indexStart);
|
|
45
|
+
const glucoseFeature = $dvr.uint16();
|
|
46
|
+
const lowBatteryDetectionDuringMeasurementSupported = glucoseFeature & 1;
|
|
47
|
+
const sensorMalfunctionDetectionSupported = (glucoseFeature & 2) >> 1;
|
|
48
|
+
const sensorSampleSizeSupported = (glucoseFeature & 4) >> 2;
|
|
49
|
+
const sensorStripInsertionErrorDetectionSupported = (glucoseFeature & 8) >> 3;
|
|
50
|
+
const sensorStripTypeErrorDetectionSupported = (glucoseFeature & 16) >> 4;
|
|
51
|
+
const sensorResultHighLowDetectionSupported = (glucoseFeature & 32) >> 5;
|
|
52
|
+
const sensorTemperatureHighLowDetectionSupported = (glucoseFeature & 64) >> 6;
|
|
53
|
+
const sensorReadInterruptDetectionSupported = (glucoseFeature & 128) >> 7;
|
|
54
|
+
const generalDeviceFaultSupported = (glucoseFeature & 256) >> 8;
|
|
55
|
+
const timeFaultSupported = (glucoseFeature & 512) >> 9;
|
|
56
|
+
const multipleBondSupported = (glucoseFeature & 1024) >> 10;
|
|
57
|
+
return { generalDeviceFaultSupported, glucoseFeature, lowBatteryDetectionDuringMeasurementSupported, multipleBondSupported, sensorMalfunctionDetectionSupported, sensorReadInterruptDetectionSupported, sensorResultHighLowDetectionSupported, sensorSampleSizeSupported, sensorStripInsertionErrorDetectionSupported, sensorStripTypeErrorDetectionSupported, sensorTemperatureHighLowDetectionSupported, timeFaultSupported };
|
|
58
|
+
}
|
|
59
|
+
__name(glucoseFeatureFromDataView, "glucoseFeatureFromDataView");
|
|
60
|
+
export {
|
|
61
|
+
GlucoseFeatureImpl,
|
|
62
|
+
glucoseFeatureFromDataView
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=glucose-feature.mjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/packages/bluetools/glucose-feature.ts"],
|
|
4
|
+
"mappings": ";;;;AAAA,SAA8B,sBAAsB;AA6G7C,MAAM,sBAAN,MAAM,oBAA6C;AAAA;AAAA,EAMtD,OAAc,aAAa,UAAqC,YAAqD;AACjH,WAAO,IAAI,oBAAmB,2BAA2B,UAAU,UAAU,CAAC;AA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4CAA4C,mBAAmB;AACla;AAjFgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
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 glucose_measurement_context_exports = {};
|
|
23
|
+
__export(glucose_measurement_context_exports, {
|
|
24
|
+
GlucoseMeasurementContextImpl: () => GlucoseMeasurementContextImpl,
|
|
25
|
+
glucoseMeasurementContextFromDataView: () => glucoseMeasurementContextFromDataView
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(glucose_measurement_context_exports);
|
|
28
|
+
var import_data_view_reader = require("./data-view-reader.cjs");
|
|
29
|
+
const _GlucoseMeasurementContextImpl = class _GlucoseMeasurementContextImpl {
|
|
30
|
+
/** Parse from a DataView into {@link GlucoseMeasurementContext}. */
|
|
31
|
+
static fromDataView(dataView, indexStart) {
|
|
32
|
+
return new _GlucoseMeasurementContextImpl(glucoseMeasurementContextFromDataView(dataView, indexStart));
|
|
33
|
+
}
|
|
34
|
+
carbohydrateID;
|
|
35
|
+
carbohydrateUnitsOfKilograms;
|
|
36
|
+
exerciseDuration;
|
|
37
|
+
exerciseIntensity;
|
|
38
|
+
extendedFlags;
|
|
39
|
+
flags;
|
|
40
|
+
hba1c;
|
|
41
|
+
health;
|
|
42
|
+
meal;
|
|
43
|
+
medicationID;
|
|
44
|
+
medicationUnitsOfKilograms;
|
|
45
|
+
medicationUnitsOfLiters;
|
|
46
|
+
sequenceNumber;
|
|
47
|
+
tester;
|
|
48
|
+
constructor(glucoseMeasurementContext) {
|
|
49
|
+
this.carbohydrateID = glucoseMeasurementContext.carbohydrateID;
|
|
50
|
+
this.carbohydrateUnitsOfKilograms = glucoseMeasurementContext.carbohydrateUnitsOfKilograms;
|
|
51
|
+
this.exerciseDuration = glucoseMeasurementContext.exerciseDuration;
|
|
52
|
+
this.exerciseIntensity = glucoseMeasurementContext.exerciseIntensity;
|
|
53
|
+
this.extendedFlags = glucoseMeasurementContext.extendedFlags;
|
|
54
|
+
this.flags = glucoseMeasurementContext.flags;
|
|
55
|
+
this.hba1c = glucoseMeasurementContext.hba1c;
|
|
56
|
+
this.health = glucoseMeasurementContext.health;
|
|
57
|
+
this.meal = glucoseMeasurementContext.meal;
|
|
58
|
+
this.medicationID = glucoseMeasurementContext.medicationID;
|
|
59
|
+
this.medicationUnitsOfKilograms = glucoseMeasurementContext.medicationUnitsOfKilograms;
|
|
60
|
+
this.medicationUnitsOfLiters = glucoseMeasurementContext.medicationUnitsOfLiters;
|
|
61
|
+
this.sequenceNumber = glucoseMeasurementContext.sequenceNumber;
|
|
62
|
+
this.tester = glucoseMeasurementContext.tester;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
__name(_GlucoseMeasurementContextImpl, "GlucoseMeasurementContextImpl");
|
|
66
|
+
__publicField(_GlucoseMeasurementContextImpl, "UUID_PREFIX", 10804);
|
|
67
|
+
__publicField(_GlucoseMeasurementContextImpl, "TYPE_NAME", "org.bluetooth.characteristic.glucose_measurement_context");
|
|
68
|
+
__publicField(_GlucoseMeasurementContextImpl, "NAME", "Glucose Measurement Context");
|
|
69
|
+
let GlucoseMeasurementContextImpl = _GlucoseMeasurementContextImpl;
|
|
70
|
+
function glucoseMeasurementContextFromDataView(dataView, indexStart = 0) {
|
|
71
|
+
const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
|
|
72
|
+
const flags = $dvr.uint8();
|
|
73
|
+
const carbohydrateIDAndCarbohydratePresent = !!(flags & 1);
|
|
74
|
+
const mealPresent = !!((flags & 2) >> 1);
|
|
75
|
+
const testerHealthPresent = !!((flags & 4) >> 2);
|
|
76
|
+
const exerciseDurationAndExerciseIntensityPresent = !!((flags & 8) >> 3);
|
|
77
|
+
const medicationIDAndMedicationPresent = !!((flags & 16) >> 4);
|
|
78
|
+
const medicationValueUnits = !!((flags & 32) >> 5);
|
|
79
|
+
const hba1cPresent = !!((flags & 64) >> 6);
|
|
80
|
+
const extendedFlagsPresent = !!((flags & 128) >> 7);
|
|
81
|
+
const sequenceNumber = $dvr.uint16();
|
|
82
|
+
let extendedFlags = void 0;
|
|
83
|
+
if (extendedFlagsPresent) {
|
|
84
|
+
extendedFlags = $dvr.uint8();
|
|
85
|
+
}
|
|
86
|
+
let carbohydrateID = void 0;
|
|
87
|
+
if (carbohydrateIDAndCarbohydratePresent) {
|
|
88
|
+
carbohydrateID = $dvr.uint8();
|
|
89
|
+
}
|
|
90
|
+
let carbohydrateUnitsOfKilograms = void 0;
|
|
91
|
+
if (carbohydrateIDAndCarbohydratePresent) {
|
|
92
|
+
carbohydrateUnitsOfKilograms = $dvr.sFloat();
|
|
93
|
+
}
|
|
94
|
+
let meal = void 0;
|
|
95
|
+
if (mealPresent) {
|
|
96
|
+
meal = $dvr.uint8();
|
|
97
|
+
}
|
|
98
|
+
let tester = void 0;
|
|
99
|
+
if (testerHealthPresent) {
|
|
100
|
+
tester = $dvr.nibble();
|
|
101
|
+
}
|
|
102
|
+
let health = void 0;
|
|
103
|
+
if (testerHealthPresent) {
|
|
104
|
+
health = $dvr.nibble();
|
|
105
|
+
}
|
|
106
|
+
let exerciseDuration = void 0;
|
|
107
|
+
if (exerciseDurationAndExerciseIntensityPresent) {
|
|
108
|
+
exerciseDuration = $dvr.uint16();
|
|
109
|
+
}
|
|
110
|
+
let exerciseIntensity = void 0;
|
|
111
|
+
if (exerciseDurationAndExerciseIntensityPresent) {
|
|
112
|
+
exerciseIntensity = $dvr.uint8();
|
|
113
|
+
}
|
|
114
|
+
let medicationID = void 0;
|
|
115
|
+
if (medicationIDAndMedicationPresent) {
|
|
116
|
+
medicationID = $dvr.uint8();
|
|
117
|
+
}
|
|
118
|
+
let medicationUnitsOfKilograms = void 0;
|
|
119
|
+
if (medicationIDAndMedicationPresent && !medicationValueUnits) {
|
|
120
|
+
medicationUnitsOfKilograms = $dvr.sFloat();
|
|
121
|
+
}
|
|
122
|
+
let medicationUnitsOfLiters = void 0;
|
|
123
|
+
if (medicationIDAndMedicationPresent && medicationValueUnits) {
|
|
124
|
+
medicationUnitsOfLiters = $dvr.sFloat();
|
|
125
|
+
}
|
|
126
|
+
let hba1c = void 0;
|
|
127
|
+
if (hba1cPresent) {
|
|
128
|
+
hba1c = $dvr.sFloat();
|
|
129
|
+
}
|
|
130
|
+
return { carbohydrateID, carbohydrateUnitsOfKilograms, exerciseDuration, exerciseIntensity, extendedFlags, flags, hba1c, health, meal, medicationID, medicationUnitsOfKilograms, medicationUnitsOfLiters, sequenceNumber, tester };
|
|
131
|
+
}
|
|
132
|
+
__name(glucoseMeasurementContextFromDataView, "glucoseMeasurementContextFromDataView");
|
|
133
|
+
//# sourceMappingURL=glucose-measurement-context.cjs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,EAC1C;AAEA,MAAI,QAA4B;AAChC,MAAI,cAAc;AACd,YAAQ,KAAK,OAAO;AAAA,EACxB;AAEA,SAAO,EAAE,gBAAgB,8BAA8B,kBAAkB,mBAAmB,eAAe,OAAO,OAAO,QAAQ,MAAM,cAAc,4BAA4B,yBAAyB,gBAAgB,OAAO;AACrO;AAjIgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { type DataViewReader } from "./data-view-reader.js";
|
|
2
|
+
/** <p>The Glucose Measurement Context characteristic is a variable length structure containing a Flags field, a Sequence Number field and, based upon the contents of the Flags field, may contain a Carbohydrate ID field, Carbohydrate field, Meal field, Tester-Health field, Exercise Duration field, Exercise Intensity field, Medication ID field, Medication field and a HbA1c field.</p> */
|
|
3
|
+
export interface GlucoseMeasurementContext {
|
|
4
|
+
/**
|
|
5
|
+
* <p>Format: `uint8`</p>
|
|
6
|
+
* <p>C2: Field exists if the key of bit 0 of the Flags field is set to 1</p>
|
|
7
|
+
* | Key | Description |
|
|
8
|
+
* | --- | ----------------------- |
|
|
9
|
+
* | 0 | Reserved for future use |
|
|
10
|
+
* | 1 | Breakfast |
|
|
11
|
+
* | 2 | Lunch |
|
|
12
|
+
* | 3 | Dinner |
|
|
13
|
+
* | 4 | Snack |
|
|
14
|
+
* | 5 | Drink |
|
|
15
|
+
* | 6 | Supper |
|
|
16
|
+
* | 7 | Brunch |
|
|
17
|
+
*
|
|
18
|
+
* <p>Reserved for future use: 8 to 255</p>
|
|
19
|
+
*/
|
|
20
|
+
carbohydrateID?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* <p>Format: `SFLOAT`</p>
|
|
23
|
+
* <p>Unit: `org.bluetooth.unit.mass.kilogram`</p>
|
|
24
|
+
* <p>C2: Field exists if the key of bit 0 of the Flags field is set to 1</p>
|
|
25
|
+
*/
|
|
26
|
+
carbohydrateUnitsOfKilograms?: number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* <p>Format: `uint16`</p>
|
|
29
|
+
* <p>Unit: `org.bluetooth.unit.time.second`</p>
|
|
30
|
+
* <p>C5: Field exists if the key of bit 3 of the Flags field is set to 1</p>
|
|
31
|
+
* | Key | Description |
|
|
32
|
+
* | ----- | ----------- |
|
|
33
|
+
* | 65535 | Overrun |
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
exerciseDuration?: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* <p>Format: `uint8`</p>
|
|
39
|
+
* <p>Unit: `org.bluetooth.unit.percentage`</p>
|
|
40
|
+
* <p>C5: Field exists if the key of bit 3 of the Flags field is set to 1</p>
|
|
41
|
+
*/
|
|
42
|
+
exerciseIntensity?: number | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* <p>Format: `8bit`</p>
|
|
45
|
+
* <p>C1: Field exists if the key of bit 7 of the Flags field is set to 1</p>
|
|
46
|
+
*
|
|
47
|
+
* Bit field:
|
|
48
|
+
*
|
|
49
|
+
* | index | size | name |
|
|
50
|
+
* | ----- | ---- | ----------------------- |
|
|
51
|
+
* | 0 | 8 | Reserved for future use |
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
extendedFlags?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* <p>Format: `8bit`</p>
|
|
57
|
+
* <p>These flags define which data fields are present in the Characteristic value</p>
|
|
58
|
+
*
|
|
59
|
+
* Bit field:
|
|
60
|
+
*
|
|
61
|
+
* | index | size | req | name |
|
|
62
|
+
* | ----- | ---- | ------ | ------------------------------------------------ |
|
|
63
|
+
* | 0 | 1 | C2 | Carbohydrate ID And Carbohydrate Present |
|
|
64
|
+
* | 1 | 1 | C3 | Meal Present |
|
|
65
|
+
* | 2 | 1 | C4 | Tester-Health Present |
|
|
66
|
+
* | 3 | 1 | C5 | Exercise Duration And Exercise Intensity Present |
|
|
67
|
+
* | 4 | 1 | C6 | Medication ID And Medication Present |
|
|
68
|
+
* | 5 | 1 | C8, C9 | Medication Value Units |
|
|
69
|
+
* | 6 | 1 | C7 | HbA1c Present |
|
|
70
|
+
* | 7 | 1 | C1 | Extended Flags Present |
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
flags: number;
|
|
74
|
+
/**
|
|
75
|
+
* <p>Format: `SFLOAT`</p>
|
|
76
|
+
* <p>Unit: `org.bluetooth.unit.percentage`</p>
|
|
77
|
+
* <p>C7: Field exists if the key of bit 6 of the Flags field is set to 1</p>
|
|
78
|
+
*/
|
|
79
|
+
hba1c?: number | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* <p>Format: `nibble`</p>
|
|
82
|
+
* <p>C4: Field exists if the key of bit 2 of the Flags field is set to 1</p>
|
|
83
|
+
* | Key | Description |
|
|
84
|
+
* | --- | -------------------------- |
|
|
85
|
+
* | 0 | Reserved for future use |
|
|
86
|
+
* | 1 | Minor health issues |
|
|
87
|
+
* | 2 | Major health issues |
|
|
88
|
+
* | 3 | During menses |
|
|
89
|
+
* | 4 | Under stress |
|
|
90
|
+
* | 5 | No health issues |
|
|
91
|
+
* | 15 | Health value not available |
|
|
92
|
+
*
|
|
93
|
+
* <p>Reserved for future use: 6 to 14</p>
|
|
94
|
+
*/
|
|
95
|
+
health?: number | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* <p>Format: `uint8`</p>
|
|
98
|
+
* <p>C3: Field exists if the key of bit 1 of the Flags field is set to 1</p>
|
|
99
|
+
* | Key | Description |
|
|
100
|
+
* | --- | ----------------------------- |
|
|
101
|
+
* | 0 | Reserved for future use |
|
|
102
|
+
* | 1 | Preprandial (before meal) |
|
|
103
|
+
* | 2 | Postprandial (after meal) |
|
|
104
|
+
* | 3 | Fasting |
|
|
105
|
+
* | 4 | Casual (snacks, drinks, etc.) |
|
|
106
|
+
* | 5 | Bedtime |
|
|
107
|
+
*
|
|
108
|
+
* <p>Reserved for future use: 6 to 255</p>
|
|
109
|
+
*/
|
|
110
|
+
meal?: number | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* <p>Format: `uint8`</p>
|
|
113
|
+
* <p>C6: Field exists if the key of bit 4 of the Flags field is set to 1</p>
|
|
114
|
+
* | Key | Description |
|
|
115
|
+
* | --- | --------------------------- |
|
|
116
|
+
* | 0 | Reserved for future use |
|
|
117
|
+
* | 1 | Rapid acting insulin |
|
|
118
|
+
* | 2 | Short acting insulin |
|
|
119
|
+
* | 3 | Intermediate acting insulin |
|
|
120
|
+
* | 4 | Long acting insulin |
|
|
121
|
+
* | 5 | Pre-mixed insulin |
|
|
122
|
+
*
|
|
123
|
+
* <p>Reserved for future use: 6 to 255</p>
|
|
124
|
+
*/
|
|
125
|
+
medicationID?: number | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* <p>Format: `SFLOAT`</p>
|
|
128
|
+
* <p>Unit: `org.bluetooth.unit.mass.kilogram`</p>
|
|
129
|
+
* <p>C6: Field exists if the key of bit 4 of the Flags field is set to 1, C8: Field exists if the key of bit 5 of the Flags field is set to 0</p>
|
|
130
|
+
*/
|
|
131
|
+
medicationUnitsOfKilograms?: number | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* <p>Format: `SFLOAT`</p>
|
|
134
|
+
* <p>Unit: `org.bluetooth.unit.volume.litre`</p>
|
|
135
|
+
* <p>C6: Field exists if the key of bit 4 of the Flags field is set to 1, C9: Field exists if the key of bit 5 of the Flags field is set to 1</p>
|
|
136
|
+
*/
|
|
137
|
+
medicationUnitsOfLiters?: number | undefined;
|
|
138
|
+
/** <p>Format: `uint16`</p> */
|
|
139
|
+
sequenceNumber: number;
|
|
140
|
+
/**
|
|
141
|
+
* <p>Format: `nibble`</p>
|
|
142
|
+
* <p>C4: Field exists if the key of bit 2 of the Flags field is set to 1</p>
|
|
143
|
+
* | Key | Description |
|
|
144
|
+
* | --- | -------------------------- |
|
|
145
|
+
* | 0 | Reserved for future use |
|
|
146
|
+
* | 1 | Self |
|
|
147
|
+
* | 2 | Health Care Professional |
|
|
148
|
+
* | 3 | Lab test |
|
|
149
|
+
* | 15 | Tester value not available |
|
|
150
|
+
*
|
|
151
|
+
* <p>Reserved for future use: 4 to 14</p>
|
|
152
|
+
*/
|
|
153
|
+
tester?: number | undefined;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Where fields with the format ?nibble? have been defined in the above table, the fields are shown in the order of Least Significant Nibble first, when reading the table from top to bottom. Where the characteristic definition contains two adjacent nibbles and the service specification has defined that that pair of nibbles comprise a single octet, the Least Significant Nibble means the four bits numbered 0, 1, 2 and 3 of the octet and the Most Significant Nibble means the four bits numbered 4, 5, 6 and 7 of that octet.
|
|
157
|
+
* @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.glucose_measurement_context.xml | Glucose Measurement Context}
|
|
158
|
+
*/
|
|
159
|
+
export declare class GlucoseMeasurementContextImpl implements GlucoseMeasurementContext {
|
|
160
|
+
static readonly UUID_PREFIX = 10804;
|
|
161
|
+
static readonly TYPE_NAME = "org.bluetooth.characteristic.glucose_measurement_context";
|
|
162
|
+
static readonly NAME = "Glucose Measurement Context";
|
|
163
|
+
/** Parse from a DataView into {@link GlucoseMeasurementContext}. */
|
|
164
|
+
static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): GlucoseMeasurementContextImpl;
|
|
165
|
+
readonly carbohydrateID?: number | undefined;
|
|
166
|
+
readonly carbohydrateUnitsOfKilograms?: number | undefined;
|
|
167
|
+
readonly exerciseDuration?: number | undefined;
|
|
168
|
+
readonly exerciseIntensity?: number | undefined;
|
|
169
|
+
readonly extendedFlags?: number | undefined;
|
|
170
|
+
readonly flags: number;
|
|
171
|
+
readonly hba1c?: number | undefined;
|
|
172
|
+
readonly health?: number | undefined;
|
|
173
|
+
readonly meal?: number | undefined;
|
|
174
|
+
readonly medicationID?: number | undefined;
|
|
175
|
+
readonly medicationUnitsOfKilograms?: number | undefined;
|
|
176
|
+
readonly medicationUnitsOfLiters?: number | undefined;
|
|
177
|
+
readonly sequenceNumber: number;
|
|
178
|
+
readonly tester?: number | undefined;
|
|
179
|
+
constructor(glucoseMeasurementContext: GlucoseMeasurementContext);
|
|
180
|
+
}
|
|
181
|
+
/** Parse from a DataView into {@link GlucoseMeasurementContext}. */
|
|
182
|
+
export declare function glucoseMeasurementContextFromDataView(dataView: DataView | DataViewReader, indexStart?: number): GlucoseMeasurementContext;
|
|
183
|
+
//# sourceMappingURL=glucose-measurement-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glucose-measurement-context.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/glucose-measurement-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,oYAAoY;AACpY,MAAM,WAAW,yBAAyB;IACtC;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClD;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,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