@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 @@
|
|
|
1
|
+
{"version":3,"file":"three-zone-heart-rate-limits.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/three-zone-heart-rate-limits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,gJAAgJ;AAChJ,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,wDAAwD,EAAE,MAAM,CAAC;IACjE;;;;OAIG;IACH,yDAAyD,EAAE,MAAM,CAAC;CACrE;AAED;;;GAGG;AACH,qBAAa,4BAA6B,YAAW,wBAAwB;IACzE,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,+DAA+D;IAC/F,gBAAuB,IAAI,kCAAkC;IAE7D,mEAAmE;WACrD,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,4BAA4B;IAI9H,SAAgB,wDAAwD,EAAE,MAAM,CAAC;IACjF,SAAgB,yDAAyD,EAAE,MAAM,CAAC;gBAE/D,wBAAwB,EAAE,wBAAwB;CAIxE;AAED,mEAAmE;AACnE,wBAAgB,oCAAoC,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,wBAAwB,CAK1I"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 _ThreeZoneHeartRateLimitsImpl = class _ThreeZoneHeartRateLimitsImpl {
|
|
7
|
+
/** Parse from a DataView into {@link ThreeZoneHeartRateLimits}. */
|
|
8
|
+
static fromDataView(dataView, indexStart) {
|
|
9
|
+
return new _ThreeZoneHeartRateLimitsImpl(threeZoneHeartRateLimitsFromDataView(dataView, indexStart));
|
|
10
|
+
}
|
|
11
|
+
threeZoneHeartRateLimitsLightFatBurnModerateAerobicLimit;
|
|
12
|
+
threeZoneHeartRateLimitsModerateAerobicHardAnaerobicLimit;
|
|
13
|
+
constructor(threeZoneHeartRateLimits) {
|
|
14
|
+
this.threeZoneHeartRateLimitsLightFatBurnModerateAerobicLimit = threeZoneHeartRateLimits.threeZoneHeartRateLimitsLightFatBurnModerateAerobicLimit;
|
|
15
|
+
this.threeZoneHeartRateLimitsModerateAerobicHardAnaerobicLimit = threeZoneHeartRateLimits.threeZoneHeartRateLimitsModerateAerobicHardAnaerobicLimit;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
__name(_ThreeZoneHeartRateLimitsImpl, "ThreeZoneHeartRateLimitsImpl");
|
|
19
|
+
__publicField(_ThreeZoneHeartRateLimitsImpl, "UUID_PREFIX", 10900);
|
|
20
|
+
__publicField(_ThreeZoneHeartRateLimitsImpl, "TYPE_NAME", "org.bluetooth.characteristic.three_zone_heart_rate_limits");
|
|
21
|
+
__publicField(_ThreeZoneHeartRateLimitsImpl, "NAME", "Three Zone Heart Rate Limits");
|
|
22
|
+
let ThreeZoneHeartRateLimitsImpl = _ThreeZoneHeartRateLimitsImpl;
|
|
23
|
+
function threeZoneHeartRateLimitsFromDataView(dataView, indexStart = 0) {
|
|
24
|
+
const $dvr = dataViewReader(dataView, indexStart);
|
|
25
|
+
const threeZoneHeartRateLimitsLightFatBurnModerateAerobicLimit = $dvr.uint8();
|
|
26
|
+
const threeZoneHeartRateLimitsModerateAerobicHardAnaerobicLimit = $dvr.uint8();
|
|
27
|
+
return { threeZoneHeartRateLimitsLightFatBurnModerateAerobicLimit, threeZoneHeartRateLimitsModerateAerobicHardAnaerobicLimit };
|
|
28
|
+
}
|
|
29
|
+
__name(threeZoneHeartRateLimitsFromDataView, "threeZoneHeartRateLimitsFromDataView");
|
|
30
|
+
export {
|
|
31
|
+
ThreeZoneHeartRateLimitsImpl,
|
|
32
|
+
threeZoneHeartRateLimitsFromDataView
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=three-zone-heart-rate-limits.mjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/packages/bluetools/three-zone-heart-rate-limits.ts"],
|
|
4
|
+
"mappings": ";;;;AAAA,SAA8B,sBAAsB;AAyB7C,MAAM,gCAAN,MAAM,8BAAiE;AAAA;AAAA,EAM1E,OAAc,aAAa,UAAqC,YAA+D;AAC3H,WAAO,IAAI,8BAA6B,qCAAqC,UAAU,UAAU,CAAC;AAAA,EACtG;AAAA,EAEgB;AAAA,EACA;AAAA,EAET,YAAY,0BAAoD;AACnE,SAAK,2DAA2D,yBAAyB;AACzF,SAAK,4DAA4D,yBAAyB;AAAA,EAC9F;AACJ;AAjB8E;AAC1E,cADS,+BACc,eAAc;AACrC,cAFS,+BAEc,aAAY;AACnC,cAHS,+BAGc,QAAO;AAH3B,IAAM,+BAAN;AAoBA,SAAS,qCAAqC,UAAqC,aAAqB,GAA6B;AACxI,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,2DAA2D,KAAK,MAAM;AAC5E,QAAM,4DAA4D,KAAK,MAAM;AAC7E,SAAO,EAAE,0DAA0D,0DAA0D;AACjI;AALgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 time_accuracy_exports = {};
|
|
23
|
+
__export(time_accuracy_exports, {
|
|
24
|
+
TimeAccuracyImpl: () => TimeAccuracyImpl,
|
|
25
|
+
timeAccuracyFromDataView: () => timeAccuracyFromDataView
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(time_accuracy_exports);
|
|
28
|
+
var import_data_view_reader = require("./data-view-reader.cjs");
|
|
29
|
+
const _TimeAccuracyImpl = class _TimeAccuracyImpl {
|
|
30
|
+
/** Parse from a DataView into {@link TimeAccuracy}. */
|
|
31
|
+
static fromDataView(dataView, indexStart) {
|
|
32
|
+
return new _TimeAccuracyImpl(timeAccuracyFromDataView(dataView, indexStart));
|
|
33
|
+
}
|
|
34
|
+
accuracy;
|
|
35
|
+
constructor(timeAccuracy) {
|
|
36
|
+
this.accuracy = timeAccuracy.accuracy;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
__name(_TimeAccuracyImpl, "TimeAccuracyImpl");
|
|
40
|
+
__publicField(_TimeAccuracyImpl, "UUID_PREFIX", 10770);
|
|
41
|
+
__publicField(_TimeAccuracyImpl, "TYPE_NAME", "org.bluetooth.characteristic.time_accuracy");
|
|
42
|
+
__publicField(_TimeAccuracyImpl, "NAME", "Time Accuracy");
|
|
43
|
+
let TimeAccuracyImpl = _TimeAccuracyImpl;
|
|
44
|
+
function timeAccuracyFromDataView(dataView, indexStart = 0) {
|
|
45
|
+
const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
|
|
46
|
+
const accuracy = $dvr.uint8();
|
|
47
|
+
return { accuracy };
|
|
48
|
+
}
|
|
49
|
+
__name(timeAccuracyFromDataView, "timeAccuracyFromDataView");
|
|
50
|
+
//# sourceMappingURL=time-accuracy.cjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/packages/bluetools/time-accuracy.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AAgB7C,MAAM,oBAAN,MAAM,kBAAyC;AAAA;AAAA,EAMlD,OAAc,aAAa,UAAqC,YAAmD;AAC/G,WAAO,IAAI,kBAAiB,yBAAyB,UAAU,UAAU,CAAC;AAAA,EAC9E;AAAA,EAEgB;AAAA,EAET,YAAY,cAA4B;AAC3C,SAAK,WAAW,aAAa;AAAA,EACjC;AACJ;AAfsD;AAClD,cADS,mBACc,eAAc;AACrC,cAFS,mBAEc,aAAY;AACnC,cAHS,mBAGc,QAAO;AAH3B,IAAM,mBAAN;AAkBA,SAAS,yBAAyB,UAAqC,aAAqB,GAAiB;AAChH,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,WAAW,KAAK,MAAM;AAC5B,SAAO,EAAE,SAAS;AACtB;AAJgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type DataViewReader } from "./data-view-reader.js";
|
|
2
|
+
export interface TimeAccuracy {
|
|
3
|
+
/**
|
|
4
|
+
* <p>Format: `uint8`</p>
|
|
5
|
+
* <p>Accuracy (drift) of time information in steps of 1/8 of a second (125ms) compared to a reference time source. Valid range from 0 to 253 (0s to 31.5s). A value of 254 means Accuracy is out of range (> 31.5s). A value of 255 means Accuracy is unknown.</p>
|
|
6
|
+
* <p>Minimum: 0</p>
|
|
7
|
+
* <p>Maximum: 253</p>
|
|
8
|
+
*/
|
|
9
|
+
accuracy: number;
|
|
10
|
+
}
|
|
11
|
+
/** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.time_accuracy.xml | Time Accuracy} */
|
|
12
|
+
export declare class TimeAccuracyImpl implements TimeAccuracy {
|
|
13
|
+
static readonly UUID_PREFIX = 10770;
|
|
14
|
+
static readonly TYPE_NAME = "org.bluetooth.characteristic.time_accuracy";
|
|
15
|
+
static readonly NAME = "Time Accuracy";
|
|
16
|
+
/** Parse from a DataView into {@link TimeAccuracy}. */
|
|
17
|
+
static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): TimeAccuracyImpl;
|
|
18
|
+
readonly accuracy: number;
|
|
19
|
+
constructor(timeAccuracy: TimeAccuracy);
|
|
20
|
+
}
|
|
21
|
+
/** Parse from a DataView into {@link TimeAccuracy}. */
|
|
22
|
+
export declare function timeAccuracyFromDataView(dataView: DataView | DataViewReader, indexStart?: number): TimeAccuracy;
|
|
23
|
+
//# sourceMappingURL=time-accuracy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-accuracy.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/time-accuracy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,MAAM,WAAW,YAAY;IACzB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,uJAAuJ;AACvJ,qBAAa,gBAAiB,YAAW,YAAY;IACjD,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,gDAAgD;IAChF,gBAAuB,IAAI,mBAAmB;IAE9C,uDAAuD;WACzC,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,gBAAgB;IAIlH,SAAgB,QAAQ,EAAE,MAAM,CAAC;gBAEd,YAAY,EAAE,YAAY;CAGhD;AAED,uDAAuD;AACvD,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,YAAY,CAIlH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 _TimeAccuracyImpl = class _TimeAccuracyImpl {
|
|
7
|
+
/** Parse from a DataView into {@link TimeAccuracy}. */
|
|
8
|
+
static fromDataView(dataView, indexStart) {
|
|
9
|
+
return new _TimeAccuracyImpl(timeAccuracyFromDataView(dataView, indexStart));
|
|
10
|
+
}
|
|
11
|
+
accuracy;
|
|
12
|
+
constructor(timeAccuracy) {
|
|
13
|
+
this.accuracy = timeAccuracy.accuracy;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
__name(_TimeAccuracyImpl, "TimeAccuracyImpl");
|
|
17
|
+
__publicField(_TimeAccuracyImpl, "UUID_PREFIX", 10770);
|
|
18
|
+
__publicField(_TimeAccuracyImpl, "TYPE_NAME", "org.bluetooth.characteristic.time_accuracy");
|
|
19
|
+
__publicField(_TimeAccuracyImpl, "NAME", "Time Accuracy");
|
|
20
|
+
let TimeAccuracyImpl = _TimeAccuracyImpl;
|
|
21
|
+
function timeAccuracyFromDataView(dataView, indexStart = 0) {
|
|
22
|
+
const $dvr = dataViewReader(dataView, indexStart);
|
|
23
|
+
const accuracy = $dvr.uint8();
|
|
24
|
+
return { accuracy };
|
|
25
|
+
}
|
|
26
|
+
__name(timeAccuracyFromDataView, "timeAccuracyFromDataView");
|
|
27
|
+
export {
|
|
28
|
+
TimeAccuracyImpl,
|
|
29
|
+
timeAccuracyFromDataView
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=time-accuracy.mjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/packages/bluetools/time-accuracy.ts"],
|
|
4
|
+
"mappings": ";;;;AAAA,SAA8B,sBAAsB;AAgB7C,MAAM,oBAAN,MAAM,kBAAyC;AAAA;AAAA,EAMlD,OAAc,aAAa,UAAqC,YAAmD;AAC/G,WAAO,IAAI,kBAAiB,yBAAyB,UAAU,UAAU,CAAC;AAAA,EAC9E;AAAA,EAEgB;AAAA,EAET,YAAY,cAA4B;AAC3C,SAAK,WAAW,aAAa;AAAA,EACjC;AACJ;AAfsD;AAClD,cADS,mBACc,eAAc;AACrC,cAFS,mBAEc,aAAY;AACnC,cAHS,mBAGc,QAAO;AAH3B,IAAM,mBAAN;AAkBA,SAAS,yBAAyB,UAAqC,aAAqB,GAAiB;AAChH,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,WAAW,KAAK,MAAM;AAC5B,SAAO,EAAE,SAAS;AACtB;AAJgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/time-source.cjs
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
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 time_source_exports = {};
|
|
23
|
+
__export(time_source_exports, {
|
|
24
|
+
TimeSourceImpl: () => TimeSourceImpl,
|
|
25
|
+
timeSourceFromDataView: () => timeSourceFromDataView
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(time_source_exports);
|
|
28
|
+
var import_data_view_reader = require("./data-view-reader.cjs");
|
|
29
|
+
const _TimeSourceImpl = class _TimeSourceImpl {
|
|
30
|
+
/** Parse from a DataView into {@link TimeSource}. */
|
|
31
|
+
static fromDataView(dataView, indexStart) {
|
|
32
|
+
return new _TimeSourceImpl(timeSourceFromDataView(dataView, indexStart));
|
|
33
|
+
}
|
|
34
|
+
timeSource;
|
|
35
|
+
constructor(timeSource) {
|
|
36
|
+
this.timeSource = timeSource.timeSource;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
__name(_TimeSourceImpl, "TimeSourceImpl");
|
|
40
|
+
__publicField(_TimeSourceImpl, "UUID_PREFIX", 10771);
|
|
41
|
+
__publicField(_TimeSourceImpl, "TYPE_NAME", "org.bluetooth.characteristic.time_source");
|
|
42
|
+
__publicField(_TimeSourceImpl, "NAME", "Time Source");
|
|
43
|
+
let TimeSourceImpl = _TimeSourceImpl;
|
|
44
|
+
function timeSourceFromDataView(dataView, indexStart = 0) {
|
|
45
|
+
const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
|
|
46
|
+
const timeSource = $dvr.uint8();
|
|
47
|
+
return { timeSource };
|
|
48
|
+
}
|
|
49
|
+
__name(timeSourceFromDataView, "timeSourceFromDataView");
|
|
50
|
+
//# sourceMappingURL=time-source.cjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/packages/bluetools/time-source.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AA0B7C,MAAM,kBAAN,MAAM,gBAAqC;AAAA;AAAA,EAM9C,OAAc,aAAa,UAAqC,YAAiD;AAC7G,WAAO,IAAI,gBAAe,uBAAuB,UAAU,UAAU,CAAC;AAAA,EAC1E;AAAA,EAEgB;AAAA,EAET,YAAY,YAAwB;AACvC,SAAK,aAAa,WAAW;AAAA,EACjC;AACJ;AAfkD;AAC9C,cADS,iBACc,eAAc;AACrC,cAFS,iBAEc,aAAY;AACnC,cAHS,iBAGc,QAAO;AAH3B,IAAM,iBAAN;AAkBA,SAAS,uBAAuB,UAAqC,aAAqB,GAAe;AAC5G,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,aAAa,KAAK,MAAM;AAC9B,SAAO,EAAE,WAAW;AACxB;AAJgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/time-source.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type DataViewReader } from "./data-view-reader.js";
|
|
2
|
+
export interface TimeSource {
|
|
3
|
+
/**
|
|
4
|
+
* <p>Format: `8bit`</p>
|
|
5
|
+
* <p>Minimum: 0</p>
|
|
6
|
+
* <p>Maximum: 7</p>
|
|
7
|
+
* | Key | Description |
|
|
8
|
+
* | --- | --------------------- |
|
|
9
|
+
* | 0 | Unknown |
|
|
10
|
+
* | 1 | Network Time Protocol |
|
|
11
|
+
* | 2 | GPS |
|
|
12
|
+
* | 3 | Radio Time Signal |
|
|
13
|
+
* | 4 | Manual |
|
|
14
|
+
* | 5 | Atomic Clock |
|
|
15
|
+
* | 6 | Cellular Network |
|
|
16
|
+
*
|
|
17
|
+
* <p>Reserved for future use: 7 to 255</p>
|
|
18
|
+
*/
|
|
19
|
+
timeSource: number;
|
|
20
|
+
}
|
|
21
|
+
/** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.time_source.xml | Time Source} */
|
|
22
|
+
export declare class TimeSourceImpl implements TimeSource {
|
|
23
|
+
static readonly UUID_PREFIX = 10771;
|
|
24
|
+
static readonly TYPE_NAME = "org.bluetooth.characteristic.time_source";
|
|
25
|
+
static readonly NAME = "Time Source";
|
|
26
|
+
/** Parse from a DataView into {@link TimeSource}. */
|
|
27
|
+
static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): TimeSourceImpl;
|
|
28
|
+
readonly timeSource: number;
|
|
29
|
+
constructor(timeSource: TimeSource);
|
|
30
|
+
}
|
|
31
|
+
/** Parse from a DataView into {@link TimeSource}. */
|
|
32
|
+
export declare function timeSourceFromDataView(dataView: DataView | DataViewReader, indexStart?: number): TimeSource;
|
|
33
|
+
//# sourceMappingURL=time-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-source.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/time-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,MAAM,WAAW,UAAU;IACvB;;;;;;;;;;;;;;;OAeG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,mJAAmJ;AACnJ,qBAAa,cAAe,YAAW,UAAU;IAC7C,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,8CAA8C;IAC9E,gBAAuB,IAAI,iBAAiB;IAE5C,qDAAqD;WACvC,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,cAAc;IAIhH,SAAgB,UAAU,EAAE,MAAM,CAAC;gBAEhB,UAAU,EAAE,UAAU;CAG5C;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,UAAU,CAI9G"}
|
package/time-source.mjs
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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 _TimeSourceImpl = class _TimeSourceImpl {
|
|
7
|
+
/** Parse from a DataView into {@link TimeSource}. */
|
|
8
|
+
static fromDataView(dataView, indexStart) {
|
|
9
|
+
return new _TimeSourceImpl(timeSourceFromDataView(dataView, indexStart));
|
|
10
|
+
}
|
|
11
|
+
timeSource;
|
|
12
|
+
constructor(timeSource) {
|
|
13
|
+
this.timeSource = timeSource.timeSource;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
__name(_TimeSourceImpl, "TimeSourceImpl");
|
|
17
|
+
__publicField(_TimeSourceImpl, "UUID_PREFIX", 10771);
|
|
18
|
+
__publicField(_TimeSourceImpl, "TYPE_NAME", "org.bluetooth.characteristic.time_source");
|
|
19
|
+
__publicField(_TimeSourceImpl, "NAME", "Time Source");
|
|
20
|
+
let TimeSourceImpl = _TimeSourceImpl;
|
|
21
|
+
function timeSourceFromDataView(dataView, indexStart = 0) {
|
|
22
|
+
const $dvr = dataViewReader(dataView, indexStart);
|
|
23
|
+
const timeSource = $dvr.uint8();
|
|
24
|
+
return { timeSource };
|
|
25
|
+
}
|
|
26
|
+
__name(timeSourceFromDataView, "timeSourceFromDataView");
|
|
27
|
+
export {
|
|
28
|
+
TimeSourceImpl,
|
|
29
|
+
timeSourceFromDataView
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=time-source.mjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/packages/bluetools/time-source.ts"],
|
|
4
|
+
"mappings": ";;;;AAAA,SAA8B,sBAAsB;AA0B7C,MAAM,kBAAN,MAAM,gBAAqC;AAAA;AAAA,EAM9C,OAAc,aAAa,UAAqC,YAAiD;AAC7G,WAAO,IAAI,gBAAe,uBAAuB,UAAU,UAAU,CAAC;AAAA,EAC1E;AAAA,EAEgB;AAAA,EAET,YAAY,YAAwB;AACvC,SAAK,aAAa,WAAW;AAAA,EACjC;AACJ;AAfkD;AAC9C,cADS,iBACc,eAAc;AACrC,cAFS,iBAEc,aAAY;AACnC,cAHS,iBAGc,QAAO;AAH3B,IAAM,iBAAN;AAkBA,SAAS,uBAAuB,UAAqC,aAAqB,GAAe;AAC5G,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,aAAa,KAAK,MAAM;AAC9B,SAAO,EAAE,WAAW;AACxB;AAJgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 time_update_control_point_exports = {};
|
|
23
|
+
__export(time_update_control_point_exports, {
|
|
24
|
+
TimeUpdateControlPointImpl: () => TimeUpdateControlPointImpl,
|
|
25
|
+
timeUpdateControlPointFromDataView: () => timeUpdateControlPointFromDataView
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(time_update_control_point_exports);
|
|
28
|
+
var import_data_view_reader = require("./data-view-reader.cjs");
|
|
29
|
+
const _TimeUpdateControlPointImpl = class _TimeUpdateControlPointImpl {
|
|
30
|
+
/** Parse from a DataView into {@link TimeUpdateControlPoint}. */
|
|
31
|
+
static fromDataView(dataView, indexStart) {
|
|
32
|
+
return new _TimeUpdateControlPointImpl(timeUpdateControlPointFromDataView(dataView, indexStart));
|
|
33
|
+
}
|
|
34
|
+
timeUpdateControlPoint;
|
|
35
|
+
constructor(timeUpdateControlPoint) {
|
|
36
|
+
this.timeUpdateControlPoint = timeUpdateControlPoint.timeUpdateControlPoint;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
__name(_TimeUpdateControlPointImpl, "TimeUpdateControlPointImpl");
|
|
40
|
+
__publicField(_TimeUpdateControlPointImpl, "UUID_PREFIX", 10774);
|
|
41
|
+
__publicField(_TimeUpdateControlPointImpl, "TYPE_NAME", "org.bluetooth.characteristic.time_update_control_point");
|
|
42
|
+
__publicField(_TimeUpdateControlPointImpl, "NAME", "Time Update Control Point");
|
|
43
|
+
let TimeUpdateControlPointImpl = _TimeUpdateControlPointImpl;
|
|
44
|
+
function timeUpdateControlPointFromDataView(dataView, indexStart = 0) {
|
|
45
|
+
const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
|
|
46
|
+
const timeUpdateControlPoint = $dvr.uint8();
|
|
47
|
+
return { timeUpdateControlPoint };
|
|
48
|
+
}
|
|
49
|
+
__name(timeUpdateControlPointFromDataView, "timeUpdateControlPointFromDataView");
|
|
50
|
+
//# sourceMappingURL=time-update-control-point.cjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/packages/bluetools/time-update-control-point.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AAsB7C,MAAM,8BAAN,MAAM,4BAA6D;AAAA;AAAA,EAMtE,OAAc,aAAa,UAAqC,YAA6D;AACzH,WAAO,IAAI,4BAA2B,mCAAmC,UAAU,UAAU,CAAC;AAAA,EAClG;AAAA,EAEgB;AAAA,EAET,YAAY,wBAAgD;AAC/D,SAAK,yBAAyB,uBAAuB;AAAA,EACzD;AACJ;AAf0E;AACtE,cADS,6BACc,eAAc;AACrC,cAFS,6BAEc,aAAY;AACnC,cAHS,6BAGc,QAAO;AAH3B,IAAM,6BAAN;AAkBA,SAAS,mCAAmC,UAAqC,aAAqB,GAA2B;AACpI,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,yBAAyB,KAAK,MAAM;AAC1C,SAAO,EAAE,uBAAuB;AACpC;AAJgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type DataViewReader } from "./data-view-reader.js";
|
|
2
|
+
export interface TimeUpdateControlPoint {
|
|
3
|
+
/**
|
|
4
|
+
* <p>Format: `uint8`</p>
|
|
5
|
+
* <p>Minimum: 1</p>
|
|
6
|
+
* <p>Maximum: 2</p>
|
|
7
|
+
* | Key | Description |
|
|
8
|
+
* | --- | ----------------------- |
|
|
9
|
+
* | 1 | Get Reference Update |
|
|
10
|
+
* | 2 | Cancel Reference Update |
|
|
11
|
+
*
|
|
12
|
+
* <p>Reserved: 0</p>
|
|
13
|
+
* <p>Reserved for future use: 3 to 255</p>
|
|
14
|
+
*/
|
|
15
|
+
timeUpdateControlPoint: number;
|
|
16
|
+
}
|
|
17
|
+
/** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.time_update_control_point.xml | Time Update Control Point} */
|
|
18
|
+
export declare class TimeUpdateControlPointImpl implements TimeUpdateControlPoint {
|
|
19
|
+
static readonly UUID_PREFIX = 10774;
|
|
20
|
+
static readonly TYPE_NAME = "org.bluetooth.characteristic.time_update_control_point";
|
|
21
|
+
static readonly NAME = "Time Update Control Point";
|
|
22
|
+
/** Parse from a DataView into {@link TimeUpdateControlPoint}. */
|
|
23
|
+
static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): TimeUpdateControlPointImpl;
|
|
24
|
+
readonly timeUpdateControlPoint: number;
|
|
25
|
+
constructor(timeUpdateControlPoint: TimeUpdateControlPoint);
|
|
26
|
+
}
|
|
27
|
+
/** Parse from a DataView into {@link TimeUpdateControlPoint}. */
|
|
28
|
+
export declare function timeUpdateControlPointFromDataView(dataView: DataView | DataViewReader, indexStart?: number): TimeUpdateControlPoint;
|
|
29
|
+
//# sourceMappingURL=time-update-control-point.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-update-control-point.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/time-update-control-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,MAAM,WAAW,sBAAsB;IACnC;;;;;;;;;;;OAWG;IACH,sBAAsB,EAAE,MAAM,CAAC;CAClC;AAED,+KAA+K;AAC/K,qBAAa,0BAA2B,YAAW,sBAAsB;IACrE,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,4DAA4D;IAC5F,gBAAuB,IAAI,+BAA+B;IAE1D,iEAAiE;WACnD,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,0BAA0B;IAI5H,SAAgB,sBAAsB,EAAE,MAAM,CAAC;gBAE5B,sBAAsB,EAAE,sBAAsB;CAGpE;AAED,iEAAiE;AACjE,wBAAgB,kCAAkC,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,sBAAsB,CAItI"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 _TimeUpdateControlPointImpl = class _TimeUpdateControlPointImpl {
|
|
7
|
+
/** Parse from a DataView into {@link TimeUpdateControlPoint}. */
|
|
8
|
+
static fromDataView(dataView, indexStart) {
|
|
9
|
+
return new _TimeUpdateControlPointImpl(timeUpdateControlPointFromDataView(dataView, indexStart));
|
|
10
|
+
}
|
|
11
|
+
timeUpdateControlPoint;
|
|
12
|
+
constructor(timeUpdateControlPoint) {
|
|
13
|
+
this.timeUpdateControlPoint = timeUpdateControlPoint.timeUpdateControlPoint;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
__name(_TimeUpdateControlPointImpl, "TimeUpdateControlPointImpl");
|
|
17
|
+
__publicField(_TimeUpdateControlPointImpl, "UUID_PREFIX", 10774);
|
|
18
|
+
__publicField(_TimeUpdateControlPointImpl, "TYPE_NAME", "org.bluetooth.characteristic.time_update_control_point");
|
|
19
|
+
__publicField(_TimeUpdateControlPointImpl, "NAME", "Time Update Control Point");
|
|
20
|
+
let TimeUpdateControlPointImpl = _TimeUpdateControlPointImpl;
|
|
21
|
+
function timeUpdateControlPointFromDataView(dataView, indexStart = 0) {
|
|
22
|
+
const $dvr = dataViewReader(dataView, indexStart);
|
|
23
|
+
const timeUpdateControlPoint = $dvr.uint8();
|
|
24
|
+
return { timeUpdateControlPoint };
|
|
25
|
+
}
|
|
26
|
+
__name(timeUpdateControlPointFromDataView, "timeUpdateControlPointFromDataView");
|
|
27
|
+
export {
|
|
28
|
+
TimeUpdateControlPointImpl,
|
|
29
|
+
timeUpdateControlPointFromDataView
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=time-update-control-point.mjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/packages/bluetools/time-update-control-point.ts"],
|
|
4
|
+
"mappings": ";;;;AAAA,SAA8B,sBAAsB;AAsB7C,MAAM,8BAAN,MAAM,4BAA6D;AAAA;AAAA,EAMtE,OAAc,aAAa,UAAqC,YAA6D;AACzH,WAAO,IAAI,4BAA2B,mCAAmC,UAAU,UAAU,CAAC;AAAA,EAClG;AAAA,EAEgB;AAAA,EAET,YAAY,wBAAgD;AAC/D,SAAK,yBAAyB,uBAAuB;AAAA,EACzD;AACJ;AAf0E;AACtE,cADS,6BACc,eAAc;AACrC,cAFS,6BAEc,aAAY;AACnC,cAHS,6BAGc,QAAO;AAH3B,IAAM,6BAAN;AAkBA,SAAS,mCAAmC,UAAqC,aAAqB,GAA2B;AACpI,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,yBAAyB,KAAK,MAAM;AAC1C,SAAO,EAAE,uBAAuB;AACpC;AAJgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 time_update_state_exports = {};
|
|
23
|
+
__export(time_update_state_exports, {
|
|
24
|
+
TimeUpdateStateImpl: () => TimeUpdateStateImpl,
|
|
25
|
+
timeUpdateStateFromDataView: () => timeUpdateStateFromDataView
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(time_update_state_exports);
|
|
28
|
+
var import_data_view_reader = require("./data-view-reader.cjs");
|
|
29
|
+
const _TimeUpdateStateImpl = class _TimeUpdateStateImpl {
|
|
30
|
+
/** Parse from a DataView into {@link TimeUpdateState}. */
|
|
31
|
+
static fromDataView(dataView, indexStart) {
|
|
32
|
+
return new _TimeUpdateStateImpl(timeUpdateStateFromDataView(dataView, indexStart));
|
|
33
|
+
}
|
|
34
|
+
currentState;
|
|
35
|
+
result;
|
|
36
|
+
constructor(timeUpdateState) {
|
|
37
|
+
this.currentState = timeUpdateState.currentState;
|
|
38
|
+
this.result = timeUpdateState.result;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
__name(_TimeUpdateStateImpl, "TimeUpdateStateImpl");
|
|
42
|
+
__publicField(_TimeUpdateStateImpl, "UUID_PREFIX", 10775);
|
|
43
|
+
__publicField(_TimeUpdateStateImpl, "TYPE_NAME", "org.bluetooth.characteristic.time_update_state");
|
|
44
|
+
__publicField(_TimeUpdateStateImpl, "NAME", "Time Update State");
|
|
45
|
+
let TimeUpdateStateImpl = _TimeUpdateStateImpl;
|
|
46
|
+
function timeUpdateStateFromDataView(dataView, indexStart = 0) {
|
|
47
|
+
const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
|
|
48
|
+
const currentState = $dvr.uint8();
|
|
49
|
+
const result = $dvr.uint8();
|
|
50
|
+
return { currentState, result };
|
|
51
|
+
}
|
|
52
|
+
__name(timeUpdateStateFromDataView, "timeUpdateStateFromDataView");
|
|
53
|
+
//# sourceMappingURL=time-update-state.cjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/packages/bluetools/time-update-state.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AAqC7C,MAAM,uBAAN,MAAM,qBAA+C;AAAA;AAAA,EAMxD,OAAc,aAAa,UAAqC,YAAsD;AAClH,WAAO,IAAI,qBAAoB,4BAA4B,UAAU,UAAU,CAAC;AAAA,EACpF;AAAA,EAEgB;AAAA,EACA;AAAA,EAET,YAAY,iBAAkC;AACjD,SAAK,eAAe,gBAAgB;AACpC,SAAK,SAAS,gBAAgB;AAAA,EAClC;AACJ;AAjB4D;AACxD,cADS,sBACc,eAAc;AACrC,cAFS,sBAEc,aAAY;AACnC,cAHS,sBAGc,QAAO;AAH3B,IAAM,sBAAN;AAoBA,SAAS,4BAA4B,UAAqC,aAAqB,GAAoB;AACtH,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,eAAe,KAAK,MAAM;AAChC,QAAM,SAAS,KAAK,MAAM;AAC1B,SAAO,EAAE,cAAc,OAAO;AAClC;AALgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type DataViewReader } from "./data-view-reader.js";
|
|
2
|
+
export interface TimeUpdateState {
|
|
3
|
+
/**
|
|
4
|
+
* <p>Format: `uint8`</p>
|
|
5
|
+
* <p>Minimum: 0</p>
|
|
6
|
+
* <p>Maximum: 1</p>
|
|
7
|
+
* | Key | Description |
|
|
8
|
+
* | --- | -------------- |
|
|
9
|
+
* | 0 | Idle |
|
|
10
|
+
* | 1 | Update Pending |
|
|
11
|
+
*
|
|
12
|
+
* <p>Reserved: 2 to 255</p>
|
|
13
|
+
*/
|
|
14
|
+
currentState: number;
|
|
15
|
+
/**
|
|
16
|
+
* <p>Format: `uint8`</p>
|
|
17
|
+
* <p>Minimum: 0</p>
|
|
18
|
+
* <p>Maximum: 4</p>
|
|
19
|
+
* | Key | Description |
|
|
20
|
+
* | --- | --------------------------------- |
|
|
21
|
+
* | 0 | Successful |
|
|
22
|
+
* | 1 | Canceled |
|
|
23
|
+
* | 2 | No Connection To Reference |
|
|
24
|
+
* | 3 | Reference responded with an error |
|
|
25
|
+
* | 4 | Timeout |
|
|
26
|
+
* | 5 | Update not attempted after reset |
|
|
27
|
+
*
|
|
28
|
+
* <p>Reserved: 6 to 255</p>
|
|
29
|
+
*/
|
|
30
|
+
result: number;
|
|
31
|
+
}
|
|
32
|
+
/** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.time_update_state.xml | Time Update State} */
|
|
33
|
+
export declare class TimeUpdateStateImpl implements TimeUpdateState {
|
|
34
|
+
static readonly UUID_PREFIX = 10775;
|
|
35
|
+
static readonly TYPE_NAME = "org.bluetooth.characteristic.time_update_state";
|
|
36
|
+
static readonly NAME = "Time Update State";
|
|
37
|
+
/** Parse from a DataView into {@link TimeUpdateState}. */
|
|
38
|
+
static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): TimeUpdateStateImpl;
|
|
39
|
+
readonly currentState: number;
|
|
40
|
+
readonly result: number;
|
|
41
|
+
constructor(timeUpdateState: TimeUpdateState);
|
|
42
|
+
}
|
|
43
|
+
/** Parse from a DataView into {@link TimeUpdateState}. */
|
|
44
|
+
export declare function timeUpdateStateFromDataView(dataView: DataView | DataViewReader, indexStart?: number): TimeUpdateState;
|
|
45
|
+
//# sourceMappingURL=time-update-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-update-state.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/time-update-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,MAAM,WAAW,eAAe;IAC5B;;;;;;;;;;OAUG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;;;OAcG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,+JAA+J;AAC/J,qBAAa,mBAAoB,YAAW,eAAe;IACvD,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,oDAAoD;IACpF,gBAAuB,IAAI,uBAAuB;IAElD,0DAA0D;WAC5C,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,mBAAmB;IAIrH,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,SAAgB,MAAM,EAAE,MAAM,CAAC;gBAEZ,eAAe,EAAE,eAAe;CAItD;AAED,0DAA0D;AAC1D,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,eAAe,CAKxH"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 _TimeUpdateStateImpl = class _TimeUpdateStateImpl {
|
|
7
|
+
/** Parse from a DataView into {@link TimeUpdateState}. */
|
|
8
|
+
static fromDataView(dataView, indexStart) {
|
|
9
|
+
return new _TimeUpdateStateImpl(timeUpdateStateFromDataView(dataView, indexStart));
|
|
10
|
+
}
|
|
11
|
+
currentState;
|
|
12
|
+
result;
|
|
13
|
+
constructor(timeUpdateState) {
|
|
14
|
+
this.currentState = timeUpdateState.currentState;
|
|
15
|
+
this.result = timeUpdateState.result;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
__name(_TimeUpdateStateImpl, "TimeUpdateStateImpl");
|
|
19
|
+
__publicField(_TimeUpdateStateImpl, "UUID_PREFIX", 10775);
|
|
20
|
+
__publicField(_TimeUpdateStateImpl, "TYPE_NAME", "org.bluetooth.characteristic.time_update_state");
|
|
21
|
+
__publicField(_TimeUpdateStateImpl, "NAME", "Time Update State");
|
|
22
|
+
let TimeUpdateStateImpl = _TimeUpdateStateImpl;
|
|
23
|
+
function timeUpdateStateFromDataView(dataView, indexStart = 0) {
|
|
24
|
+
const $dvr = dataViewReader(dataView, indexStart);
|
|
25
|
+
const currentState = $dvr.uint8();
|
|
26
|
+
const result = $dvr.uint8();
|
|
27
|
+
return { currentState, result };
|
|
28
|
+
}
|
|
29
|
+
__name(timeUpdateStateFromDataView, "timeUpdateStateFromDataView");
|
|
30
|
+
export {
|
|
31
|
+
TimeUpdateStateImpl,
|
|
32
|
+
timeUpdateStateFromDataView
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=time-update-state.mjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/packages/bluetools/time-update-state.ts"],
|
|
4
|
+
"mappings": ";;;;AAAA,SAA8B,sBAAsB;AAqC7C,MAAM,uBAAN,MAAM,qBAA+C;AAAA;AAAA,EAMxD,OAAc,aAAa,UAAqC,YAAsD;AAClH,WAAO,IAAI,qBAAoB,4BAA4B,UAAU,UAAU,CAAC;AAAA,EACpF;AAAA,EAEgB;AAAA,EACA;AAAA,EAET,YAAY,iBAAkC;AACjD,SAAK,eAAe,gBAAgB;AACpC,SAAK,SAAS,gBAAgB;AAAA,EAClC;AACJ;AAjB4D;AACxD,cADS,sBACc,eAAc;AACrC,cAFS,sBAEc,aAAY;AACnC,cAHS,sBAGc,QAAO;AAH3B,IAAM,sBAAN;AAoBA,SAAS,4BAA4B,UAAqC,aAAqB,GAAoB;AACtH,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,eAAe,KAAK,MAAM;AAChC,QAAM,SAAS,KAAK,MAAM;AAC1B,SAAO,EAAE,cAAc,OAAO;AAClC;AALgB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|