@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,19 @@
1
+ import { type DataViewReader } from "./data-view-reader.js";
2
+ /** <p>The value of this characteristic is a UTF-8 string representing the software revision for the software within the device.</p> */
3
+ export interface SoftwareRevisionString {
4
+ /** <p>Format: `utf8s`</p> */
5
+ softwareRevision: string;
6
+ }
7
+ /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.software_revision_string.xml | Software Revision String} */
8
+ export declare class SoftwareRevisionStringImpl implements SoftwareRevisionString {
9
+ static readonly UUID_PREFIX = 10792;
10
+ static readonly TYPE_NAME = "org.bluetooth.characteristic.software_revision_string";
11
+ static readonly NAME = "Software Revision String";
12
+ /** Parse from a DataView into {@link SoftwareRevisionString}. */
13
+ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): SoftwareRevisionStringImpl;
14
+ readonly softwareRevision: string;
15
+ constructor(softwareRevisionString: SoftwareRevisionString);
16
+ }
17
+ /** Parse from a DataView into {@link SoftwareRevisionString}. */
18
+ export declare function softwareRevisionStringFromDataView(dataView: DataView | DataViewReader, indexStart?: number): SoftwareRevisionString;
19
+ //# sourceMappingURL=software-revision-string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"software-revision-string.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/software-revision-string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,uIAAuI;AACvI,MAAM,WAAW,sBAAsB;IACnC,6BAA6B;IAC7B,gBAAgB,EAAE,MAAM,CAAC;CAC5B;AAED,6KAA6K;AAC7K,qBAAa,0BAA2B,YAAW,sBAAsB;IACrE,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,2DAA2D;IAC3F,gBAAuB,IAAI,8BAA8B;IAEzD,iEAAiE;WACnD,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,0BAA0B;IAI5H,SAAgB,gBAAgB,EAAE,MAAM,CAAC;gBAEtB,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 _SoftwareRevisionStringImpl = class _SoftwareRevisionStringImpl {
7
+ /** Parse from a DataView into {@link SoftwareRevisionString}. */
8
+ static fromDataView(dataView, indexStart) {
9
+ return new _SoftwareRevisionStringImpl(softwareRevisionStringFromDataView(dataView, indexStart));
10
+ }
11
+ softwareRevision;
12
+ constructor(softwareRevisionString) {
13
+ this.softwareRevision = softwareRevisionString.softwareRevision;
14
+ }
15
+ };
16
+ __name(_SoftwareRevisionStringImpl, "SoftwareRevisionStringImpl");
17
+ __publicField(_SoftwareRevisionStringImpl, "UUID_PREFIX", 10792);
18
+ __publicField(_SoftwareRevisionStringImpl, "TYPE_NAME", "org.bluetooth.characteristic.software_revision_string");
19
+ __publicField(_SoftwareRevisionStringImpl, "NAME", "Software Revision String");
20
+ let SoftwareRevisionStringImpl = _SoftwareRevisionStringImpl;
21
+ function softwareRevisionStringFromDataView(dataView, indexStart = 0) {
22
+ const $dvr = dataViewReader(dataView, indexStart);
23
+ const softwareRevision = $dvr.utf8s();
24
+ return { softwareRevision };
25
+ }
26
+ __name(softwareRevisionStringFromDataView, "softwareRevisionStringFromDataView");
27
+ export {
28
+ SoftwareRevisionStringImpl,
29
+ softwareRevisionStringFromDataView
30
+ };
31
+ //# sourceMappingURL=software-revision-string.mjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/software-revision-string.ts"],
4
+ "mappings": ";;;;AAAA,SAA8B,sBAAsB;AAY7C,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,mBAAmB,uBAAuB;AAAA,EACnD;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,mBAAmB,KAAK,MAAM;AACpC,SAAO,EAAE,iBAAiB;AAC9B;AAJgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,56 @@
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 supported_heart_rate_range_exports = {};
23
+ __export(supported_heart_rate_range_exports, {
24
+ SupportedHeartRateRangeImpl: () => SupportedHeartRateRangeImpl,
25
+ supportedHeartRateRangeFromDataView: () => supportedHeartRateRangeFromDataView
26
+ });
27
+ module.exports = __toCommonJS(supported_heart_rate_range_exports);
28
+ var import_data_view_reader = require("./data-view-reader.cjs");
29
+ const _SupportedHeartRateRangeImpl = class _SupportedHeartRateRangeImpl {
30
+ /** Parse from a DataView into {@link SupportedHeartRateRange}. */
31
+ static fromDataView(dataView, indexStart) {
32
+ return new _SupportedHeartRateRangeImpl(supportedHeartRateRangeFromDataView(dataView, indexStart));
33
+ }
34
+ maximumHeartRate;
35
+ minimumHeartRate;
36
+ minimumIncrement;
37
+ constructor(supportedHeartRateRange) {
38
+ this.maximumHeartRate = supportedHeartRateRange.maximumHeartRate;
39
+ this.minimumHeartRate = supportedHeartRateRange.minimumHeartRate;
40
+ this.minimumIncrement = supportedHeartRateRange.minimumIncrement;
41
+ }
42
+ };
43
+ __name(_SupportedHeartRateRangeImpl, "SupportedHeartRateRangeImpl");
44
+ __publicField(_SupportedHeartRateRangeImpl, "UUID_PREFIX", 10967);
45
+ __publicField(_SupportedHeartRateRangeImpl, "TYPE_NAME", "org.bluetooth.characteristic.supported_heart_rate_range");
46
+ __publicField(_SupportedHeartRateRangeImpl, "NAME", "Supported Heart Rate Range");
47
+ let SupportedHeartRateRangeImpl = _SupportedHeartRateRangeImpl;
48
+ function supportedHeartRateRangeFromDataView(dataView, indexStart = 0) {
49
+ const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
50
+ const minimumHeartRate = $dvr.uint8();
51
+ const maximumHeartRate = $dvr.uint8();
52
+ const minimumIncrement = $dvr.uint8();
53
+ return { maximumHeartRate, minimumHeartRate, minimumIncrement };
54
+ }
55
+ __name(supportedHeartRateRangeFromDataView, "supportedHeartRateRangeFromDataView");
56
+ //# sourceMappingURL=supported-heart-rate-range.cjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/supported-heart-rate-range.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AA4B7C,MAAM,+BAAN,MAAM,6BAA+D;AAAA;AAAA,EAMxE,OAAc,aAAa,UAAqC,YAA8D;AAC1H,WAAO,IAAI,6BAA4B,oCAAoC,UAAU,UAAU,CAAC;AAAA,EACpG;AAAA,EAEgB;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,yBAAkD;AACjE,SAAK,mBAAmB,wBAAwB;AAChD,SAAK,mBAAmB,wBAAwB;AAChD,SAAK,mBAAmB,wBAAwB;AAAA,EACpD;AACJ;AAnB4E;AACxE,cADS,8BACc,eAAc;AACrC,cAFS,8BAEc,aAAY;AACnC,cAHS,8BAGc,QAAO;AAH3B,IAAM,8BAAN;AAsBA,SAAS,oCAAoC,UAAqC,aAAqB,GAA4B;AACtI,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,mBAAmB,KAAK,MAAM;AACpC,QAAM,mBAAmB,KAAK,MAAM;AACpC,QAAM,mBAAmB,KAAK,MAAM;AACpC,SAAO,EAAE,kBAAkB,kBAAkB,iBAAiB;AAClE;AANgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,37 @@
1
+ import { type DataViewReader } from "./data-view-reader.js";
2
+ /** <p>The Supported Heart Rate Range characteristic is used to send the supported Heart Rate range as well as the minimum Heart Rate increment supported by the Server.</p> */
3
+ export interface SupportedHeartRateRange {
4
+ /**
5
+ * <p>Format: `uint8`</p>
6
+ * <p>Unit: `org.bluetooth.unit.period.beats_per_minute`</p>
7
+ * <p>Beats per minute with a resolution of 1</p>
8
+ */
9
+ maximumHeartRate: number;
10
+ /**
11
+ * <p>Format: `uint8`</p>
12
+ * <p>Unit: `org.bluetooth.unit.period.beats_per_minute`</p>
13
+ * <p>Beats per minute with a resolution of 1</p>
14
+ */
15
+ minimumHeartRate: number;
16
+ /**
17
+ * <p>Format: `uint8`</p>
18
+ * <p>Unit: `org.bluetooth.unit.period.beats_per_minute`</p>
19
+ * <p>Beats per minute with a resolution of 1</p>
20
+ */
21
+ minimumIncrement: number;
22
+ }
23
+ /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.supported_heart_rate_range.xml | Supported Heart Rate Range} */
24
+ export declare class SupportedHeartRateRangeImpl implements SupportedHeartRateRange {
25
+ static readonly UUID_PREFIX = 10967;
26
+ static readonly TYPE_NAME = "org.bluetooth.characteristic.supported_heart_rate_range";
27
+ static readonly NAME = "Supported Heart Rate Range";
28
+ /** Parse from a DataView into {@link SupportedHeartRateRange}. */
29
+ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): SupportedHeartRateRangeImpl;
30
+ readonly maximumHeartRate: number;
31
+ readonly minimumHeartRate: number;
32
+ readonly minimumIncrement: number;
33
+ constructor(supportedHeartRateRange: SupportedHeartRateRange);
34
+ }
35
+ /** Parse from a DataView into {@link SupportedHeartRateRange}. */
36
+ export declare function supportedHeartRateRangeFromDataView(dataView: DataView | DataViewReader, indexStart?: number): SupportedHeartRateRange;
37
+ //# sourceMappingURL=supported-heart-rate-range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supported-heart-rate-range.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/supported-heart-rate-range.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,+KAA+K;AAC/K,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC5B;AAED,iLAAiL;AACjL,qBAAa,2BAA4B,YAAW,uBAAuB;IACvE,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,6DAA6D;IAC7F,gBAAuB,IAAI,gCAAgC;IAE3D,kEAAkE;WACpD,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,2BAA2B;IAI7H,SAAgB,gBAAgB,EAAE,MAAM,CAAC;IACzC,SAAgB,gBAAgB,EAAE,MAAM,CAAC;IACzC,SAAgB,gBAAgB,EAAE,MAAM,CAAC;gBAEtB,uBAAuB,EAAE,uBAAuB;CAKtE;AAED,kEAAkE;AAClE,wBAAgB,mCAAmC,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,uBAAuB,CAMxI"}
@@ -0,0 +1,37 @@
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 _SupportedHeartRateRangeImpl = class _SupportedHeartRateRangeImpl {
7
+ /** Parse from a DataView into {@link SupportedHeartRateRange}. */
8
+ static fromDataView(dataView, indexStart) {
9
+ return new _SupportedHeartRateRangeImpl(supportedHeartRateRangeFromDataView(dataView, indexStart));
10
+ }
11
+ maximumHeartRate;
12
+ minimumHeartRate;
13
+ minimumIncrement;
14
+ constructor(supportedHeartRateRange) {
15
+ this.maximumHeartRate = supportedHeartRateRange.maximumHeartRate;
16
+ this.minimumHeartRate = supportedHeartRateRange.minimumHeartRate;
17
+ this.minimumIncrement = supportedHeartRateRange.minimumIncrement;
18
+ }
19
+ };
20
+ __name(_SupportedHeartRateRangeImpl, "SupportedHeartRateRangeImpl");
21
+ __publicField(_SupportedHeartRateRangeImpl, "UUID_PREFIX", 10967);
22
+ __publicField(_SupportedHeartRateRangeImpl, "TYPE_NAME", "org.bluetooth.characteristic.supported_heart_rate_range");
23
+ __publicField(_SupportedHeartRateRangeImpl, "NAME", "Supported Heart Rate Range");
24
+ let SupportedHeartRateRangeImpl = _SupportedHeartRateRangeImpl;
25
+ function supportedHeartRateRangeFromDataView(dataView, indexStart = 0) {
26
+ const $dvr = dataViewReader(dataView, indexStart);
27
+ const minimumHeartRate = $dvr.uint8();
28
+ const maximumHeartRate = $dvr.uint8();
29
+ const minimumIncrement = $dvr.uint8();
30
+ return { maximumHeartRate, minimumHeartRate, minimumIncrement };
31
+ }
32
+ __name(supportedHeartRateRangeFromDataView, "supportedHeartRateRangeFromDataView");
33
+ export {
34
+ SupportedHeartRateRangeImpl,
35
+ supportedHeartRateRangeFromDataView
36
+ };
37
+ //# sourceMappingURL=supported-heart-rate-range.mjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/supported-heart-rate-range.ts"],
4
+ "mappings": ";;;;AAAA,SAA8B,sBAAsB;AA4B7C,MAAM,+BAAN,MAAM,6BAA+D;AAAA;AAAA,EAMxE,OAAc,aAAa,UAAqC,YAA8D;AAC1H,WAAO,IAAI,6BAA4B,oCAAoC,UAAU,UAAU,CAAC;AAAA,EACpG;AAAA,EAEgB;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,yBAAkD;AACjE,SAAK,mBAAmB,wBAAwB;AAChD,SAAK,mBAAmB,wBAAwB;AAChD,SAAK,mBAAmB,wBAAwB;AAAA,EACpD;AACJ;AAnB4E;AACxE,cADS,8BACc,eAAc;AACrC,cAFS,8BAEc,aAAY;AACnC,cAHS,8BAGc,QAAO;AAH3B,IAAM,8BAAN;AAsBA,SAAS,oCAAoC,UAAqC,aAAqB,GAA4B;AACtI,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,mBAAmB,KAAK,MAAM;AACpC,QAAM,mBAAmB,KAAK,MAAM;AACpC,QAAM,mBAAmB,KAAK,MAAM;AACpC,SAAO,EAAE,kBAAkB,kBAAkB,iBAAiB;AAClE;AANgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,56 @@
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 supported_inclination_range_exports = {};
23
+ __export(supported_inclination_range_exports, {
24
+ SupportedInclinationRangeImpl: () => SupportedInclinationRangeImpl,
25
+ supportedInclinationRangeFromDataView: () => supportedInclinationRangeFromDataView
26
+ });
27
+ module.exports = __toCommonJS(supported_inclination_range_exports);
28
+ var import_data_view_reader = require("./data-view-reader.cjs");
29
+ const _SupportedInclinationRangeImpl = class _SupportedInclinationRangeImpl {
30
+ /** Parse from a DataView into {@link SupportedInclinationRange}. */
31
+ static fromDataView(dataView, indexStart) {
32
+ return new _SupportedInclinationRangeImpl(supportedInclinationRangeFromDataView(dataView, indexStart));
33
+ }
34
+ maximumInclination;
35
+ minimumInclination;
36
+ minimumIncrement;
37
+ constructor(supportedInclinationRange) {
38
+ this.maximumInclination = supportedInclinationRange.maximumInclination;
39
+ this.minimumInclination = supportedInclinationRange.minimumInclination;
40
+ this.minimumIncrement = supportedInclinationRange.minimumIncrement;
41
+ }
42
+ };
43
+ __name(_SupportedInclinationRangeImpl, "SupportedInclinationRangeImpl");
44
+ __publicField(_SupportedInclinationRangeImpl, "UUID_PREFIX", 10965);
45
+ __publicField(_SupportedInclinationRangeImpl, "TYPE_NAME", "org.bluetooth.characteristic.supported_inclination_range");
46
+ __publicField(_SupportedInclinationRangeImpl, "NAME", "Supported Inclination Range");
47
+ let SupportedInclinationRangeImpl = _SupportedInclinationRangeImpl;
48
+ function supportedInclinationRangeFromDataView(dataView, indexStart = 0) {
49
+ const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
50
+ const minimumInclination = $dvr.int16();
51
+ const maximumInclination = $dvr.int16();
52
+ const minimumIncrement = $dvr.uint16();
53
+ return { maximumInclination, minimumInclination, minimumIncrement };
54
+ }
55
+ __name(supportedInclinationRangeFromDataView, "supportedInclinationRangeFromDataView");
56
+ //# sourceMappingURL=supported-inclination-range.cjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/supported-inclination-range.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AA4B7C,MAAM,iCAAN,MAAM,+BAAmE;AAAA;AAAA,EAM5E,OAAc,aAAa,UAAqC,YAAgE;AAC5H,WAAO,IAAI,+BAA8B,sCAAsC,UAAU,UAAU,CAAC;AAAA,EACxG;AAAA,EAEgB;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,2BAAsD;AACrE,SAAK,qBAAqB,0BAA0B;AACpD,SAAK,qBAAqB,0BAA0B;AACpD,SAAK,mBAAmB,0BAA0B;AAAA,EACtD;AACJ;AAnBgF;AAC5E,cADS,gCACc,eAAc;AACrC,cAFS,gCAEc,aAAY;AACnC,cAHS,gCAGc,QAAO;AAH3B,IAAM,gCAAN;AAsBA,SAAS,sCAAsC,UAAqC,aAAqB,GAA8B;AAC1I,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,qBAAqB,KAAK,MAAM;AACtC,QAAM,qBAAqB,KAAK,MAAM;AACtC,QAAM,mBAAmB,KAAK,OAAO;AACrC,SAAO,EAAE,oBAAoB,oBAAoB,iBAAiB;AACtE;AANgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,37 @@
1
+ import { type DataViewReader } from "./data-view-reader.js";
2
+ /** <p>The Supported Inclination Range characteristic is used to send the supported inclination range as well as the minimum inclination increment supported by the Server.</p> */
3
+ export interface SupportedInclinationRange {
4
+ /**
5
+ * <p>Format: `sint16`</p>
6
+ * <p>Unit: `org.bluetooth.unit.percentage`</p>
7
+ * <p>Percent with a resolution of 0.1</p>
8
+ */
9
+ maximumInclination: number;
10
+ /**
11
+ * <p>Format: `sint16`</p>
12
+ * <p>Unit: `org.bluetooth.unit.percentage`</p>
13
+ * <p>Percent with a resolution of 0.1</p>
14
+ */
15
+ minimumInclination: number;
16
+ /**
17
+ * <p>Format: `uint16`</p>
18
+ * <p>Unit: `org.bluetooth.unit.percentage`</p>
19
+ * <p>Percent with a resolution of 0.1</p>
20
+ */
21
+ minimumIncrement: number;
22
+ }
23
+ /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.supported_inclination_range.xml | Supported Inclination Range} */
24
+ export declare class SupportedInclinationRangeImpl implements SupportedInclinationRange {
25
+ static readonly UUID_PREFIX = 10965;
26
+ static readonly TYPE_NAME = "org.bluetooth.characteristic.supported_inclination_range";
27
+ static readonly NAME = "Supported Inclination Range";
28
+ /** Parse from a DataView into {@link SupportedInclinationRange}. */
29
+ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): SupportedInclinationRangeImpl;
30
+ readonly maximumInclination: number;
31
+ readonly minimumInclination: number;
32
+ readonly minimumIncrement: number;
33
+ constructor(supportedInclinationRange: SupportedInclinationRange);
34
+ }
35
+ /** Parse from a DataView into {@link SupportedInclinationRange}. */
36
+ export declare function supportedInclinationRangeFromDataView(dataView: DataView | DataViewReader, indexStart?: number): SupportedInclinationRange;
37
+ //# sourceMappingURL=supported-inclination-range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supported-inclination-range.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/supported-inclination-range.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,kLAAkL;AAClL,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC5B;AAED,mLAAmL;AACnL,qBAAa,6BAA8B,YAAW,yBAAyB;IAC3E,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,8DAA8D;IAC9F,gBAAuB,IAAI,iCAAiC;IAE5D,oEAAoE;WACtD,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,6BAA6B;IAI/H,SAAgB,kBAAkB,EAAE,MAAM,CAAC;IAC3C,SAAgB,kBAAkB,EAAE,MAAM,CAAC;IAC3C,SAAgB,gBAAgB,EAAE,MAAM,CAAC;gBAEtB,yBAAyB,EAAE,yBAAyB;CAK1E;AAED,oEAAoE;AACpE,wBAAgB,qCAAqC,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,yBAAyB,CAM5I"}
@@ -0,0 +1,37 @@
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 _SupportedInclinationRangeImpl = class _SupportedInclinationRangeImpl {
7
+ /** Parse from a DataView into {@link SupportedInclinationRange}. */
8
+ static fromDataView(dataView, indexStart) {
9
+ return new _SupportedInclinationRangeImpl(supportedInclinationRangeFromDataView(dataView, indexStart));
10
+ }
11
+ maximumInclination;
12
+ minimumInclination;
13
+ minimumIncrement;
14
+ constructor(supportedInclinationRange) {
15
+ this.maximumInclination = supportedInclinationRange.maximumInclination;
16
+ this.minimumInclination = supportedInclinationRange.minimumInclination;
17
+ this.minimumIncrement = supportedInclinationRange.minimumIncrement;
18
+ }
19
+ };
20
+ __name(_SupportedInclinationRangeImpl, "SupportedInclinationRangeImpl");
21
+ __publicField(_SupportedInclinationRangeImpl, "UUID_PREFIX", 10965);
22
+ __publicField(_SupportedInclinationRangeImpl, "TYPE_NAME", "org.bluetooth.characteristic.supported_inclination_range");
23
+ __publicField(_SupportedInclinationRangeImpl, "NAME", "Supported Inclination Range");
24
+ let SupportedInclinationRangeImpl = _SupportedInclinationRangeImpl;
25
+ function supportedInclinationRangeFromDataView(dataView, indexStart = 0) {
26
+ const $dvr = dataViewReader(dataView, indexStart);
27
+ const minimumInclination = $dvr.int16();
28
+ const maximumInclination = $dvr.int16();
29
+ const minimumIncrement = $dvr.uint16();
30
+ return { maximumInclination, minimumInclination, minimumIncrement };
31
+ }
32
+ __name(supportedInclinationRangeFromDataView, "supportedInclinationRangeFromDataView");
33
+ export {
34
+ SupportedInclinationRangeImpl,
35
+ supportedInclinationRangeFromDataView
36
+ };
37
+ //# sourceMappingURL=supported-inclination-range.mjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/supported-inclination-range.ts"],
4
+ "mappings": ";;;;AAAA,SAA8B,sBAAsB;AA4B7C,MAAM,iCAAN,MAAM,+BAAmE;AAAA;AAAA,EAM5E,OAAc,aAAa,UAAqC,YAAgE;AAC5H,WAAO,IAAI,+BAA8B,sCAAsC,UAAU,UAAU,CAAC;AAAA,EACxG;AAAA,EAEgB;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,2BAAsD;AACrE,SAAK,qBAAqB,0BAA0B;AACpD,SAAK,qBAAqB,0BAA0B;AACpD,SAAK,mBAAmB,0BAA0B;AAAA,EACtD;AACJ;AAnBgF;AAC5E,cADS,gCACc,eAAc;AACrC,cAFS,gCAEc,aAAY;AACnC,cAHS,gCAGc,QAAO;AAH3B,IAAM,gCAAN;AAsBA,SAAS,sCAAsC,UAAqC,aAAqB,GAA8B;AAC1I,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,qBAAqB,KAAK,MAAM;AACtC,QAAM,qBAAqB,KAAK,MAAM;AACtC,QAAM,mBAAmB,KAAK,OAAO;AACrC,SAAO,EAAE,oBAAoB,oBAAoB,iBAAiB;AACtE;AANgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,56 @@
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 supported_speed_range_exports = {};
23
+ __export(supported_speed_range_exports, {
24
+ SupportedSpeedRangeImpl: () => SupportedSpeedRangeImpl,
25
+ supportedSpeedRangeFromDataView: () => supportedSpeedRangeFromDataView
26
+ });
27
+ module.exports = __toCommonJS(supported_speed_range_exports);
28
+ var import_data_view_reader = require("./data-view-reader.cjs");
29
+ const _SupportedSpeedRangeImpl = class _SupportedSpeedRangeImpl {
30
+ /** Parse from a DataView into {@link SupportedSpeedRange}. */
31
+ static fromDataView(dataView, indexStart) {
32
+ return new _SupportedSpeedRangeImpl(supportedSpeedRangeFromDataView(dataView, indexStart));
33
+ }
34
+ maximumSpeed;
35
+ minimumIncrement;
36
+ minimumSpeed;
37
+ constructor(supportedSpeedRange) {
38
+ this.maximumSpeed = supportedSpeedRange.maximumSpeed;
39
+ this.minimumIncrement = supportedSpeedRange.minimumIncrement;
40
+ this.minimumSpeed = supportedSpeedRange.minimumSpeed;
41
+ }
42
+ };
43
+ __name(_SupportedSpeedRangeImpl, "SupportedSpeedRangeImpl");
44
+ __publicField(_SupportedSpeedRangeImpl, "UUID_PREFIX", 10964);
45
+ __publicField(_SupportedSpeedRangeImpl, "TYPE_NAME", "org.bluetooth.characteristic.supported_speed_range");
46
+ __publicField(_SupportedSpeedRangeImpl, "NAME", "Supported Speed Range");
47
+ let SupportedSpeedRangeImpl = _SupportedSpeedRangeImpl;
48
+ function supportedSpeedRangeFromDataView(dataView, indexStart = 0) {
49
+ const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
50
+ const minimumSpeed = $dvr.uint16();
51
+ const maximumSpeed = $dvr.uint16();
52
+ const minimumIncrement = $dvr.uint16();
53
+ return { maximumSpeed, minimumIncrement, minimumSpeed };
54
+ }
55
+ __name(supportedSpeedRangeFromDataView, "supportedSpeedRangeFromDataView");
56
+ //# sourceMappingURL=supported-speed-range.cjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/supported-speed-range.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AA4B7C,MAAM,2BAAN,MAAM,yBAAuD;AAAA;AAAA,EAMhE,OAAc,aAAa,UAAqC,YAA0D;AACtH,WAAO,IAAI,yBAAwB,gCAAgC,UAAU,UAAU,CAAC;AAAA,EAC5F;AAAA,EAEgB;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,qBAA0C;AACzD,SAAK,eAAe,oBAAoB;AACxC,SAAK,mBAAmB,oBAAoB;AAC5C,SAAK,eAAe,oBAAoB;AAAA,EAC5C;AACJ;AAnBoE;AAChE,cADS,0BACc,eAAc;AACrC,cAFS,0BAEc,aAAY;AACnC,cAHS,0BAGc,QAAO;AAH3B,IAAM,0BAAN;AAsBA,SAAS,gCAAgC,UAAqC,aAAqB,GAAwB;AAC9H,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,eAAe,KAAK,OAAO;AACjC,QAAM,eAAe,KAAK,OAAO;AACjC,QAAM,mBAAmB,KAAK,OAAO;AACrC,SAAO,EAAE,cAAc,kBAAkB,aAAa;AAC1D;AANgB;",
5
+ "names": []
6
+ }
@@ -0,0 +1,37 @@
1
+ import { type DataViewReader } from "./data-view-reader.js";
2
+ /** <p>The Supported Speed Range characteristic is used to send the supported speed range as well as the minimum speed increment supported by the Server.</p> */
3
+ export interface SupportedSpeedRange {
4
+ /**
5
+ * <p>Format: `uint16`</p>
6
+ * <p>Unit: `org.bluetooth.unit.velocity.kilometre_per_hour`</p>
7
+ * <p>Kilometer per hour with a resolution of 0.01</p>
8
+ */
9
+ maximumSpeed: number;
10
+ /**
11
+ * <p>Format: `uint16`</p>
12
+ * <p>Unit: `org.bluetooth.unit.velocity.kilometre_per_hour`</p>
13
+ * <p>Meters per second with a resolution of 0.01</p>
14
+ */
15
+ minimumIncrement: number;
16
+ /**
17
+ * <p>Format: `uint16`</p>
18
+ * <p>Unit: `org.bluetooth.unit.velocity.kilometre_per_hour`</p>
19
+ * <p>Kilometer per hour with a resolution of 0.01</p>
20
+ */
21
+ minimumSpeed: number;
22
+ }
23
+ /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.supported_speed_range.xml | Supported Speed Range} */
24
+ export declare class SupportedSpeedRangeImpl implements SupportedSpeedRange {
25
+ static readonly UUID_PREFIX = 10964;
26
+ static readonly TYPE_NAME = "org.bluetooth.characteristic.supported_speed_range";
27
+ static readonly NAME = "Supported Speed Range";
28
+ /** Parse from a DataView into {@link SupportedSpeedRange}. */
29
+ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): SupportedSpeedRangeImpl;
30
+ readonly maximumSpeed: number;
31
+ readonly minimumIncrement: number;
32
+ readonly minimumSpeed: number;
33
+ constructor(supportedSpeedRange: SupportedSpeedRange);
34
+ }
35
+ /** Parse from a DataView into {@link SupportedSpeedRange}. */
36
+ export declare function supportedSpeedRangeFromDataView(dataView: DataView | DataViewReader, indexStart?: number): SupportedSpeedRange;
37
+ //# sourceMappingURL=supported-speed-range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supported-speed-range.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/supported-speed-range.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E,gKAAgK;AAChK,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,uKAAuK;AACvK,qBAAa,uBAAwB,YAAW,mBAAmB;IAC/D,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,wDAAwD;IACxF,gBAAuB,IAAI,2BAA2B;IAEtD,8DAA8D;WAChD,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,uBAAuB;IAIzH,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,SAAgB,gBAAgB,EAAE,MAAM,CAAC;IACzC,SAAgB,YAAY,EAAE,MAAM,CAAC;gBAElB,mBAAmB,EAAE,mBAAmB;CAK9D;AAED,8DAA8D;AAC9D,wBAAgB,+BAA+B,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,mBAAmB,CAMhI"}
@@ -0,0 +1,37 @@
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 _SupportedSpeedRangeImpl = class _SupportedSpeedRangeImpl {
7
+ /** Parse from a DataView into {@link SupportedSpeedRange}. */
8
+ static fromDataView(dataView, indexStart) {
9
+ return new _SupportedSpeedRangeImpl(supportedSpeedRangeFromDataView(dataView, indexStart));
10
+ }
11
+ maximumSpeed;
12
+ minimumIncrement;
13
+ minimumSpeed;
14
+ constructor(supportedSpeedRange) {
15
+ this.maximumSpeed = supportedSpeedRange.maximumSpeed;
16
+ this.minimumIncrement = supportedSpeedRange.minimumIncrement;
17
+ this.minimumSpeed = supportedSpeedRange.minimumSpeed;
18
+ }
19
+ };
20
+ __name(_SupportedSpeedRangeImpl, "SupportedSpeedRangeImpl");
21
+ __publicField(_SupportedSpeedRangeImpl, "UUID_PREFIX", 10964);
22
+ __publicField(_SupportedSpeedRangeImpl, "TYPE_NAME", "org.bluetooth.characteristic.supported_speed_range");
23
+ __publicField(_SupportedSpeedRangeImpl, "NAME", "Supported Speed Range");
24
+ let SupportedSpeedRangeImpl = _SupportedSpeedRangeImpl;
25
+ function supportedSpeedRangeFromDataView(dataView, indexStart = 0) {
26
+ const $dvr = dataViewReader(dataView, indexStart);
27
+ const minimumSpeed = $dvr.uint16();
28
+ const maximumSpeed = $dvr.uint16();
29
+ const minimumIncrement = $dvr.uint16();
30
+ return { maximumSpeed, minimumIncrement, minimumSpeed };
31
+ }
32
+ __name(supportedSpeedRangeFromDataView, "supportedSpeedRangeFromDataView");
33
+ export {
34
+ SupportedSpeedRangeImpl,
35
+ supportedSpeedRangeFromDataView
36
+ };
37
+ //# sourceMappingURL=supported-speed-range.mjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/supported-speed-range.ts"],
4
+ "mappings": ";;;;AAAA,SAA8B,sBAAsB;AA4B7C,MAAM,2BAAN,MAAM,yBAAuD;AAAA;AAAA,EAMhE,OAAc,aAAa,UAAqC,YAA0D;AACtH,WAAO,IAAI,yBAAwB,gCAAgC,UAAU,UAAU,CAAC;AAAA,EAC5F;AAAA,EAEgB;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY,qBAA0C;AACzD,SAAK,eAAe,oBAAoB;AACxC,SAAK,mBAAmB,oBAAoB;AAC5C,SAAK,eAAe,oBAAoB;AAAA,EAC5C;AACJ;AAnBoE;AAChE,cADS,0BACc,eAAc;AACrC,cAFS,0BAEc,aAAY;AACnC,cAHS,0BAGc,QAAO;AAH3B,IAAM,0BAAN;AAsBA,SAAS,gCAAgC,UAAqC,aAAqB,GAAwB;AAC9H,QAAM,OAAuB,eAAe,UAAU,UAAU;AAChE,QAAM,eAAe,KAAK,OAAO;AACjC,QAAM,eAAe,KAAK,OAAO;AACjC,QAAM,mBAAmB,KAAK,OAAO;AACrC,SAAO,EAAE,cAAc,kBAAkB,aAAa;AAC1D;AANgB;",
5
+ "names": []
6
+ }
package/system-id.cjs ADDED
@@ -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 system_id_exports = {};
23
+ __export(system_id_exports, {
24
+ SystemIdImpl: () => SystemIdImpl,
25
+ systemIdFromDataView: () => systemIdFromDataView
26
+ });
27
+ module.exports = __toCommonJS(system_id_exports);
28
+ var import_data_view_reader = require("./data-view-reader.cjs");
29
+ const _SystemIdImpl = class _SystemIdImpl {
30
+ /** Parse from a DataView into {@link SystemId}. */
31
+ static fromDataView(dataView, indexStart) {
32
+ return new _SystemIdImpl(systemIdFromDataView(dataView, indexStart));
33
+ }
34
+ manufacturerIdentifier;
35
+ organizationallyUniqueIdentifier;
36
+ constructor(systemId) {
37
+ this.manufacturerIdentifier = systemId.manufacturerIdentifier;
38
+ this.organizationallyUniqueIdentifier = systemId.organizationallyUniqueIdentifier;
39
+ }
40
+ };
41
+ __name(_SystemIdImpl, "SystemIdImpl");
42
+ __publicField(_SystemIdImpl, "UUID_PREFIX", 10787);
43
+ __publicField(_SystemIdImpl, "TYPE_NAME", "org.bluetooth.characteristic.system_id");
44
+ __publicField(_SystemIdImpl, "NAME", "System ID");
45
+ let SystemIdImpl = _SystemIdImpl;
46
+ function systemIdFromDataView(dataView, indexStart = 0) {
47
+ const $dvr = (0, import_data_view_reader.dataViewReader)(dataView, indexStart);
48
+ const manufacturerIdentifier = $dvr.uint40();
49
+ const organizationallyUniqueIdentifier = $dvr.uint24();
50
+ return { manufacturerIdentifier, organizationallyUniqueIdentifier };
51
+ }
52
+ __name(systemIdFromDataView, "systemIdFromDataView");
53
+ //# sourceMappingURL=system-id.cjs.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/packages/bluetools/system-id.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAoD;AA0B7C,MAAM,gBAAN,MAAM,cAAiC;AAAA;AAAA,EAM1C,OAAc,aAAa,UAAqC,YAA+C;AAC3G,WAAO,IAAI,cAAa,qBAAqB,UAAU,UAAU,CAAC;AAAA,EACtE;AAAA,EAEgB;AAAA,EACA;AAAA,EAET,YAAY,UAAoB;AACnC,SAAK,yBAAyB,SAAS;AACvC,SAAK,mCAAmC,SAAS;AAAA,EACrD;AACJ;AAjB8C;AAC1C,cADS,eACc,eAAc;AACrC,cAFS,eAEc,aAAY;AACnC,cAHS,eAGc,QAAO;AAH3B,IAAM,eAAN;AAoBA,SAAS,qBAAqB,UAAqC,aAAqB,GAAa;AACxG,QAAM,WAAuB,wCAAe,UAAU,UAAU;AAChE,QAAM,yBAAyB,KAAK,OAAO;AAC3C,QAAM,mCAAmC,KAAK,OAAO;AACrD,SAAO,EAAE,wBAAwB,iCAAiC;AACtE;AALgB;",
5
+ "names": []
6
+ }
package/system-id.d.ts ADDED
@@ -0,0 +1,34 @@
1
+ import { type DataViewReader } from "./data-view-reader.js";
2
+ /**
3
+ * <p>The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined.</p>
4
+ * <p>If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf.</p>
5
+ * <p>If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE.</p>
6
+ */
7
+ export interface SystemId {
8
+ /**
9
+ * <p>Format: `uint40`</p>
10
+ * <p>Minimum: 0</p>
11
+ * <p>Maximum: 1099511627775</p>
12
+ */
13
+ manufacturerIdentifier: number;
14
+ /**
15
+ * <p>Format: `uint24`</p>
16
+ * <p>Minimum: 0</p>
17
+ * <p>Maximum: 16777215</p>
18
+ */
19
+ organizationallyUniqueIdentifier: number;
20
+ }
21
+ /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.system_id.xml | System Id} */
22
+ export declare class SystemIdImpl implements SystemId {
23
+ static readonly UUID_PREFIX = 10787;
24
+ static readonly TYPE_NAME = "org.bluetooth.characteristic.system_id";
25
+ static readonly NAME = "System ID";
26
+ /** Parse from a DataView into {@link SystemId}. */
27
+ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): SystemIdImpl;
28
+ readonly manufacturerIdentifier: number;
29
+ readonly organizationallyUniqueIdentifier: number;
30
+ constructor(systemId: SystemId);
31
+ }
32
+ /** Parse from a DataView into {@link SystemId}. */
33
+ export declare function systemIdFromDataView(dataView: DataView | DataViewReader, indexStart?: number): SystemId;
34
+ //# sourceMappingURL=system-id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-id.d.ts","sourceRoot":"","sources":["../../../src/packages/bluetools/system-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,uBAAuB,CAAC;AAK5E;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,gCAAgC,EAAE,MAAM,CAAC;CAC5C;AAED,+IAA+I;AAC/I,qBAAa,YAAa,YAAW,QAAQ;IACzC,gBAAuB,WAAW,SAAU;IAC5C,gBAAuB,SAAS,4CAA4C;IAC5E,gBAAuB,IAAI,eAAe;IAE1C,mDAAmD;WACrC,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY;IAI9G,SAAgB,sBAAsB,EAAE,MAAM,CAAC;IAC/C,SAAgB,gCAAgC,EAAE,MAAM,CAAC;gBAEtC,QAAQ,EAAE,QAAQ;CAIxC;AAED,mDAAmD;AACnD,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,GAAG,cAAc,EAAE,UAAU,GAAE,MAAU,GAAG,QAAQ,CAK1G"}