@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.
Files changed (410) hide show
  1. package/README.md +2624 -0
  2. package/assigned.cjs +577 -0
  3. package/assigned.cjs.map +6 -0
  4. package/assigned.d.ts +552 -0
  5. package/assigned.d.ts.map +1 -0
  6. package/assigned.mjs +557 -0
  7. package/assigned.mjs.map +6 -0
  8. package/battery-level.cjs +50 -0
  9. package/battery-level.cjs.map +6 -0
  10. package/battery-level.d.ts +25 -0
  11. package/battery-level.d.ts.map +1 -0
  12. package/battery-level.mjs +31 -0
  13. package/battery-level.mjs.map +6 -0
  14. package/cross-trainer-data.cjs +188 -0
  15. package/cross-trainer-data.cjs.map +6 -0
  16. package/cross-trainer-data.d.ts +192 -0
  17. package/cross-trainer-data.d.ts.map +1 -0
  18. package/cross-trainer-data.mjs +169 -0
  19. package/cross-trainer-data.mjs.map +6 -0
  20. package/csc-feature.cjs +59 -0
  21. package/csc-feature.cjs.map +6 -0
  22. package/csc-feature.d.ts +55 -0
  23. package/csc-feature.d.ts.map +1 -0
  24. package/csc-feature.mjs +40 -0
  25. package/csc-feature.mjs.map +6 -0
  26. package/csc-measurement.cjs +76 -0
  27. package/csc-measurement.cjs.map +6 -0
  28. package/csc-measurement.d.ts +57 -0
  29. package/csc-measurement.d.ts.map +1 -0
  30. package/csc-measurement.mjs +57 -0
  31. package/csc-measurement.mjs.map +6 -0
  32. package/current-time.cjs +66 -0
  33. package/current-time.cjs.map +6 -0
  34. package/current-time.d.ts +65 -0
  35. package/current-time.d.ts.map +1 -0
  36. package/current-time.mjs +47 -0
  37. package/current-time.mjs.map +6 -0
  38. package/data-view-from-hex.cjs +34 -0
  39. package/data-view-from-hex.cjs.map +6 -0
  40. package/data-view-from-hex.d.ts +6 -0
  41. package/data-view-from-hex.d.ts.map +1 -0
  42. package/data-view-from-hex.mjs +15 -0
  43. package/data-view-from-hex.mjs.map +6 -0
  44. package/data-view-reader.cjs +115 -0
  45. package/data-view-reader.cjs.map +6 -0
  46. package/data-view-reader.d.ts +21 -0
  47. package/data-view-reader.d.ts.map +1 -0
  48. package/data-view-reader.mjs +96 -0
  49. package/data-view-reader.mjs.map +6 -0
  50. package/date-time.cjs +65 -0
  51. package/date-time.cjs.map +6 -0
  52. package/date-time.d.ts +89 -0
  53. package/date-time.d.ts.map +1 -0
  54. package/date-time.mjs +46 -0
  55. package/date-time.mjs.map +6 -0
  56. package/day-date-time.cjs +55 -0
  57. package/day-date-time.cjs.map +6 -0
  58. package/day-date-time.d.ts +21 -0
  59. package/day-date-time.d.ts.map +1 -0
  60. package/day-date-time.mjs +36 -0
  61. package/day-date-time.mjs.map +6 -0
  62. package/day-of-week.cjs +50 -0
  63. package/day-of-week.cjs.map +6 -0
  64. package/day-of-week.d.ts +33 -0
  65. package/day-of-week.d.ts.map +1 -0
  66. package/day-of-week.mjs +31 -0
  67. package/day-of-week.mjs.map +6 -0
  68. package/dst-offset.cjs +50 -0
  69. package/dst-offset.cjs.map +6 -0
  70. package/dst-offset.d.ts +30 -0
  71. package/dst-offset.d.ts.map +1 -0
  72. package/dst-offset.mjs +31 -0
  73. package/dst-offset.mjs.map +6 -0
  74. package/elevation.cjs +50 -0
  75. package/elevation.cjs.map +6 -0
  76. package/elevation.d.ts +22 -0
  77. package/elevation.d.ts.map +1 -0
  78. package/elevation.mjs +31 -0
  79. package/elevation.mjs.map +6 -0
  80. package/exact-time-256.cjs +54 -0
  81. package/exact-time-256.cjs.map +6 -0
  82. package/exact-time-256.d.ts +27 -0
  83. package/exact-time-256.d.ts.map +1 -0
  84. package/exact-time-256.mjs +35 -0
  85. package/exact-time-256.mjs.map +6 -0
  86. package/firmware-revision-string.cjs +50 -0
  87. package/firmware-revision-string.cjs.map +6 -0
  88. package/firmware-revision-string.d.ts +19 -0
  89. package/firmware-revision-string.d.ts.map +1 -0
  90. package/firmware-revision-string.mjs +31 -0
  91. package/firmware-revision-string.mjs.map +6 -0
  92. package/five-zone-heart-rate-limits.cjs +59 -0
  93. package/five-zone-heart-rate-limits.cjs.map +6 -0
  94. package/five-zone-heart-rate-limits.d.ts +47 -0
  95. package/five-zone-heart-rate-limits.d.ts.map +1 -0
  96. package/five-zone-heart-rate-limits.mjs +40 -0
  97. package/five-zone-heart-rate-limits.mjs.map +6 -0
  98. package/gatt-characteristic-presentation-format.cjs +62 -0
  99. package/gatt-characteristic-presentation-format.cjs.map +6 -0
  100. package/gatt-characteristic-presentation-format.d.ts +91 -0
  101. package/gatt-characteristic-presentation-format.d.ts.map +1 -0
  102. package/gatt-characteristic-presentation-format.mjs +43 -0
  103. package/gatt-characteristic-presentation-format.mjs.map +6 -0
  104. package/gatt.cjs +57 -0
  105. package/gatt.cjs.map +6 -0
  106. package/gatt.d.ts +4 -0
  107. package/gatt.d.ts.map +1 -0
  108. package/gatt.mjs +38 -0
  109. package/gatt.mjs.map +6 -0
  110. package/glucose-feature.cjs +83 -0
  111. package/glucose-feature.cjs.map +6 -0
  112. package/glucose-feature.d.ts +127 -0
  113. package/glucose-feature.d.ts.map +1 -0
  114. package/glucose-feature.mjs +64 -0
  115. package/glucose-feature.mjs.map +6 -0
  116. package/glucose-measurement-context.cjs +133 -0
  117. package/glucose-measurement-context.cjs.map +6 -0
  118. package/glucose-measurement-context.d.ts +183 -0
  119. package/glucose-measurement-context.d.ts.map +1 -0
  120. package/glucose-measurement-context.mjs +114 -0
  121. package/glucose-measurement-context.mjs.map +6 -0
  122. package/glucose-measurement.cjs +136 -0
  123. package/glucose-measurement.cjs.map +6 -0
  124. package/glucose-measurement.d.ts +230 -0
  125. package/glucose-measurement.d.ts.map +1 -0
  126. package/glucose-measurement.mjs +117 -0
  127. package/glucose-measurement.mjs.map +6 -0
  128. package/hardware-revision-string.cjs +50 -0
  129. package/hardware-revision-string.cjs.map +6 -0
  130. package/hardware-revision-string.d.ts +19 -0
  131. package/hardware-revision-string.d.ts.map +1 -0
  132. package/hardware-revision-string.mjs +31 -0
  133. package/hardware-revision-string.mjs.map +6 -0
  134. package/heart-rate-control-point.cjs +50 -0
  135. package/heart-rate-control-point.cjs.map +6 -0
  136. package/heart-rate-control-point.d.ts +26 -0
  137. package/heart-rate-control-point.d.ts.map +1 -0
  138. package/heart-rate-control-point.mjs +31 -0
  139. package/heart-rate-control-point.mjs.map +6 -0
  140. package/heart-rate-max.cjs +50 -0
  141. package/heart-rate-max.cjs.map +6 -0
  142. package/heart-rate-max.d.ts +23 -0
  143. package/heart-rate-max.d.ts.map +1 -0
  144. package/heart-rate-max.mjs +31 -0
  145. package/heart-rate-max.mjs.map +6 -0
  146. package/heart-rate-measurement.cjs +79 -0
  147. package/heart-rate-measurement.cjs.map +6 -0
  148. package/heart-rate-measurement.d.ts +65 -0
  149. package/heart-rate-measurement.d.ts.map +1 -0
  150. package/heart-rate-measurement.mjs +60 -0
  151. package/heart-rate-measurement.mjs.map +6 -0
  152. package/heart-rate.cjs +58 -0
  153. package/heart-rate.cjs.map +6 -0
  154. package/heart-rate.d.ts +7 -0
  155. package/heart-rate.d.ts.map +1 -0
  156. package/heart-rate.mjs +39 -0
  157. package/heart-rate.mjs.map +6 -0
  158. package/index.cjs +84 -0
  159. package/index.cjs.map +6 -0
  160. package/index.d.ts +67 -0
  161. package/index.d.ts.map +1 -0
  162. package/index.mjs +67 -0
  163. package/index.mjs.map +6 -0
  164. package/indoor-bike-data.cjs +153 -0
  165. package/indoor-bike-data.cjs.map +6 -0
  166. package/indoor-bike-data.d.ts +146 -0
  167. package/indoor-bike-data.d.ts.map +1 -0
  168. package/indoor-bike-data.mjs +134 -0
  169. package/indoor-bike-data.mjs.map +6 -0
  170. package/language.cjs +50 -0
  171. package/language.cjs.map +6 -0
  172. package/language.d.ts +22 -0
  173. package/language.d.ts.map +1 -0
  174. package/language.mjs +31 -0
  175. package/language.mjs.map +6 -0
  176. package/latitude.cjs +50 -0
  177. package/latitude.cjs.map +6 -0
  178. package/latitude.d.ts +19 -0
  179. package/latitude.d.ts.map +1 -0
  180. package/latitude.mjs +31 -0
  181. package/latitude.mjs.map +6 -0
  182. package/local-time-information.cjs +55 -0
  183. package/local-time-information.cjs.map +6 -0
  184. package/local-time-information.d.ts +21 -0
  185. package/local-time-information.d.ts.map +1 -0
  186. package/local-time-information.mjs +36 -0
  187. package/local-time-information.mjs.map +6 -0
  188. package/location-and-speed.cjs +114 -0
  189. package/location-and-speed.cjs.map +6 -0
  190. package/location-and-speed.d.ts +182 -0
  191. package/location-and-speed.d.ts.map +1 -0
  192. package/location-and-speed.mjs +95 -0
  193. package/location-and-speed.mjs.map +6 -0
  194. package/location-name.cjs +50 -0
  195. package/location-name.cjs.map +6 -0
  196. package/location-name.d.ts +19 -0
  197. package/location-name.d.ts.map +1 -0
  198. package/location-name.mjs +31 -0
  199. package/location-name.mjs.map +6 -0
  200. package/longitude.cjs +50 -0
  201. package/longitude.cjs.map +6 -0
  202. package/longitude.d.ts +19 -0
  203. package/longitude.d.ts.map +1 -0
  204. package/longitude.mjs +31 -0
  205. package/longitude.mjs.map +6 -0
  206. package/manufacturer-name-string.cjs +50 -0
  207. package/manufacturer-name-string.cjs.map +6 -0
  208. package/manufacturer-name-string.d.ts +19 -0
  209. package/manufacturer-name-string.d.ts.map +1 -0
  210. package/manufacturer-name-string.mjs +31 -0
  211. package/manufacturer-name-string.mjs.map +6 -0
  212. package/maximum-recommended-heart-rate.cjs +50 -0
  213. package/maximum-recommended-heart-rate.cjs.map +6 -0
  214. package/maximum-recommended-heart-rate.d.ts +23 -0
  215. package/maximum-recommended-heart-rate.d.ts.map +1 -0
  216. package/maximum-recommended-heart-rate.mjs +31 -0
  217. package/maximum-recommended-heart-rate.mjs.map +6 -0
  218. package/measurement-interval.cjs +50 -0
  219. package/measurement-interval.cjs.map +6 -0
  220. package/measurement-interval.d.ts +27 -0
  221. package/measurement-interval.d.ts.map +1 -0
  222. package/measurement-interval.mjs +31 -0
  223. package/measurement-interval.mjs.map +6 -0
  224. package/model-number-string.cjs +50 -0
  225. package/model-number-string.cjs.map +6 -0
  226. package/model-number-string.d.ts +19 -0
  227. package/model-number-string.d.ts.map +1 -0
  228. package/model-number-string.mjs +31 -0
  229. package/model-number-string.mjs.map +6 -0
  230. package/navigation.cjs +90 -0
  231. package/navigation.cjs.map +6 -0
  232. package/navigation.d.ts +134 -0
  233. package/navigation.d.ts.map +1 -0
  234. package/navigation.mjs +71 -0
  235. package/navigation.mjs.map +6 -0
  236. package/number-of-digitals.cjs +50 -0
  237. package/number-of-digitals.cjs.map +6 -0
  238. package/number-of-digitals.d.ts +19 -0
  239. package/number-of-digitals.d.ts.map +1 -0
  240. package/number-of-digitals.mjs +31 -0
  241. package/number-of-digitals.mjs.map +6 -0
  242. package/package.json +456 -0
  243. package/plx-continuous-measurement.cjs +184 -0
  244. package/plx-continuous-measurement.cjs.map +6 -0
  245. package/plx-continuous-measurement.d.ts +352 -0
  246. package/plx-continuous-measurement.d.ts.map +1 -0
  247. package/plx-continuous-measurement.mjs +165 -0
  248. package/plx-continuous-measurement.mjs.map +6 -0
  249. package/plx-features.cjs +163 -0
  250. package/plx-features.cjs.map +6 -0
  251. package/plx-features.d.ts +354 -0
  252. package/plx-features.d.ts.map +1 -0
  253. package/plx-features.mjs +144 -0
  254. package/plx-features.mjs.map +6 -0
  255. package/plx-spot-check-measurement.cjs +169 -0
  256. package/plx-spot-check-measurement.cjs.map +6 -0
  257. package/plx-spot-check-measurement.d.ts +334 -0
  258. package/plx-spot-check-measurement.d.ts.map +1 -0
  259. package/plx-spot-check-measurement.mjs +150 -0
  260. package/plx-spot-check-measurement.mjs.map +6 -0
  261. package/reference-time-information.cjs +61 -0
  262. package/reference-time-information.cjs.map +6 -0
  263. package/reference-time-information.d.ts +38 -0
  264. package/reference-time-information.d.ts.map +1 -0
  265. package/reference-time-information.mjs +42 -0
  266. package/reference-time-information.mjs.map +6 -0
  267. package/resting-heart-rate.cjs +50 -0
  268. package/resting-heart-rate.cjs.map +6 -0
  269. package/resting-heart-rate.d.ts +23 -0
  270. package/resting-heart-rate.d.ts.map +1 -0
  271. package/resting-heart-rate.mjs +31 -0
  272. package/resting-heart-rate.mjs.map +6 -0
  273. package/rsc-feature.cjs +65 -0
  274. package/rsc-feature.cjs.map +6 -0
  275. package/rsc-feature.d.ts +73 -0
  276. package/rsc-feature.d.ts.map +1 -0
  277. package/rsc-feature.mjs +46 -0
  278. package/rsc-feature.mjs.map +6 -0
  279. package/rsc-measurement.cjs +73 -0
  280. package/rsc-measurement.cjs.map +6 -0
  281. package/rsc-measurement.d.ts +70 -0
  282. package/rsc-measurement.d.ts.map +1 -0
  283. package/rsc-measurement.mjs +54 -0
  284. package/rsc-measurement.mjs.map +6 -0
  285. package/scripts/fetch-and-cache-text.d.ts +2 -0
  286. package/scripts/fetch-and-cache-text.d.ts.map +1 -0
  287. package/scripts/from-xml.d.ts +2 -0
  288. package/scripts/from-xml.d.ts.map +1 -0
  289. package/scripts/gatt-assigned.d.ts +2 -0
  290. package/scripts/gatt-assigned.d.ts.map +1 -0
  291. package/sensor-location.cjs +50 -0
  292. package/sensor-location.cjs.map +6 -0
  293. package/sensor-location.d.ts +42 -0
  294. package/sensor-location.d.ts.map +1 -0
  295. package/sensor-location.mjs +31 -0
  296. package/sensor-location.mjs.map +6 -0
  297. package/serial-number-string.cjs +50 -0
  298. package/serial-number-string.cjs.map +6 -0
  299. package/serial-number-string.d.ts +19 -0
  300. package/serial-number-string.d.ts.map +1 -0
  301. package/serial-number-string.mjs +31 -0
  302. package/serial-number-string.mjs.map +6 -0
  303. package/software-revision-string.cjs +50 -0
  304. package/software-revision-string.cjs.map +6 -0
  305. package/software-revision-string.d.ts +19 -0
  306. package/software-revision-string.d.ts.map +1 -0
  307. package/software-revision-string.mjs +31 -0
  308. package/software-revision-string.mjs.map +6 -0
  309. package/supported-heart-rate-range.cjs +56 -0
  310. package/supported-heart-rate-range.cjs.map +6 -0
  311. package/supported-heart-rate-range.d.ts +37 -0
  312. package/supported-heart-rate-range.d.ts.map +1 -0
  313. package/supported-heart-rate-range.mjs +37 -0
  314. package/supported-heart-rate-range.mjs.map +6 -0
  315. package/supported-inclination-range.cjs +56 -0
  316. package/supported-inclination-range.cjs.map +6 -0
  317. package/supported-inclination-range.d.ts +37 -0
  318. package/supported-inclination-range.d.ts.map +1 -0
  319. package/supported-inclination-range.mjs +37 -0
  320. package/supported-inclination-range.mjs.map +6 -0
  321. package/supported-speed-range.cjs +56 -0
  322. package/supported-speed-range.cjs.map +6 -0
  323. package/supported-speed-range.d.ts +37 -0
  324. package/supported-speed-range.d.ts.map +1 -0
  325. package/supported-speed-range.mjs +37 -0
  326. package/supported-speed-range.mjs.map +6 -0
  327. package/system-id.cjs +53 -0
  328. package/system-id.cjs.map +6 -0
  329. package/system-id.d.ts +34 -0
  330. package/system-id.d.ts.map +1 -0
  331. package/system-id.mjs +34 -0
  332. package/system-id.mjs.map +6 -0
  333. package/temperature-measurement.cjs +79 -0
  334. package/temperature-measurement.cjs.map +6 -0
  335. package/temperature-measurement.d.ts +61 -0
  336. package/temperature-measurement.d.ts.map +1 -0
  337. package/temperature-measurement.mjs +60 -0
  338. package/temperature-measurement.mjs.map +6 -0
  339. package/temperature-type.cjs +50 -0
  340. package/temperature-type.cjs.map +6 -0
  341. package/temperature-type.d.ts +37 -0
  342. package/temperature-type.d.ts.map +1 -0
  343. package/temperature-type.mjs +31 -0
  344. package/temperature-type.mjs.map +6 -0
  345. package/temperature.cjs +50 -0
  346. package/temperature.cjs.map +6 -0
  347. package/temperature.d.ts +22 -0
  348. package/temperature.d.ts.map +1 -0
  349. package/temperature.mjs +31 -0
  350. package/temperature.mjs.map +6 -0
  351. package/three-zone-heart-rate-limits.cjs +53 -0
  352. package/three-zone-heart-rate-limits.cjs.map +6 -0
  353. package/three-zone-heart-rate-limits.d.ts +33 -0
  354. package/three-zone-heart-rate-limits.d.ts.map +1 -0
  355. package/three-zone-heart-rate-limits.mjs +34 -0
  356. package/three-zone-heart-rate-limits.mjs.map +6 -0
  357. package/time-accuracy.cjs +50 -0
  358. package/time-accuracy.cjs.map +6 -0
  359. package/time-accuracy.d.ts +23 -0
  360. package/time-accuracy.d.ts.map +1 -0
  361. package/time-accuracy.mjs +31 -0
  362. package/time-accuracy.mjs.map +6 -0
  363. package/time-source.cjs +50 -0
  364. package/time-source.cjs.map +6 -0
  365. package/time-source.d.ts +33 -0
  366. package/time-source.d.ts.map +1 -0
  367. package/time-source.mjs +31 -0
  368. package/time-source.mjs.map +6 -0
  369. package/time-update-control-point.cjs +50 -0
  370. package/time-update-control-point.cjs.map +6 -0
  371. package/time-update-control-point.d.ts +29 -0
  372. package/time-update-control-point.d.ts.map +1 -0
  373. package/time-update-control-point.mjs +31 -0
  374. package/time-update-control-point.mjs.map +6 -0
  375. package/time-update-state.cjs +53 -0
  376. package/time-update-state.cjs.map +6 -0
  377. package/time-update-state.d.ts +45 -0
  378. package/time-update-state.d.ts.map +1 -0
  379. package/time-update-state.mjs +34 -0
  380. package/time-update-state.mjs.map +6 -0
  381. package/time-with-dst.cjs +55 -0
  382. package/time-with-dst.cjs.map +6 -0
  383. package/time-with-dst.d.ts +21 -0
  384. package/time-with-dst.d.ts.map +1 -0
  385. package/time-with-dst.mjs +36 -0
  386. package/time-with-dst.mjs.map +6 -0
  387. package/time-zone.cjs +50 -0
  388. package/time-zone.cjs.map +6 -0
  389. package/time-zone.d.ts +23 -0
  390. package/time-zone.d.ts.map +1 -0
  391. package/time-zone.mjs +31 -0
  392. package/time-zone.mjs.map +6 -0
  393. package/treadmill-data.cjs +171 -0
  394. package/treadmill-data.cjs.map +6 -0
  395. package/treadmill-data.d.ts +167 -0
  396. package/treadmill-data.d.ts.map +1 -0
  397. package/treadmill-data.mjs +152 -0
  398. package/treadmill-data.mjs.map +6 -0
  399. package/two-zone-heart-rate-limit.cjs +50 -0
  400. package/two-zone-heart-rate-limit.cjs.map +6 -0
  401. package/two-zone-heart-rate-limit.d.ts +23 -0
  402. package/two-zone-heart-rate-limit.d.ts.map +1 -0
  403. package/two-zone-heart-rate-limit.mjs +31 -0
  404. package/two-zone-heart-rate-limit.mjs.map +6 -0
  405. package/vo2-max.cjs +50 -0
  406. package/vo2-max.cjs.map +6 -0
  407. package/vo2-max.d.ts +22 -0
  408. package/vo2-max.d.ts.map +1 -0
  409. package/vo2-max.mjs +31 -0
  410. package/vo2-max.mjs.map +6 -0
@@ -0,0 +1,59 @@
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 csc_feature_exports = {};
23
+ __export(csc_feature_exports, {
24
+ CscFeatureImpl: () => CscFeatureImpl,
25
+ cscFeatureFromDataView: () => cscFeatureFromDataView
26
+ });
27
+ module.exports = __toCommonJS(csc_feature_exports);
28
+ var import_data_view_reader = require("./data-view-reader.cjs");
29
+ const _CscFeatureImpl = class _CscFeatureImpl {
30
+ /** Parse from a DataView into {@link CscFeature}. */
31
+ static fromDataView(dataView, indexStart) {
32
+ return new _CscFeatureImpl(cscFeatureFromDataView(dataView, indexStart));
33
+ }
34
+ crankRevolutionDataSupported;
35
+ cscFeature;
36
+ multipleSensorLocationsSupported;
37
+ wheelRevolutionDataSupported;
38
+ constructor(cscFeature) {
39
+ this.crankRevolutionDataSupported = cscFeature.crankRevolutionDataSupported;
40
+ this.cscFeature = cscFeature.cscFeature;
41
+ this.multipleSensorLocationsSupported = cscFeature.multipleSensorLocationsSupported;
42
+ this.wheelRevolutionDataSupported = cscFeature.wheelRevolutionDataSupported;
43
+ }
44
+ };
45
+ __name(_CscFeatureImpl, "CscFeatureImpl");
46
+ __publicField(_CscFeatureImpl, "UUID_PREFIX", 10844);
47
+ __publicField(_CscFeatureImpl, "TYPE_NAME", "org.bluetooth.characteristic.csc_feature");
48
+ __publicField(_CscFeatureImpl, "NAME", "CSC Feature");
49
+ let CscFeatureImpl = _CscFeatureImpl;
50
+ function cscFeatureFromDataView(dataView, indexStart = 0) {
51
+ const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
52
+ const cscFeature = $dvr.uint16();
53
+ const wheelRevolutionDataSupported = cscFeature & 1;
54
+ const crankRevolutionDataSupported = (cscFeature & 2) >> 1;
55
+ const multipleSensorLocationsSupported = (cscFeature & 4) >> 2;
56
+ return { crankRevolutionDataSupported, cscFeature, multipleSensorLocationsSupported, wheelRevolutionDataSupported };
57
+ }
58
+ __name(cscFeatureFromDataView, "cscFeatureFromDataView");
59
+ //# sourceMappingURL=csc-feature.cjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/csc-feature.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AA6C7C,MAAM,kBAAN,MAAM,gBAAqC;AAAA;AAAA,EAM9C,OAAc,aAAa,UAAqC,YAAiD;AAC7G,WAAO,IAAI,gBAAe,uBAAuB,UAAU,UAAU,CAAC;AAAA,EAC1E;AAAA,EAEgB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,YAAwB;AACvC,SAAK,+BAA+B,WAAW;AAC/C,SAAK,aAAa,WAAW;AAC7B,SAAK,mCAAmC,WAAW;AACnD,SAAK,+BAA+B,WAAW;AAAA,EACnD;AACJ;AArBkD;AAC9C,cADS,iBACc,eAAc;AACrC,cAFS,iBAEc,aAAY;AACnC,cAHS,iBAGc,QAAO;AAH3B,IAAM,iBAAN;AAwBA,SAAS,uBAAuB,UAAqC,aAAqB,GAAe;AAC5G,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,aAAa,KAAK,OAAO;AAO/B,QAAM,+BAA+B,aAAa;AAOlD,QAAM,gCAAgC,aAAa,MAA0B;AAO7E,QAAM,oCAAoC,aAAa,MAA0B;AACjF,SAAO,EAAE,8BAA8B,YAAY,kCAAkC,6BAA6B;AACtH;AAzBgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,55 @@
1
+ import { type DataViewReader } from "./data-view-reader.js";
2
+ /** <p>The CSC (Cycling Speed and Cadence) Feature characteristic is used to describe the supported features of the Server.</p> */
3
+ export interface CscFeature {
4
+ /**
5
+ * | value | description |
6
+ * | ----- | ----------- |
7
+ * | 0 | False |
8
+ * | 1 | True |
9
+ */
10
+ crankRevolutionDataSupported: number;
11
+ /**
12
+ * <p>Format: `16bit`</p>
13
+ *
14
+ * Bit field:
15
+ *
16
+ * | index | size | name |
17
+ * | ----- | ---- | ----------------------------------- |
18
+ * | 0 | 1 | Wheel Revolution Data Supported |
19
+ * | 1 | 1 | Crank Revolution Data Supported |
20
+ * | 2 | 1 | Multiple Sensor Locations Supported |
21
+ * | 3 | 13 | Reserved for future use |
22
+ *
23
+ */
24
+ cscFeature: number;
25
+ /**
26
+ * | value | description |
27
+ * | ----- | ----------- |
28
+ * | 0 | False |
29
+ * | 1 | True |
30
+ */
31
+ multipleSensorLocationsSupported: number;
32
+ /**
33
+ * | value | description |
34
+ * | ----- | ----------- |
35
+ * | 0 | False |
36
+ * | 1 | True |
37
+ */
38
+ wheelRevolutionDataSupported: number;
39
+ }
40
+ /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.csc_feature.xml | Csc Feature} */
41
+ export declare class CscFeatureImpl implements CscFeature {
42
+ static readonly UUID_PREFIX = 10844;
43
+ static readonly TYPE_NAME = "org.bluetooth.characteristic.csc_feature";
44
+ static readonly NAME = "CSC Feature";
45
+ /** Parse from a DataView into {@link CscFeature}. */
46
+ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): CscFeatureImpl;
47
+ readonly crankRevolutionDataSupported: number;
48
+ readonly cscFeature: number;
49
+ readonly multipleSensorLocationsSupported: number;
50
+ readonly wheelRevolutionDataSupported: number;
51
+ constructor(cscFeature: CscFeature);
52
+ }
53
+ /** Parse from a DataView into {@link CscFeature}. */
54
+ export declare function cscFeatureFromDataView(dataView: DataView | DataViewReader, indexStart?: number): CscFeature;
55
+ //# sourceMappingURL=csc-feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csc-feature.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/csc-feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,kIAAkI;AAClI,MAAM,WAAW,UAAU;IACvB;;;;;OAKG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;;;;;;;;;OAYG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,gCAAgC,EAAE,MAAM,CAAC;IACzC;;;;;OAKG;IACH,4BAA4B,EAAE,MAAM,CAAC;CACxC;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,4BAA4B,EAAE,MAAM,CAAC;IACrD,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,gCAAgC,EAAE,MAAM,CAAC;IACzD,SAAgB,4BAA4B,EAAE,MAAM,CAAC;gBAElC,UAAU,EAAE,UAAU;CAM5C;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,UAAU,CAyB9G"}
@@ -0,0 +1,40 @@
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 _CscFeatureImpl = class _CscFeatureImpl {
7
+ /** Parse from a DataView into {@link CscFeature}. */
8
+ static fromDataView(dataView, indexStart) {
9
+ return new _CscFeatureImpl(cscFeatureFromDataView(dataView, indexStart));
10
+ }
11
+ crankRevolutionDataSupported;
12
+ cscFeature;
13
+ multipleSensorLocationsSupported;
14
+ wheelRevolutionDataSupported;
15
+ constructor(cscFeature) {
16
+ this.crankRevolutionDataSupported = cscFeature.crankRevolutionDataSupported;
17
+ this.cscFeature = cscFeature.cscFeature;
18
+ this.multipleSensorLocationsSupported = cscFeature.multipleSensorLocationsSupported;
19
+ this.wheelRevolutionDataSupported = cscFeature.wheelRevolutionDataSupported;
20
+ }
21
+ };
22
+ __name(_CscFeatureImpl, "CscFeatureImpl");
23
+ __publicField(_CscFeatureImpl, "UUID_PREFIX", 10844);
24
+ __publicField(_CscFeatureImpl, "TYPE_NAME", "org.bluetooth.characteristic.csc_feature");
25
+ __publicField(_CscFeatureImpl, "NAME", "CSC Feature");
26
+ let CscFeatureImpl = _CscFeatureImpl;
27
+ function cscFeatureFromDataView(dataView, indexStart = 0) {
28
+ const $dvr = dataViewReader(dataView, indexStart);
29
+ const cscFeature = $dvr.uint16();
30
+ const wheelRevolutionDataSupported = cscFeature & 1;
31
+ const crankRevolutionDataSupported = (cscFeature & 2) >> 1;
32
+ const multipleSensorLocationsSupported = (cscFeature & 4) >> 2;
33
+ return { crankRevolutionDataSupported, cscFeature, multipleSensorLocationsSupported, wheelRevolutionDataSupported };
34
+ }
35
+ __name(cscFeatureFromDataView, "cscFeatureFromDataView");
36
+ export {
37
+ CscFeatureImpl,
38
+ cscFeatureFromDataView
39
+ };
40
+ //# sourceMappingURL=csc-feature.mjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/csc-feature.ts"],
4
+ "mappings": ";;;;AAAA,SAA8B,sBAAsB;AA6C7C,MAAM,kBAAN,MAAM,gBAAqC;AAAA;AAAA,EAM9C,OAAc,aAAa,UAAqC,YAAiD;AAC7G,WAAO,IAAI,gBAAe,uBAAuB,UAAU,UAAU,CAAC;AAAA,EAC1E;AAAA,EAEgB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,YAAwB;AACvC,SAAK,+BAA+B,WAAW;AAC/C,SAAK,aAAa,WAAW;AAC7B,SAAK,mCAAmC,WAAW;AACnD,SAAK,+BAA+B,WAAW;AAAA,EACnD;AACJ;AArBkD;AAC9C,cADS,iBACc,eAAc;AACrC,cAFS,iBAEc,aAAY;AACnC,cAHS,iBAGc,QAAO;AAH3B,IAAM,iBAAN;AAwBA,SAAS,uBAAuB,UAAqC,aAAqB,GAAe;AAC5G,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,aAAa,KAAK,OAAO;AAO/B,QAAM,+BAA+B,aAAa;AAOlD,QAAM,gCAAgC,aAAa,MAA0B;AAO7E,QAAM,oCAAoC,aAAa,MAA0B;AACjF,SAAO,EAAE,8BAA8B,YAAY,kCAAkC,6BAA6B;AACtH;AAzBgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,76 @@
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 csc_measurement_exports = {};
23
+ __export(csc_measurement_exports, {
24
+ CscMeasurementImpl: () => CscMeasurementImpl,
25
+ cscMeasurementFromDataView: () => cscMeasurementFromDataView
26
+ });
27
+ module.exports = __toCommonJS(csc_measurement_exports);
28
+ var import_data_view_reader = require("./data-view-reader.cjs");
29
+ const _CscMeasurementImpl = class _CscMeasurementImpl {
30
+ /** Parse from a DataView into {@link CscMeasurement}. */
31
+ static fromDataView(dataView, indexStart) {
32
+ return new _CscMeasurementImpl(cscMeasurementFromDataView(dataView, indexStart));
33
+ }
34
+ cumulativeCrankRevolutions;
35
+ cumulativeWheelRevolutions;
36
+ flags;
37
+ lastCrankEventTime;
38
+ lastWheelEventTime;
39
+ constructor(cscMeasurement) {
40
+ this.cumulativeCrankRevolutions = cscMeasurement.cumulativeCrankRevolutions;
41
+ this.cumulativeWheelRevolutions = cscMeasurement.cumulativeWheelRevolutions;
42
+ this.flags = cscMeasurement.flags;
43
+ this.lastCrankEventTime = cscMeasurement.lastCrankEventTime;
44
+ this.lastWheelEventTime = cscMeasurement.lastWheelEventTime;
45
+ }
46
+ };
47
+ __name(_CscMeasurementImpl, "CscMeasurementImpl");
48
+ __publicField(_CscMeasurementImpl, "UUID_PREFIX", 10843);
49
+ __publicField(_CscMeasurementImpl, "TYPE_NAME", "org.bluetooth.characteristic.csc_measurement");
50
+ __publicField(_CscMeasurementImpl, "NAME", "CSC Measurement");
51
+ let CscMeasurementImpl = _CscMeasurementImpl;
52
+ function cscMeasurementFromDataView(dataView, indexStart = 0) {
53
+ const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
54
+ const flags = $dvr.uint8();
55
+ const wheelRevolutionDataPresent = !!(flags & 1);
56
+ const crankRevolutionDataPresent = !!((flags & 2) >> 1);
57
+ let cumulativeWheelRevolutions = void 0;
58
+ if (wheelRevolutionDataPresent) {
59
+ cumulativeWheelRevolutions = $dvr.uint32();
60
+ }
61
+ let lastWheelEventTime = void 0;
62
+ if (wheelRevolutionDataPresent) {
63
+ lastWheelEventTime = $dvr.uint16();
64
+ }
65
+ let cumulativeCrankRevolutions = void 0;
66
+ if (crankRevolutionDataPresent) {
67
+ cumulativeCrankRevolutions = $dvr.uint16();
68
+ }
69
+ let lastCrankEventTime = void 0;
70
+ if (crankRevolutionDataPresent) {
71
+ lastCrankEventTime = $dvr.uint16();
72
+ }
73
+ return { cumulativeCrankRevolutions, cumulativeWheelRevolutions, flags, lastCrankEventTime, lastWheelEventTime };
74
+ }
75
+ __name(cscMeasurementFromDataView, "cscMeasurementFromDataView");
76
+ //# sourceMappingURL=csc-measurement.cjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/csc-measurement.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AA8C7C,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,EAET,YAAY,gBAAgC;AAC/C,SAAK,6BAA6B,eAAe;AACjD,SAAK,6BAA6B,eAAe;AACjD,SAAK,QAAQ,eAAe;AAC5B,SAAK,qBAAqB,eAAe;AACzC,SAAK,qBAAqB,eAAe;AAAA,EAC7C;AACJ;AAvB0D;AACtD,cADS,qBACc,eAAc;AACrC,cAFS,qBAEc,aAAY;AACnC,cAHS,qBAGc,QAAO;AAH3B,IAAM,qBAAN;AA0BA,SAAS,2BAA2B,UAAqC,aAAqB,GAAmB;AACpH,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,QAAQ,KAAK,MAAM;AAQzB,QAAM,6BAA6B,CAAC,EAAE,QAAQ;AAQ9C,QAAM,6BAA6B,CAAC,GAAG,QAAQ,MAAgB;AAC/D,MAAI,6BAAiD;AACrD,MAAI,4BAA4B;AAC5B,iCAA6B,KAAK,OAAO;AAAA,EAC7C;AAEA,MAAI,qBAAyC;AAC7C,MAAI,4BAA4B;AAC5B,yBAAqB,KAAK,OAAO;AAAA,EACrC;AAEA,MAAI,6BAAiD;AACrD,MAAI,4BAA4B;AAC5B,iCAA6B,KAAK,OAAO;AAAA,EAC7C;AAEA,MAAI,qBAAyC;AAC7C,MAAI,4BAA4B;AAC5B,yBAAqB,KAAK,OAAO;AAAA,EACrC;AAEA,SAAO,EAAE,4BAA4B,4BAA4B,OAAO,oBAAoB,mBAAmB;AACnH;AAxCgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,57 @@
1
+ import { type DataViewReader } from "./data-view-reader.js";
2
+ /** <p>The CSC Measurement characteristic (CSC refers to Cycling Speed and Cadence) is a variable length structure containing a Flags field and, based on the contents of the Flags field, may contain one or more additional fields as shown in the tables below.</p> */
3
+ export interface CscMeasurement {
4
+ /**
5
+ * <p>Format: `uint16`</p>
6
+ * <p>Unit: `org.bluetooth.unit.unitless`</p>
7
+ * <p>C2: Field exists if the key of bit 1 of the Flags field is set to 1.</p>
8
+ */
9
+ cumulativeCrankRevolutions?: number | undefined;
10
+ /**
11
+ * <p>Format: `uint32`</p>
12
+ * <p>Unit: `org.bluetooth.unit.unitless`</p>
13
+ * <p>C1: Field exists if the key of bit 0 of the Flags field is set to 1.</p>
14
+ */
15
+ cumulativeWheelRevolutions?: number | undefined;
16
+ /**
17
+ * <p>Format: `8bit`</p>
18
+ * <p>These flags define which data fields are present in the Characteristic value.</p>
19
+ *
20
+ * Bit field:
21
+ *
22
+ * | index | size | req | name |
23
+ * | ----- | ---- | --- | ----------------------------- |
24
+ * | 0 | 1 | C1 | Wheel Revolution Data Present |
25
+ * | 1 | 1 | C2 | Crank Revolution Data Present |
26
+ * | 2 | 6 | | Reserved for future use |
27
+ *
28
+ */
29
+ flags: number;
30
+ /**
31
+ * <p>Format: `uint16`</p>
32
+ * <p>Unit: `org.bluetooth.unit.time.second`</p>
33
+ */
34
+ lastCrankEventTime?: number | undefined;
35
+ /**
36
+ * <p>Format: `uint16`</p>
37
+ * <p>Unit: `org.bluetooth.unit.time.second`</p>
38
+ */
39
+ lastWheelEventTime?: number | undefined;
40
+ }
41
+ /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.csc_measurement.xml | Csc Measurement} */
42
+ export declare class CscMeasurementImpl implements CscMeasurement {
43
+ static readonly UUID_PREFIX = 10843;
44
+ static readonly TYPE_NAME = "org.bluetooth.characteristic.csc_measurement";
45
+ static readonly NAME = "CSC Measurement";
46
+ /** Parse from a DataView into {@link CscMeasurement}. */
47
+ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): CscMeasurementImpl;
48
+ readonly cumulativeCrankRevolutions?: number | undefined;
49
+ readonly cumulativeWheelRevolutions?: number | undefined;
50
+ readonly flags: number;
51
+ readonly lastCrankEventTime?: number | undefined;
52
+ readonly lastWheelEventTime?: number | undefined;
53
+ constructor(cscMeasurement: CscMeasurement);
54
+ }
55
+ /** Parse from a DataView into {@link CscMeasurement}. */
56
+ export declare function cscMeasurementFromDataView(dataView: DataView | DataViewReader, indexStart?: number): CscMeasurement;
57
+ //# sourceMappingURL=csc-measurement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csc-measurement.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/csc-measurement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,yQAAyQ;AACzQ,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD;;;;;;;;;;;;OAYG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3C;AAED,2JAA2J;AAC3J,qBAAa,kBAAmB,YAAW,cAAc;IACrD,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,kDAAkD;IAClF,gBAAuB,IAAI,qBAAqB;IAEhD,yDAAyD;WAC3C,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,kBAAkB;IAIpH,SAAgB,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChE,SAAgB,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChE,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxD,SAAgB,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAErC,cAAc,EAAE,cAAc;CAOpD;AAED,yDAAyD;AACzD,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,cAAc,CAwCtH"}
@@ -0,0 +1,57 @@
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 _CscMeasurementImpl = class _CscMeasurementImpl {
7
+ /** Parse from a DataView into {@link CscMeasurement}. */
8
+ static fromDataView(dataView, indexStart) {
9
+ return new _CscMeasurementImpl(cscMeasurementFromDataView(dataView, indexStart));
10
+ }
11
+ cumulativeCrankRevolutions;
12
+ cumulativeWheelRevolutions;
13
+ flags;
14
+ lastCrankEventTime;
15
+ lastWheelEventTime;
16
+ constructor(cscMeasurement) {
17
+ this.cumulativeCrankRevolutions = cscMeasurement.cumulativeCrankRevolutions;
18
+ this.cumulativeWheelRevolutions = cscMeasurement.cumulativeWheelRevolutions;
19
+ this.flags = cscMeasurement.flags;
20
+ this.lastCrankEventTime = cscMeasurement.lastCrankEventTime;
21
+ this.lastWheelEventTime = cscMeasurement.lastWheelEventTime;
22
+ }
23
+ };
24
+ __name(_CscMeasurementImpl, "CscMeasurementImpl");
25
+ __publicField(_CscMeasurementImpl, "UUID_PREFIX", 10843);
26
+ __publicField(_CscMeasurementImpl, "TYPE_NAME", "org.bluetooth.characteristic.csc_measurement");
27
+ __publicField(_CscMeasurementImpl, "NAME", "CSC Measurement");
28
+ let CscMeasurementImpl = _CscMeasurementImpl;
29
+ function cscMeasurementFromDataView(dataView, indexStart = 0) {
30
+ const $dvr = dataViewReader(dataView, indexStart);
31
+ const flags = $dvr.uint8();
32
+ const wheelRevolutionDataPresent = !!(flags & 1);
33
+ const crankRevolutionDataPresent = !!((flags & 2) >> 1);
34
+ let cumulativeWheelRevolutions = void 0;
35
+ if (wheelRevolutionDataPresent) {
36
+ cumulativeWheelRevolutions = $dvr.uint32();
37
+ }
38
+ let lastWheelEventTime = void 0;
39
+ if (wheelRevolutionDataPresent) {
40
+ lastWheelEventTime = $dvr.uint16();
41
+ }
42
+ let cumulativeCrankRevolutions = void 0;
43
+ if (crankRevolutionDataPresent) {
44
+ cumulativeCrankRevolutions = $dvr.uint16();
45
+ }
46
+ let lastCrankEventTime = void 0;
47
+ if (crankRevolutionDataPresent) {
48
+ lastCrankEventTime = $dvr.uint16();
49
+ }
50
+ return { cumulativeCrankRevolutions, cumulativeWheelRevolutions, flags, lastCrankEventTime, lastWheelEventTime };
51
+ }
52
+ __name(cscMeasurementFromDataView, "cscMeasurementFromDataView");
53
+ export {
54
+ CscMeasurementImpl,
55
+ cscMeasurementFromDataView
56
+ };
57
+ //# sourceMappingURL=csc-measurement.mjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/csc-measurement.ts"],
4
+ "mappings": ";;;;AAAA,SAA8B,sBAAsB;AA8C7C,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,EAET,YAAY,gBAAgC;AAC/C,SAAK,6BAA6B,eAAe;AACjD,SAAK,6BAA6B,eAAe;AACjD,SAAK,QAAQ,eAAe;AAC5B,SAAK,qBAAqB,eAAe;AACzC,SAAK,qBAAqB,eAAe;AAAA,EAC7C;AACJ;AAvB0D;AACtD,cADS,qBACc,eAAc;AACrC,cAFS,qBAEc,aAAY;AACnC,cAHS,qBAGc,QAAO;AAH3B,IAAM,qBAAN;AA0BA,SAAS,2BAA2B,UAAqC,aAAqB,GAAmB;AACpH,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,QAAQ,KAAK,MAAM;AAQzB,QAAM,6BAA6B,CAAC,EAAE,QAAQ;AAQ9C,QAAM,6BAA6B,CAAC,GAAG,QAAQ,MAAgB;AAC/D,MAAI,6BAAiD;AACrD,MAAI,4BAA4B;AAC5B,iCAA6B,KAAK,OAAO;AAAA,EAC7C;AAEA,MAAI,qBAAyC;AAC7C,MAAI,4BAA4B;AAC5B,yBAAqB,KAAK,OAAO;AAAA,EACrC;AAEA,MAAI,6BAAiD;AACrD,MAAI,4BAA4B;AAC5B,iCAA6B,KAAK,OAAO;AAAA,EAC7C;AAEA,MAAI,qBAAyC;AAC7C,MAAI,4BAA4B;AAC5B,yBAAqB,KAAK,OAAO;AAAA,EACrC;AAEA,SAAO,EAAE,4BAA4B,4BAA4B,OAAO,oBAAoB,mBAAmB;AACnH;AAxCgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,66 @@
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 current_time_exports = {};
23
+ __export(current_time_exports, {
24
+ CurrentTimeImpl: () => CurrentTimeImpl,
25
+ currentTimeFromDataView: () => currentTimeFromDataView
26
+ });
27
+ module.exports = __toCommonJS(current_time_exports);
28
+ var import_data_view_reader = require("./data-view-reader.cjs");
29
+ var import_exact_time_256 = require("./exact-time-256.cjs");
30
+ const _CurrentTimeImpl = class _CurrentTimeImpl {
31
+ /** Parse from a DataView into {@link CurrentTime}. */
32
+ static fromDataView(dataView, indexStart) {
33
+ return new _CurrentTimeImpl(currentTimeFromDataView(dataView, indexStart));
34
+ }
35
+ adjustReason;
36
+ bit0;
37
+ bit1;
38
+ bit2;
39
+ bit3;
40
+ exactTime256;
41
+ constructor(currentTime) {
42
+ this.adjustReason = currentTime.adjustReason;
43
+ this.bit0 = currentTime.bit0;
44
+ this.bit1 = currentTime.bit1;
45
+ this.bit2 = currentTime.bit2;
46
+ this.bit3 = currentTime.bit3;
47
+ this.exactTime256 = currentTime.exactTime256;
48
+ }
49
+ };
50
+ __name(_CurrentTimeImpl, "CurrentTimeImpl");
51
+ __publicField(_CurrentTimeImpl, "UUID_PREFIX", 10795);
52
+ __publicField(_CurrentTimeImpl, "TYPE_NAME", "org.bluetooth.characteristic.current_time");
53
+ __publicField(_CurrentTimeImpl, "NAME", "Current Time");
54
+ let CurrentTimeImpl = _CurrentTimeImpl;
55
+ function currentTimeFromDataView(dataView, indexStart = 0) {
56
+ const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
57
+ const exactTime256 = import_exact_time_256.ExactTime256Impl.fromDataView($dvr);
58
+ const adjustReason = $dvr.uint8();
59
+ const bit0 = adjustReason & 1;
60
+ const bit1 = (adjustReason & 2) >> 1;
61
+ const bit2 = (adjustReason & 4) >> 2;
62
+ const bit3 = (adjustReason & 8) >> 3;
63
+ return { adjustReason, bit0, bit1, bit2, bit3, exactTime256 };
64
+ }
65
+ __name(currentTimeFromDataView, "currentTimeFromDataView");
66
+ //# sourceMappingURL=current-time.cjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/current-time.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AACpD,4BAAoD;AAoD7C,MAAM,mBAAN,MAAM,iBAAuC;AAAA;AAAA,EAMhD,OAAc,aAAa,UAAqC,YAAkD;AAC9G,WAAO,IAAI,iBAAgB,wBAAwB,UAAU,UAAU,CAAC;AAAA,EAC5E;AAAA,EAEgB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,aAA0B;AACzC,SAAK,eAAe,YAAY;AAChC,SAAK,OAAO,YAAY;AACxB,SAAK,OAAO,YAAY;AACxB,SAAK,OAAO,YAAY;AACxB,SAAK,OAAO,YAAY;AACxB,SAAK,eAAe,YAAY;AAAA,EACpC;AACJ;AAzBoD;AAChD,cADS,kBACc,eAAc;AACrC,cAFS,kBAEc,aAAY;AACnC,cAHS,kBAGc,QAAO;AAH3B,IAAM,kBAAN;AA4BA,SAAS,wBAAwB,UAAqC,aAAqB,GAAgB;AAC9G,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,eAAe,uCAAiB,aAAa,IAAI;AACvD,QAAM,eAAe,KAAK,MAAM;AAOhC,QAAM,OAAO,eAAe;AAO5B,QAAM,QAAQ,eAAe,MAAgB;AAO7C,QAAM,QAAQ,eAAe,MAAgB;AAO7C,QAAM,QAAQ,eAAe,MAAgB;AAC7C,SAAO,EAAE,cAAc,MAAM,MAAM,MAAM,MAAM,aAAa;AAChE;AAjCgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,65 @@
1
+ import { type DataViewReader } from "./data-view-reader.js";
2
+ import { type ExactTime256 } from "./exact-time-256.js";
3
+ export interface CurrentTime {
4
+ /**
5
+ * <p>Format: `8bit`</p>
6
+ *
7
+ * Bit field:
8
+ *
9
+ * | index | size | name |
10
+ * | ----- | ---- | ---- |
11
+ * | 0 | 1 | bit0 |
12
+ * | 1 | 1 | bit1 |
13
+ * | 2 | 1 | bit2 |
14
+ * | 3 | 1 | bit3 |
15
+ *
16
+ */
17
+ adjustReason: number;
18
+ /**
19
+ * | value | description |
20
+ * | ----- | --------------------- |
21
+ * | 0 | No manual time update |
22
+ * | 1 | Manual time update |
23
+ */
24
+ bit0: number;
25
+ /**
26
+ * | value | description |
27
+ * | ----- | --------------------------------- |
28
+ * | 0 | No external reference time update |
29
+ * | 1 | External reference time update |
30
+ */
31
+ bit1: number;
32
+ /**
33
+ * | value | description |
34
+ * | ----- | ---------------------- |
35
+ * | 0 | No change of time zone |
36
+ * | 1 | Change of time zone |
37
+ */
38
+ bit2: number;
39
+ /**
40
+ * | value | description |
41
+ * | ----- | ---------------------------------------- |
42
+ * | 0 | No change of DST (daylight savings time) |
43
+ * | 1 | Change of DST (daylight savings time) |
44
+ */
45
+ bit3: number;
46
+ exactTime256: ExactTime256;
47
+ }
48
+ /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.current_time.xml | Current Time} */
49
+ export declare class CurrentTimeImpl implements CurrentTime {
50
+ static readonly UUID_PREFIX = 10795;
51
+ static readonly TYPE_NAME = "org.bluetooth.characteristic.current_time";
52
+ static readonly NAME = "Current Time";
53
+ /** Parse from a DataView into {@link CurrentTime}. */
54
+ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): CurrentTimeImpl;
55
+ readonly adjustReason: number;
56
+ readonly bit0: number;
57
+ readonly bit1: number;
58
+ readonly bit2: number;
59
+ readonly bit3: number;
60
+ readonly exactTime256: ExactTime256;
61
+ constructor(currentTime: CurrentTime);
62
+ }
63
+ /** Parse from a DataView into {@link CurrentTime}. */
64
+ export declare function currentTimeFromDataView(dataView: DataView | DataViewReader, indexStart?: number): CurrentTime;
65
+ //# sourceMappingURL=current-time.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"current-time.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/current-time.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,qBAAqB,CAAC;AAK1E,MAAM,WAAW,WAAW;IACxB;;;;;;;;;;;;OAYG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,YAAY,CAAC;CAC9B;AAED,qJAAqJ;AACrJ,qBAAa,eAAgB,YAAW,WAAW;IAC/C,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,+CAA+C;IAC/E,gBAAuB,IAAI,kBAAkB;IAE7C,sDAAsD;WACxC,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,eAAe;IAIjH,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,YAAY,EAAE,YAAY,CAAC;gBAExB,WAAW,EAAE,WAAW;CAQ9C;AAED,sDAAsD;AACtD,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,WAAW,CAiChH"}
@@ -0,0 +1,47 @@
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
+ import { ExactTime256Impl } from "./exact-time-256.mjs";
7
+ const _CurrentTimeImpl = class _CurrentTimeImpl {
8
+ /** Parse from a DataView into {@link CurrentTime}. */
9
+ static fromDataView(dataView, indexStart) {
10
+ return new _CurrentTimeImpl(currentTimeFromDataView(dataView, indexStart));
11
+ }
12
+ adjustReason;
13
+ bit0;
14
+ bit1;
15
+ bit2;
16
+ bit3;
17
+ exactTime256;
18
+ constructor(currentTime) {
19
+ this.adjustReason = currentTime.adjustReason;
20
+ this.bit0 = currentTime.bit0;
21
+ this.bit1 = currentTime.bit1;
22
+ this.bit2 = currentTime.bit2;
23
+ this.bit3 = currentTime.bit3;
24
+ this.exactTime256 = currentTime.exactTime256;
25
+ }
26
+ };
27
+ __name(_CurrentTimeImpl, "CurrentTimeImpl");
28
+ __publicField(_CurrentTimeImpl, "UUID_PREFIX", 10795);
29
+ __publicField(_CurrentTimeImpl, "TYPE_NAME", "org.bluetooth.characteristic.current_time");
30
+ __publicField(_CurrentTimeImpl, "NAME", "Current Time");
31
+ let CurrentTimeImpl = _CurrentTimeImpl;
32
+ function currentTimeFromDataView(dataView, indexStart = 0) {
33
+ const $dvr = dataViewReader(dataView, indexStart);
34
+ const exactTime256 = ExactTime256Impl.fromDataView($dvr);
35
+ const adjustReason = $dvr.uint8();
36
+ const bit0 = adjustReason & 1;
37
+ const bit1 = (adjustReason & 2) >> 1;
38
+ const bit2 = (adjustReason & 4) >> 2;
39
+ const bit3 = (adjustReason & 8) >> 3;
40
+ return { adjustReason, bit0, bit1, bit2, bit3, exactTime256 };
41
+ }
42
+ __name(currentTimeFromDataView, "currentTimeFromDataView");
43
+ export {
44
+ CurrentTimeImpl,
45
+ currentTimeFromDataView
46
+ };
47
+ //# sourceMappingURL=current-time.mjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/current-time.ts"],
4
+ "mappings": ";;;;AAAA,SAA8B,sBAAsB;AACpD,SAA4B,wBAAwB;AAoD7C,MAAM,mBAAN,MAAM,iBAAuC;AAAA;AAAA,EAMhD,OAAc,aAAa,UAAqC,YAAkD;AAC9G,WAAO,IAAI,iBAAgB,wBAAwB,UAAU,UAAU,CAAC;AAAA,EAC5E;AAAA,EAEgB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,aAA0B;AACzC,SAAK,eAAe,YAAY;AAChC,SAAK,OAAO,YAAY;AACxB,SAAK,OAAO,YAAY;AACxB,SAAK,OAAO,YAAY;AACxB,SAAK,OAAO,YAAY;AACxB,SAAK,eAAe,YAAY;AAAA,EACpC;AACJ;AAzBoD;AAChD,cADS,kBACc,eAAc;AACrC,cAFS,kBAEc,aAAY;AACnC,cAHS,kBAGc,QAAO;AAH3B,IAAM,kBAAN;AA4BA,SAAS,wBAAwB,UAAqC,aAAqB,GAAgB;AAC9G,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,eAAe,iBAAiB,aAAa,IAAI;AACvD,QAAM,eAAe,KAAK,MAAM;AAOhC,QAAM,OAAO,eAAe;AAO5B,QAAM,QAAQ,eAAe,MAAgB;AAO7C,QAAM,QAAQ,eAAe,MAAgB;AAO7C,QAAM,QAAQ,eAAe,MAAgB;AAC7C,SAAO,EAAE,cAAc,MAAM,MAAM,MAAM,MAAM,aAAa;AAChE;AAjCgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,34 @@
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 __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var data_view_from_hex_exports = {};
21
+ __export(data_view_from_hex_exports, {
22
+ dataViewFromHex: () => dataViewFromHex
23
+ });
24
+ module.exports = __toCommonJS(data_view_from_hex_exports);
25
+ const dataViewFromHex = /* @__PURE__ */ __name((hex) => {
26
+ const h = hex.length % 2 ? "0".concat(hex) : hex;
27
+ const count = h.length / 2;
28
+ const dataView = new DataView(new ArrayBuffer(count));
29
+ for (let i = 0; i < count; i++) {
30
+ dataView.setUint8(i, Number.parseInt(h.substring(i * 2, (i + 1) * 2), 16));
31
+ }
32
+ return dataView;
33
+ }, "dataViewFromHex");
34
+ //# sourceMappingURL=data-view-from-hex.cjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/data-view-from-hex.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,kBAAkB,wBAAC,QAA0B;AACzD,QAAM,IAAI,IAAI,SAAS,IAAI,IAAI,OAAO,GAAG,IAAI;AAC7C,QAAM,QAAQ,EAAE,SAAS;AACzB,QAAM,WAAW,IAAI,SAAS,IAAI,YAAY,KAAK,CAAC;AACpD,WAAS,IAAI,GAAG,IAAI,OAAO,KAAK;AAC/B,aAAS,SAAS,GAAG,OAAO,SAAS,EAAE,UAAU,IAAI,IAAI,IAAI,KAAK,CAAC,GAAG,EAAE,CAAC;AAAA,EAC1E;AACA,SAAO;AACR,GAR+B;",
5
+ "names": []
6
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Build a DataView from a hex-encoded string. This is a polyfill
3
+ * for `Uint8Array.fromHex()`.
4
+ */
5
+ export declare const dataViewFromHex: (hex: string) => DataView;
6
+ //# sourceMappingURL=data-view-from-hex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-view-from-hex.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/data-view-from-hex.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAS,MAAM,KAAG,QAQ7C,CAAC"}