@willieee802/zigbee-herdsman 0.18.2 → 0.18.3

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 (327) hide show
  1. package/dist/adapter/adapter.d.ts +61 -61
  2. package/dist/adapter/adapter.d.ts.map +1 -1
  3. package/dist/adapter/adapter.js +146 -146
  4. package/dist/adapter/deconz/adapter/deconzAdapter.d.ts +68 -68
  5. package/dist/adapter/deconz/adapter/deconzAdapter.js +1060 -1060
  6. package/dist/adapter/deconz/adapter/index.d.ts +2 -2
  7. package/dist/adapter/deconz/adapter/index.js +10 -10
  8. package/dist/adapter/deconz/driver/constants.d.ts +104 -104
  9. package/dist/adapter/deconz/driver/constants.js +55 -55
  10. package/dist/adapter/deconz/driver/driver.d.ts +81 -81
  11. package/dist/adapter/deconz/driver/driver.js +732 -732
  12. package/dist/adapter/deconz/driver/frame.d.ts +6 -6
  13. package/dist/adapter/deconz/driver/frame.js +13 -13
  14. package/dist/adapter/deconz/driver/frameParser.d.ts +2 -2
  15. package/dist/adapter/deconz/driver/frameParser.js +443 -443
  16. package/dist/adapter/deconz/driver/parser.d.ts +12 -12
  17. package/dist/adapter/deconz/driver/parser.js +61 -61
  18. package/dist/adapter/deconz/driver/writer.d.ts +8 -8
  19. package/dist/adapter/deconz/driver/writer.js +44 -44
  20. package/dist/adapter/events.d.ts +47 -47
  21. package/dist/adapter/events.js +14 -14
  22. package/dist/adapter/ezsp/adapter/backup.d.ts +9 -9
  23. package/dist/adapter/ezsp/adapter/backup.js +53 -53
  24. package/dist/adapter/ezsp/adapter/ezspAdapter.d.ts +59 -59
  25. package/dist/adapter/ezsp/adapter/ezspAdapter.d.ts.map +1 -1
  26. package/dist/adapter/ezsp/adapter/ezspAdapter.js +603 -585
  27. package/dist/adapter/ezsp/adapter/ezspAdapter.js.map +1 -1
  28. package/dist/adapter/ezsp/adapter/index.d.ts +2 -2
  29. package/dist/adapter/ezsp/adapter/index.js +10 -10
  30. package/dist/adapter/ezsp/driver/commands.d.ts +36 -36
  31. package/dist/adapter/ezsp/driver/commands.js +2359 -2359
  32. package/dist/adapter/ezsp/driver/consts.d.ts +10 -10
  33. package/dist/adapter/ezsp/driver/consts.js +13 -13
  34. package/dist/adapter/ezsp/driver/driver.d.ts +103 -103
  35. package/dist/adapter/ezsp/driver/driver.js +639 -639
  36. package/dist/adapter/ezsp/driver/ezsp.d.ts +96 -96
  37. package/dist/adapter/ezsp/driver/ezsp.js +586 -586
  38. package/dist/adapter/ezsp/driver/index.d.ts +3 -3
  39. package/dist/adapter/ezsp/driver/index.js +8 -8
  40. package/dist/adapter/ezsp/driver/multicast.d.ts +12 -12
  41. package/dist/adapter/ezsp/driver/multicast.js +74 -74
  42. package/dist/adapter/ezsp/driver/parser.d.ts +12 -12
  43. package/dist/adapter/ezsp/driver/parser.js +111 -111
  44. package/dist/adapter/ezsp/driver/types/basic.d.ts +62 -62
  45. package/dist/adapter/ezsp/driver/types/basic.js +208 -208
  46. package/dist/adapter/ezsp/driver/types/basic.js.map +1 -1
  47. package/dist/adapter/ezsp/driver/types/index.d.ts +9 -9
  48. package/dist/adapter/ezsp/driver/types/index.js +133 -133
  49. package/dist/adapter/ezsp/driver/types/named.d.ts +697 -697
  50. package/dist/adapter/ezsp/driver/types/named.js +1726 -1726
  51. package/dist/adapter/ezsp/driver/types/named.js.map +1 -1
  52. package/dist/adapter/ezsp/driver/types/struct.d.ts +251 -251
  53. package/dist/adapter/ezsp/driver/types/struct.js +708 -708
  54. package/dist/adapter/ezsp/driver/types/struct.js.map +1 -1
  55. package/dist/adapter/ezsp/driver/uart.d.ts +44 -44
  56. package/dist/adapter/ezsp/driver/uart.js +368 -368
  57. package/dist/adapter/ezsp/driver/utils/crc16ccitt.d.ts +2 -2
  58. package/dist/adapter/ezsp/driver/utils/crc16ccitt.js +55 -55
  59. package/dist/adapter/ezsp/driver/utils/index.d.ts +18 -18
  60. package/dist/adapter/ezsp/driver/utils/index.js +67 -67
  61. package/dist/adapter/ezsp/driver/writer.d.ts +13 -13
  62. package/dist/adapter/ezsp/driver/writer.js +88 -88
  63. package/dist/adapter/index.d.ts +4 -4
  64. package/dist/adapter/index.js +35 -35
  65. package/dist/adapter/serialPort.d.ts +8 -8
  66. package/dist/adapter/serialPort.js +22 -22
  67. package/dist/adapter/serialPort.js.map +1 -1
  68. package/dist/adapter/serialPortUtils.d.ts +12 -12
  69. package/dist/adapter/serialPortUtils.js +18 -18
  70. package/dist/adapter/socketPortUtils.d.ts +10 -10
  71. package/dist/adapter/socketPortUtils.js +16 -16
  72. package/dist/adapter/tstype.d.ts +85 -85
  73. package/dist/adapter/tstype.js +2 -2
  74. package/dist/adapter/z-stack/adapter/adapter-backup.d.ts +62 -62
  75. package/dist/adapter/z-stack/adapter/adapter-backup.d.ts.map +1 -1
  76. package/dist/adapter/z-stack/adapter/adapter-backup.js +460 -441
  77. package/dist/adapter/z-stack/adapter/adapter-backup.js.map +1 -1
  78. package/dist/adapter/z-stack/adapter/adapter-nv-memory.d.ts +150 -150
  79. package/dist/adapter/z-stack/adapter/adapter-nv-memory.js +258 -258
  80. package/dist/adapter/z-stack/adapter/endpoints.d.ts +11 -11
  81. package/dist/adapter/z-stack/adapter/endpoints.js +73 -73
  82. package/dist/adapter/z-stack/adapter/index.d.ts +2 -2
  83. package/dist/adapter/z-stack/adapter/index.js +8 -8
  84. package/dist/adapter/z-stack/adapter/manager.d.ts +86 -86
  85. package/dist/adapter/z-stack/adapter/manager.js +476 -476
  86. package/dist/adapter/z-stack/adapter/tstype.d.ts +6 -6
  87. package/dist/adapter/z-stack/adapter/tstype.js +10 -10
  88. package/dist/adapter/z-stack/adapter/zStackAdapter.d.ts +81 -81
  89. package/dist/adapter/z-stack/adapter/zStackAdapter.d.ts.map +1 -1
  90. package/dist/adapter/z-stack/adapter/zStackAdapter.js +868 -868
  91. package/dist/adapter/z-stack/adapter/zStackAdapter.js.map +1 -1
  92. package/dist/adapter/z-stack/constants/af.d.ts +23 -23
  93. package/dist/adapter/z-stack/constants/af.js +27 -27
  94. package/dist/adapter/z-stack/constants/common.d.ts +278 -278
  95. package/dist/adapter/z-stack/constants/common.js +289 -289
  96. package/dist/adapter/z-stack/constants/dbg.d.ts +22 -22
  97. package/dist/adapter/z-stack/constants/dbg.js +24 -24
  98. package/dist/adapter/z-stack/constants/index.d.ts +10 -10
  99. package/dist/adapter/z-stack/constants/index.js +47 -47
  100. package/dist/adapter/z-stack/constants/mac.d.ts +127 -127
  101. package/dist/adapter/z-stack/constants/mac.js +129 -129
  102. package/dist/adapter/z-stack/constants/sapi.d.ts +24 -24
  103. package/dist/adapter/z-stack/constants/sapi.js +26 -26
  104. package/dist/adapter/z-stack/constants/sys.d.ts +71 -71
  105. package/dist/adapter/z-stack/constants/sys.js +73 -73
  106. package/dist/adapter/z-stack/constants/util.d.ts +81 -81
  107. package/dist/adapter/z-stack/constants/util.js +83 -83
  108. package/dist/adapter/z-stack/constants/utils.d.ts +4 -4
  109. package/dist/adapter/z-stack/constants/utils.js +14 -14
  110. package/dist/adapter/z-stack/constants/zdo.d.ts +102 -102
  111. package/dist/adapter/z-stack/constants/zdo.js +104 -104
  112. package/dist/adapter/z-stack/models/index.d.ts +1 -1
  113. package/dist/adapter/z-stack/models/index.js +17 -17
  114. package/dist/adapter/z-stack/models/startup-options.d.ts +12 -12
  115. package/dist/adapter/z-stack/models/startup-options.js +2 -2
  116. package/dist/adapter/z-stack/structs/entries/address-manager-entry.d.ts +23 -23
  117. package/dist/adapter/z-stack/structs/entries/address-manager-entry.js +45 -45
  118. package/dist/adapter/z-stack/structs/entries/address-manager-table.d.ts +10 -10
  119. package/dist/adapter/z-stack/structs/entries/address-manager-table.js +22 -22
  120. package/dist/adapter/z-stack/structs/entries/aps-link-key-data-entry.d.ts +10 -10
  121. package/dist/adapter/z-stack/structs/entries/aps-link-key-data-entry.js +21 -21
  122. package/dist/adapter/z-stack/structs/entries/aps-link-key-data-table.d.ts +10 -10
  123. package/dist/adapter/z-stack/structs/entries/aps-link-key-data-table.js +23 -23
  124. package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-entry.d.ts +10 -10
  125. package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-entry.js +24 -24
  126. package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-table.d.ts +10 -10
  127. package/dist/adapter/z-stack/structs/entries/aps-tc-link-key-table.js +23 -23
  128. package/dist/adapter/z-stack/structs/entries/channel-list.d.ts +8 -8
  129. package/dist/adapter/z-stack/structs/entries/channel-list.js +15 -15
  130. package/dist/adapter/z-stack/structs/entries/has-configured.d.ts +8 -8
  131. package/dist/adapter/z-stack/structs/entries/has-configured.js +16 -16
  132. package/dist/adapter/z-stack/structs/entries/index.d.ts +16 -16
  133. package/dist/adapter/z-stack/structs/entries/index.js +32 -32
  134. package/dist/adapter/z-stack/structs/entries/nib.d.ts +10 -10
  135. package/dist/adapter/z-stack/structs/entries/nib.js +68 -68
  136. package/dist/adapter/z-stack/structs/entries/nwk-key-descriptor.d.ts +10 -10
  137. package/dist/adapter/z-stack/structs/entries/nwk-key-descriptor.js +18 -18
  138. package/dist/adapter/z-stack/structs/entries/nwk-key.d.ts +8 -8
  139. package/dist/adapter/z-stack/structs/entries/nwk-key.js +15 -15
  140. package/dist/adapter/z-stack/structs/entries/nwk-pan-id.d.ts +8 -8
  141. package/dist/adapter/z-stack/structs/entries/nwk-pan-id.js +15 -15
  142. package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-entry.d.ts +13 -13
  143. package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-entry.js +23 -23
  144. package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-table.d.ts +10 -10
  145. package/dist/adapter/z-stack/structs/entries/nwk-sec-material-descriptor-table.js +22 -22
  146. package/dist/adapter/z-stack/structs/entries/security-manager-entry.d.ts +20 -20
  147. package/dist/adapter/z-stack/structs/entries/security-manager-entry.js +36 -36
  148. package/dist/adapter/z-stack/structs/entries/security-manager-table.d.ts +10 -10
  149. package/dist/adapter/z-stack/structs/entries/security-manager-table.js +24 -24
  150. package/dist/adapter/z-stack/structs/index.d.ts +4 -4
  151. package/dist/adapter/z-stack/structs/index.js +20 -20
  152. package/dist/adapter/z-stack/structs/serializable-memory-object.d.ts +13 -13
  153. package/dist/adapter/z-stack/structs/serializable-memory-object.js +2 -2
  154. package/dist/adapter/z-stack/structs/struct.d.ts +99 -99
  155. package/dist/adapter/z-stack/structs/struct.js +295 -295
  156. package/dist/adapter/z-stack/structs/table.d.ts +94 -94
  157. package/dist/adapter/z-stack/structs/table.js +161 -161
  158. package/dist/adapter/z-stack/unpi/constants.d.ts +28 -28
  159. package/dist/adapter/z-stack/unpi/constants.js +41 -41
  160. package/dist/adapter/z-stack/unpi/frame.d.ts +16 -16
  161. package/dist/adapter/z-stack/unpi/frame.js +48 -48
  162. package/dist/adapter/z-stack/unpi/index.d.ts +5 -5
  163. package/dist/adapter/z-stack/unpi/index.js +37 -37
  164. package/dist/adapter/z-stack/unpi/parser.d.ts +10 -10
  165. package/dist/adapter/z-stack/unpi/parser.js +74 -74
  166. package/dist/adapter/z-stack/unpi/writer.d.ts +10 -10
  167. package/dist/adapter/z-stack/unpi/writer.js +44 -44
  168. package/dist/adapter/z-stack/utils/channel-list.d.ts +20 -20
  169. package/dist/adapter/z-stack/utils/channel-list.js +40 -40
  170. package/dist/adapter/z-stack/utils/index.d.ts +2 -2
  171. package/dist/adapter/z-stack/utils/index.js +18 -18
  172. package/dist/adapter/z-stack/utils/network-options.d.ts +8 -8
  173. package/dist/adapter/z-stack/utils/network-options.js +22 -22
  174. package/dist/adapter/z-stack/znp/buffaloZnp.d.ts +11 -11
  175. package/dist/adapter/z-stack/znp/buffaloZnp.js +113 -113
  176. package/dist/adapter/z-stack/znp/definition.d.ts +5 -5
  177. package/dist/adapter/z-stack/znp/definition.js +3050 -3050
  178. package/dist/adapter/z-stack/znp/index.d.ts +3 -3
  179. package/dist/adapter/z-stack/znp/index.js +10 -10
  180. package/dist/adapter/z-stack/znp/parameterType.d.ts +22 -22
  181. package/dist/adapter/z-stack/znp/parameterType.js +25 -25
  182. package/dist/adapter/z-stack/znp/tstype.d.ts +21 -21
  183. package/dist/adapter/z-stack/znp/tstype.js +2 -2
  184. package/dist/adapter/z-stack/znp/znp.d.ts +43 -43
  185. package/dist/adapter/z-stack/znp/znp.js +325 -325
  186. package/dist/adapter/z-stack/znp/zpiObject.d.ts +19 -19
  187. package/dist/adapter/z-stack/znp/zpiObject.js +96 -96
  188. package/dist/adapter/zigate/adapter/index.d.ts +2 -2
  189. package/dist/adapter/zigate/adapter/index.js +10 -10
  190. package/dist/adapter/zigate/adapter/zigateAdapter.d.ts +69 -69
  191. package/dist/adapter/zigate/adapter/zigateAdapter.js +678 -678
  192. package/dist/adapter/zigate/debug.d.ts +7 -7
  193. package/dist/adapter/zigate/debug.js +22 -22
  194. package/dist/adapter/zigate/driver/buffaloZiGate.d.ts +18 -18
  195. package/dist/adapter/zigate/driver/buffaloZiGate.js +139 -139
  196. package/dist/adapter/zigate/driver/commandType.d.ts +41 -41
  197. package/dist/adapter/zigate/driver/commandType.js +385 -385
  198. package/dist/adapter/zigate/driver/constants.d.ts +276 -276
  199. package/dist/adapter/zigate/driver/constants.js +371 -371
  200. package/dist/adapter/zigate/driver/frame.d.ts +26 -26
  201. package/dist/adapter/zigate/driver/frame.js +172 -172
  202. package/dist/adapter/zigate/driver/frame.js.map +1 -1
  203. package/dist/adapter/zigate/driver/messageType.d.ts +11 -11
  204. package/dist/adapter/zigate/driver/messageType.js +278 -278
  205. package/dist/adapter/zigate/driver/parameterType.d.ts +20 -20
  206. package/dist/adapter/zigate/driver/parameterType.js +23 -23
  207. package/dist/adapter/zigate/driver/ziGateObject.d.ts +23 -23
  208. package/dist/adapter/zigate/driver/ziGateObject.js +106 -106
  209. package/dist/adapter/zigate/driver/zigate.d.ts +49 -49
  210. package/dist/adapter/zigate/driver/zigate.js +303 -303
  211. package/dist/buffalo/buffalo.d.ts +50 -50
  212. package/dist/buffalo/buffalo.js +322 -322
  213. package/dist/buffalo/index.d.ts +3 -3
  214. package/dist/buffalo/index.js +33 -33
  215. package/dist/buffalo/tstype.d.ts +8 -8
  216. package/dist/buffalo/tstype.js +2 -2
  217. package/dist/controller/controller.d.ts +113 -110
  218. package/dist/controller/controller.d.ts.map +1 -1
  219. package/dist/controller/controller.js +619 -607
  220. package/dist/controller/controller.js.map +1 -1
  221. package/dist/controller/database.d.ts +18 -18
  222. package/dist/controller/database.js +93 -93
  223. package/dist/controller/events.d.ts +58 -55
  224. package/dist/controller/events.d.ts.map +1 -1
  225. package/dist/controller/events.js +101 -101
  226. package/dist/controller/events.js.map +1 -1
  227. package/dist/controller/greenPower.d.ts +12 -12
  228. package/dist/controller/greenPower.js +220 -220
  229. package/dist/controller/helpers/index.d.ts +2 -2
  230. package/dist/controller/helpers/index.js +28 -28
  231. package/dist/controller/helpers/request.d.ts +22 -22
  232. package/dist/controller/helpers/request.js +71 -71
  233. package/dist/controller/helpers/zclFrameConverter.d.ts +7 -7
  234. package/dist/controller/helpers/zclFrameConverter.js +31 -31
  235. package/dist/controller/helpers/zclTransactionSequenceNumber.d.ts +5 -5
  236. package/dist/controller/helpers/zclTransactionSequenceNumber.js +13 -13
  237. package/dist/controller/index.d.ts +5 -5
  238. package/dist/controller/index.js +8 -8
  239. package/dist/controller/logger-stub.d.ts +6 -6
  240. package/dist/controller/logger-stub.js +2 -2
  241. package/dist/controller/model/device.d.ts +133 -132
  242. package/dist/controller/model/device.d.ts.map +1 -1
  243. package/dist/controller/model/device.js +717 -708
  244. package/dist/controller/model/device.js.map +1 -1
  245. package/dist/controller/model/endpoint.d.ts +131 -131
  246. package/dist/controller/model/endpoint.d.ts.map +1 -1
  247. package/dist/controller/model/endpoint.js +816 -817
  248. package/dist/controller/model/endpoint.js.map +1 -1
  249. package/dist/controller/model/entity.d.ts +14 -14
  250. package/dist/controller/model/entity.js +26 -26
  251. package/dist/controller/model/group.d.ts +38 -38
  252. package/dist/controller/model/group.js +221 -221
  253. package/dist/controller/model/index.d.ts +5 -5
  254. package/dist/controller/model/index.js +14 -14
  255. package/dist/controller/touchlink.d.ts +19 -19
  256. package/dist/controller/touchlink.js +157 -157
  257. package/dist/controller/tstype.d.ts +21 -21
  258. package/dist/controller/tstype.js +9 -9
  259. package/dist/index.d.ts +3 -3
  260. package/dist/index.js +33 -33
  261. package/dist/models/backup-storage-legacy.d.ts +26 -26
  262. package/dist/models/backup-storage-legacy.js +2 -2
  263. package/dist/models/backup-storage-unified.d.ts +49 -49
  264. package/dist/models/backup-storage-unified.js +2 -2
  265. package/dist/models/backup.d.ts +37 -37
  266. package/dist/models/backup.js +2 -2
  267. package/dist/models/index.d.ts +4 -4
  268. package/dist/models/index.js +20 -20
  269. package/dist/models/network-options.d.ts +12 -12
  270. package/dist/models/network-options.js +2 -2
  271. package/dist/utils/assertString.d.ts +2 -2
  272. package/dist/utils/assertString.js +8 -8
  273. package/dist/utils/backup.d.ts +20 -20
  274. package/dist/utils/backup.js +187 -187
  275. package/dist/utils/equalsPartial.d.ts +2 -2
  276. package/dist/utils/equalsPartial.js +11 -11
  277. package/dist/utils/index.d.ts +9 -9
  278. package/dist/utils/index.js +45 -45
  279. package/dist/utils/isNumberArray.d.ts +2 -2
  280. package/dist/utils/isNumberArray.js +6 -6
  281. package/dist/utils/queue.d.ts +11 -11
  282. package/dist/utils/queue.js +50 -50
  283. package/dist/utils/realpathSync.d.ts +2 -2
  284. package/dist/utils/realpathSync.js +12 -12
  285. package/dist/utils/wait.d.ts +2 -2
  286. package/dist/utils/wait.js +8 -8
  287. package/dist/utils/waitress.d.ts +21 -21
  288. package/dist/utils/waitress.js +61 -61
  289. package/dist/zcl/buffaloZcl.d.ts +41 -41
  290. package/dist/zcl/buffaloZcl.js +591 -591
  291. package/dist/zcl/definition/buffaloZclDataType.d.ts +17 -17
  292. package/dist/zcl/definition/buffaloZclDataType.js +20 -20
  293. package/dist/zcl/definition/cluster.d.ts +29 -29
  294. package/dist/zcl/definition/cluster.js +5335 -5335
  295. package/dist/zcl/definition/dataType.d.ts +59 -59
  296. package/dist/zcl/definition/dataType.js +64 -64
  297. package/dist/zcl/definition/direction.d.ts +5 -5
  298. package/dist/zcl/definition/direction.js +8 -8
  299. package/dist/zcl/definition/endpointDeviceType.d.ts +4 -4
  300. package/dist/zcl/definition/endpointDeviceType.js +15 -15
  301. package/dist/zcl/definition/foundation.d.ts +11 -11
  302. package/dist/zcl/definition/foundation.js +167 -167
  303. package/dist/zcl/definition/frameControl.d.ts +10 -10
  304. package/dist/zcl/definition/frameControl.js +2 -2
  305. package/dist/zcl/definition/frameType.d.ts +5 -5
  306. package/dist/zcl/definition/frameType.js +8 -8
  307. package/dist/zcl/definition/index.d.ts +13 -13
  308. package/dist/zcl/definition/index.js +51 -51
  309. package/dist/zcl/definition/manufacturerCode.d.ts +1074 -1074
  310. package/dist/zcl/definition/manufacturerCode.js +1079 -1079
  311. package/dist/zcl/definition/powerSource.d.ts +4 -4
  312. package/dist/zcl/definition/powerSource.js +12 -12
  313. package/dist/zcl/definition/status.d.ts +38 -38
  314. package/dist/zcl/definition/status.js +41 -41
  315. package/dist/zcl/definition/tstype.d.ts +16 -16
  316. package/dist/zcl/definition/tstype.js +2 -2
  317. package/dist/zcl/index.d.ts +15 -15
  318. package/dist/zcl/index.js +55 -55
  319. package/dist/zcl/tstype.d.ts +56 -56
  320. package/dist/zcl/tstype.js +10 -10
  321. package/dist/zcl/utils.d.ts +6 -6
  322. package/dist/zcl/utils.js +165 -165
  323. package/dist/zcl/zclFrame.d.ts +45 -45
  324. package/dist/zcl/zclFrame.js +347 -347
  325. package/dist/zcl/zclStatusError.d.ts +5 -5
  326. package/dist/zcl/zclStatusError.js +13 -13
  327. package/package.json +1 -1
@@ -1,95 +1,95 @@
1
- /// <reference types="node" />
2
- import { SerializableMemoryObject } from "./serializable-memory-object";
3
- import { BuiltStruct, StructFactorySignature, StructMemoryAlignment } from "./struct";
4
- type TableBuildOmitKeys = "struct" | "header" | "occupancy" | "load" | "build";
5
- export type BuiltTable<R extends BuiltStruct, T = Table<R>> = Omit<T, TableBuildOmitKeys>;
6
- export type TableFactorySignature<R extends BuiltStruct, T = Table<R>> = (data?: Buffer) => T;
7
- /**
8
- * Table structure wraps `Struct`-based entries for tables present within ZNP NV memory.
9
- */
10
- export declare class Table<R extends BuiltStruct> implements SerializableMemoryObject {
11
- /**
12
- * Create a new table builder.
13
- */
14
- static new<R extends BuiltStruct>(): Table<R>;
15
- private data;
16
- private emptyEntry;
17
- private hasInlineLengthHeader;
18
- private entryStructFactory;
19
- private entryOccupancyFunction;
20
- private constructor();
21
- /**
22
- * Return total capacity of the table.
23
- */
24
- get capacity(): number;
25
- /**
26
- * Returns all entries within table.
27
- */
28
- get entries(): R[];
29
- /**
30
- * Returns all used entries.
31
- */
32
- get used(): R[];
33
- /**
34
- * Returns all unused entries.
35
- */
36
- get free(): R[];
37
- /**
38
- * Return number of records marked as free.
39
- */
40
- get freeCount(): number;
41
- /**
42
- * Return number of records marked as used.
43
- */
44
- get usedCount(): number;
45
- /**
46
- * Return next free entry or `null` if no entries are free within the table.
47
- */
48
- getNextFree(): R;
49
- /**
50
- * Returns index of element in table.
51
- *
52
- * @param entry Entry to resolve index for.
53
- */
54
- indexOf(entry: R): number | null;
55
- /**
56
- * Export the table in target platform format.
57
- *
58
- * @param alignment Memory alignment to use for export.
59
- */
60
- serialize(alignment?: StructMemoryAlignment): Buffer;
61
- /**
62
- * Applies function to determine table entry occupancy. This function is invoked with an entry instance
63
- * and returns `boolean` indicating if the entry is occupied or not.
64
- *
65
- * @param fn Function to determine entry occupancy.
66
- */
67
- occupancy(fn: (entry: R) => boolean): this;
68
- /**
69
- * Defines a struct factory for entries contained within table.
70
- *
71
- * @param entryStructFactory Struct factory.
72
- */
73
- struct(entryStructFactory: StructFactorySignature<R>): this;
74
- /**
75
- * Sets whether the table has a table header containing a 16-bit unsigned used table length.
76
- *
77
- * @param hasInlineHeader Sets whether table has record count header.
78
- */
79
- inlineHeader(hasInlineHeader?: boolean): this;
80
- /**
81
- * Builds the table from existing buffer or buffers representing entries.
82
- *
83
- * @param data Buffer to populate table from.
84
- * @param alignment Memory alignment of the source platform.
85
- */
86
- build(data: Buffer | Buffer[], alignment?: StructMemoryAlignment): BuiltTable<R>;
87
- /**
88
- * Creates an empty table with set capacity.
89
- *
90
- * @param capacity Capacity to create the table with.
91
- */
92
- build(capacity: number): BuiltTable<R>;
93
- }
94
- export {};
1
+ /// <reference types="node" />
2
+ import { SerializableMemoryObject } from "./serializable-memory-object";
3
+ import { BuiltStruct, StructFactorySignature, StructMemoryAlignment } from "./struct";
4
+ type TableBuildOmitKeys = "struct" | "header" | "occupancy" | "load" | "build";
5
+ export type BuiltTable<R extends BuiltStruct, T = Table<R>> = Omit<T, TableBuildOmitKeys>;
6
+ export type TableFactorySignature<R extends BuiltStruct, T = Table<R>> = (data?: Buffer) => T;
7
+ /**
8
+ * Table structure wraps `Struct`-based entries for tables present within ZNP NV memory.
9
+ */
10
+ export declare class Table<R extends BuiltStruct> implements SerializableMemoryObject {
11
+ /**
12
+ * Create a new table builder.
13
+ */
14
+ static new<R extends BuiltStruct>(): Table<R>;
15
+ private data;
16
+ private emptyEntry;
17
+ private hasInlineLengthHeader;
18
+ private entryStructFactory;
19
+ private entryOccupancyFunction;
20
+ private constructor();
21
+ /**
22
+ * Return total capacity of the table.
23
+ */
24
+ get capacity(): number;
25
+ /**
26
+ * Returns all entries within table.
27
+ */
28
+ get entries(): R[];
29
+ /**
30
+ * Returns all used entries.
31
+ */
32
+ get used(): R[];
33
+ /**
34
+ * Returns all unused entries.
35
+ */
36
+ get free(): R[];
37
+ /**
38
+ * Return number of records marked as free.
39
+ */
40
+ get freeCount(): number;
41
+ /**
42
+ * Return number of records marked as used.
43
+ */
44
+ get usedCount(): number;
45
+ /**
46
+ * Return next free entry or `null` if no entries are free within the table.
47
+ */
48
+ getNextFree(): R;
49
+ /**
50
+ * Returns index of element in table.
51
+ *
52
+ * @param entry Entry to resolve index for.
53
+ */
54
+ indexOf(entry: R): number | null;
55
+ /**
56
+ * Export the table in target platform format.
57
+ *
58
+ * @param alignment Memory alignment to use for export.
59
+ */
60
+ serialize(alignment?: StructMemoryAlignment): Buffer;
61
+ /**
62
+ * Applies function to determine table entry occupancy. This function is invoked with an entry instance
63
+ * and returns `boolean` indicating if the entry is occupied or not.
64
+ *
65
+ * @param fn Function to determine entry occupancy.
66
+ */
67
+ occupancy(fn: (entry: R) => boolean): this;
68
+ /**
69
+ * Defines a struct factory for entries contained within table.
70
+ *
71
+ * @param entryStructFactory Struct factory.
72
+ */
73
+ struct(entryStructFactory: StructFactorySignature<R>): this;
74
+ /**
75
+ * Sets whether the table has a table header containing a 16-bit unsigned used table length.
76
+ *
77
+ * @param hasInlineHeader Sets whether table has record count header.
78
+ */
79
+ inlineHeader(hasInlineHeader?: boolean): this;
80
+ /**
81
+ * Builds the table from existing buffer or buffers representing entries.
82
+ *
83
+ * @param data Buffer to populate table from.
84
+ * @param alignment Memory alignment of the source platform.
85
+ */
86
+ build(data: Buffer | Buffer[], alignment?: StructMemoryAlignment): BuiltTable<R>;
87
+ /**
88
+ * Creates an empty table with set capacity.
89
+ *
90
+ * @param capacity Capacity to create the table with.
91
+ */
92
+ build(capacity: number): BuiltTable<R>;
93
+ }
94
+ export {};
95
95
  //# sourceMappingURL=table.d.ts.map
@@ -1,162 +1,162 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Table = void 0;
4
- /**
5
- * Table structure wraps `Struct`-based entries for tables present within ZNP NV memory.
6
- */
7
- class Table {
8
- /**
9
- * Create a new table builder.
10
- */
11
- static new() {
12
- return new Table();
13
- }
14
- constructor() {
15
- this.hasInlineLengthHeader = false;
16
- this.entryOccupancyFunction = null;
17
- }
18
- /**
19
- * Return total capacity of the table.
20
- */
21
- get capacity() {
22
- return this.data.length;
23
- }
24
- /**
25
- * Returns all entries within table.
26
- */
27
- get entries() {
28
- return this.data;
29
- }
30
- /**
31
- * Returns all used entries.
32
- */
33
- get used() {
34
- /* istanbul ignore next */
35
- if (!this.entryOccupancyFunction) {
36
- throw new Error("Table usage cannot be determined without occupancy function when header is not present.");
37
- }
38
- return this.entries.filter(e => this.entryOccupancyFunction(e));
39
- }
40
- /**
41
- * Returns all unused entries.
42
- */
43
- get free() {
44
- /* istanbul ignore next */
45
- if (!this.entryOccupancyFunction) {
46
- throw new Error("Table usage cannot be determined without occupancy function when header is not present.");
47
- }
48
- return this.entries.filter(e => !this.entryOccupancyFunction(e));
49
- }
50
- /**
51
- * Return number of records marked as free.
52
- */
53
- get freeCount() {
54
- /* istanbul ignore next */
55
- return this.free.length;
56
- }
57
- /**
58
- * Return number of records marked as used.
59
- */
60
- get usedCount() {
61
- return this.used.length;
62
- }
63
- /**
64
- * Return next free entry or `null` if no entries are free within the table.
65
- */
66
- getNextFree() {
67
- return this.free[0] || null;
68
- }
69
- /**
70
- * Returns index of element in table.
71
- *
72
- * @param entry Entry to resolve index for.
73
- */
74
- indexOf(entry) {
75
- return this.entries.findIndex(e => e.serialize().equals(entry.serialize())) || null;
76
- }
77
- /**
78
- * Export the table in target platform format.
79
- *
80
- * @param alignment Memory alignment to use for export.
81
- */
82
- serialize(alignment = "unaligned") {
83
- const entryLength = this.emptyEntry.getLength(alignment);
84
- const output = Buffer.alloc((this.hasInlineLengthHeader ? 2 : 0) + (this.capacity * entryLength), 0x00);
85
- let offset = 0;
86
- if (this.hasInlineLengthHeader) {
87
- output.writeUInt16LE(this.usedCount);
88
- offset += 2;
89
- }
90
- this.data.forEach(e => {
91
- output.set(e.serialize(alignment), offset);
92
- offset += e.getLength(alignment);
93
- });
94
- return output;
95
- }
96
- /**
97
- * Applies function to determine table entry occupancy. This function is invoked with an entry instance
98
- * and returns `boolean` indicating if the entry is occupied or not.
99
- *
100
- * @param fn Function to determine entry occupancy.
101
- */
102
- occupancy(fn) {
103
- this.entryOccupancyFunction = fn;
104
- return this;
105
- }
106
- /**
107
- * Defines a struct factory for entries contained within table.
108
- *
109
- * @param entryStructFactory Struct factory.
110
- */
111
- struct(entryStructFactory) {
112
- this.entryStructFactory = entryStructFactory;
113
- this.emptyEntry = this.entryStructFactory();
114
- return this;
115
- }
116
- /**
117
- * Sets whether the table has a table header containing a 16-bit unsigned used table length.
118
- *
119
- * @param hasInlineHeader Sets whether table has record count header.
120
- */
121
- inlineHeader(hasInlineHeader = true) {
122
- this.hasInlineLengthHeader = hasInlineHeader;
123
- return this;
124
- }
125
- build(dataOrCapacity, alignment = "unaligned") {
126
- /* istanbul ignore next */
127
- if (!this.entryStructFactory) {
128
- throw new Error("Table requires an entry struct factory.");
129
- }
130
- if (Array.isArray(dataOrCapacity) && dataOrCapacity.every(e => Buffer.isBuffer(e))) {
131
- /* create table from given entries */
132
- const data = dataOrCapacity;
133
- if (!data.every(e => e.length === data[0].length)) {
134
- throw new Error("All table entries need to be the same length");
135
- }
136
- this.data = data.map(buffer => this.entryStructFactory(buffer));
137
- }
138
- else if (Buffer.isBuffer(dataOrCapacity)) {
139
- /* create table from inline structure */
140
- const data = dataOrCapacity;
141
- const entryLength = this.emptyEntry.getLength(alignment);
142
- const dataLength = this.hasInlineLengthHeader ? data.length - 2 : data.length;
143
- if (dataLength % entryLength !== 0) {
144
- throw new Error(`Table length not divisible by entry length (alignment=${alignment}, data_length=${data.length}, entry_length=${entryLength})`);
145
- }
146
- const capacity = dataLength / entryLength;
147
- const entriesStart = this.hasInlineLengthHeader ? data.slice(2, data.length) : data.slice();
148
- this.data = [...Array(capacity)].map((_, i) => this.entryStructFactory(entriesStart.slice(i * entryLength, i * entryLength + entryLength)));
149
- }
150
- else if (typeof dataOrCapacity === "number") {
151
- /* create empty table of given capacity */
152
- const capacity = dataOrCapacity;
153
- this.data = [...Array(capacity)].map(() => this.entryStructFactory());
154
- }
155
- else {
156
- throw new Error("Unsupported table data source");
157
- }
158
- return this;
159
- }
160
- }
161
- exports.Table = Table;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Table = void 0;
4
+ /**
5
+ * Table structure wraps `Struct`-based entries for tables present within ZNP NV memory.
6
+ */
7
+ class Table {
8
+ /**
9
+ * Create a new table builder.
10
+ */
11
+ static new() {
12
+ return new Table();
13
+ }
14
+ constructor() {
15
+ this.hasInlineLengthHeader = false;
16
+ this.entryOccupancyFunction = null;
17
+ }
18
+ /**
19
+ * Return total capacity of the table.
20
+ */
21
+ get capacity() {
22
+ return this.data.length;
23
+ }
24
+ /**
25
+ * Returns all entries within table.
26
+ */
27
+ get entries() {
28
+ return this.data;
29
+ }
30
+ /**
31
+ * Returns all used entries.
32
+ */
33
+ get used() {
34
+ /* istanbul ignore next */
35
+ if (!this.entryOccupancyFunction) {
36
+ throw new Error("Table usage cannot be determined without occupancy function when header is not present.");
37
+ }
38
+ return this.entries.filter(e => this.entryOccupancyFunction(e));
39
+ }
40
+ /**
41
+ * Returns all unused entries.
42
+ */
43
+ get free() {
44
+ /* istanbul ignore next */
45
+ if (!this.entryOccupancyFunction) {
46
+ throw new Error("Table usage cannot be determined without occupancy function when header is not present.");
47
+ }
48
+ return this.entries.filter(e => !this.entryOccupancyFunction(e));
49
+ }
50
+ /**
51
+ * Return number of records marked as free.
52
+ */
53
+ get freeCount() {
54
+ /* istanbul ignore next */
55
+ return this.free.length;
56
+ }
57
+ /**
58
+ * Return number of records marked as used.
59
+ */
60
+ get usedCount() {
61
+ return this.used.length;
62
+ }
63
+ /**
64
+ * Return next free entry or `null` if no entries are free within the table.
65
+ */
66
+ getNextFree() {
67
+ return this.free[0] || null;
68
+ }
69
+ /**
70
+ * Returns index of element in table.
71
+ *
72
+ * @param entry Entry to resolve index for.
73
+ */
74
+ indexOf(entry) {
75
+ return this.entries.findIndex(e => e.serialize().equals(entry.serialize())) || null;
76
+ }
77
+ /**
78
+ * Export the table in target platform format.
79
+ *
80
+ * @param alignment Memory alignment to use for export.
81
+ */
82
+ serialize(alignment = "unaligned") {
83
+ const entryLength = this.emptyEntry.getLength(alignment);
84
+ const output = Buffer.alloc((this.hasInlineLengthHeader ? 2 : 0) + (this.capacity * entryLength), 0x00);
85
+ let offset = 0;
86
+ if (this.hasInlineLengthHeader) {
87
+ output.writeUInt16LE(this.usedCount);
88
+ offset += 2;
89
+ }
90
+ this.data.forEach(e => {
91
+ output.set(e.serialize(alignment), offset);
92
+ offset += e.getLength(alignment);
93
+ });
94
+ return output;
95
+ }
96
+ /**
97
+ * Applies function to determine table entry occupancy. This function is invoked with an entry instance
98
+ * and returns `boolean` indicating if the entry is occupied or not.
99
+ *
100
+ * @param fn Function to determine entry occupancy.
101
+ */
102
+ occupancy(fn) {
103
+ this.entryOccupancyFunction = fn;
104
+ return this;
105
+ }
106
+ /**
107
+ * Defines a struct factory for entries contained within table.
108
+ *
109
+ * @param entryStructFactory Struct factory.
110
+ */
111
+ struct(entryStructFactory) {
112
+ this.entryStructFactory = entryStructFactory;
113
+ this.emptyEntry = this.entryStructFactory();
114
+ return this;
115
+ }
116
+ /**
117
+ * Sets whether the table has a table header containing a 16-bit unsigned used table length.
118
+ *
119
+ * @param hasInlineHeader Sets whether table has record count header.
120
+ */
121
+ inlineHeader(hasInlineHeader = true) {
122
+ this.hasInlineLengthHeader = hasInlineHeader;
123
+ return this;
124
+ }
125
+ build(dataOrCapacity, alignment = "unaligned") {
126
+ /* istanbul ignore next */
127
+ if (!this.entryStructFactory) {
128
+ throw new Error("Table requires an entry struct factory.");
129
+ }
130
+ if (Array.isArray(dataOrCapacity) && dataOrCapacity.every(e => Buffer.isBuffer(e))) {
131
+ /* create table from given entries */
132
+ const data = dataOrCapacity;
133
+ if (!data.every(e => e.length === data[0].length)) {
134
+ throw new Error("All table entries need to be the same length");
135
+ }
136
+ this.data = data.map(buffer => this.entryStructFactory(buffer));
137
+ }
138
+ else if (Buffer.isBuffer(dataOrCapacity)) {
139
+ /* create table from inline structure */
140
+ const data = dataOrCapacity;
141
+ const entryLength = this.emptyEntry.getLength(alignment);
142
+ const dataLength = this.hasInlineLengthHeader ? data.length - 2 : data.length;
143
+ if (dataLength % entryLength !== 0) {
144
+ throw new Error(`Table length not divisible by entry length (alignment=${alignment}, data_length=${data.length}, entry_length=${entryLength})`);
145
+ }
146
+ const capacity = dataLength / entryLength;
147
+ const entriesStart = this.hasInlineLengthHeader ? data.slice(2, data.length) : data.slice();
148
+ this.data = [...Array(capacity)].map((_, i) => this.entryStructFactory(entriesStart.slice(i * entryLength, i * entryLength + entryLength)));
149
+ }
150
+ else if (typeof dataOrCapacity === "number") {
151
+ /* create empty table of given capacity */
152
+ const capacity = dataOrCapacity;
153
+ this.data = [...Array(capacity)].map(() => this.entryStructFactory());
154
+ }
155
+ else {
156
+ throw new Error("Unsupported table data source");
157
+ }
158
+ return this;
159
+ }
160
+ }
161
+ exports.Table = Table;
162
162
  //# sourceMappingURL=table.js.map
@@ -1,29 +1,29 @@
1
- declare enum Type {
2
- POLL = 0,
3
- SREQ = 1,
4
- AREQ = 2,
5
- SRSP = 3
6
- }
7
- declare enum Subsystem {
8
- RESERVED = 0,
9
- SYS = 1,
10
- MAC = 2,
11
- NWK = 3,
12
- AF = 4,
13
- ZDO = 5,
14
- SAPI = 6,
15
- UTIL = 7,
16
- DEBUG = 8,
17
- APP = 9,
18
- APP_CNF = 15,
19
- GREENPOWER = 21
20
- }
21
- declare const DataStart = 4;
22
- declare const SOF = 254;
23
- declare const PositionDataLength = 1;
24
- declare const PositionCmd0 = 2;
25
- declare const PositionCmd1 = 3;
26
- declare const MinMessageLength = 5;
27
- declare const MaxDataSize = 250;
28
- export { Type, Subsystem, DataStart, SOF, PositionDataLength, MinMessageLength, PositionCmd0, PositionCmd1, MaxDataSize, };
1
+ declare enum Type {
2
+ POLL = 0,
3
+ SREQ = 1,
4
+ AREQ = 2,
5
+ SRSP = 3
6
+ }
7
+ declare enum Subsystem {
8
+ RESERVED = 0,
9
+ SYS = 1,
10
+ MAC = 2,
11
+ NWK = 3,
12
+ AF = 4,
13
+ ZDO = 5,
14
+ SAPI = 6,
15
+ UTIL = 7,
16
+ DEBUG = 8,
17
+ APP = 9,
18
+ APP_CNF = 15,
19
+ GREENPOWER = 21
20
+ }
21
+ declare const DataStart = 4;
22
+ declare const SOF = 254;
23
+ declare const PositionDataLength = 1;
24
+ declare const PositionCmd0 = 2;
25
+ declare const PositionCmd1 = 3;
26
+ declare const MinMessageLength = 5;
27
+ declare const MaxDataSize = 250;
28
+ export { Type, Subsystem, DataStart, SOF, PositionDataLength, MinMessageLength, PositionCmd0, PositionCmd1, MaxDataSize, };
29
29
  //# sourceMappingURL=constants.d.ts.map
@@ -1,42 +1,42 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MaxDataSize = exports.PositionCmd1 = exports.PositionCmd0 = exports.MinMessageLength = exports.PositionDataLength = exports.SOF = exports.DataStart = exports.Subsystem = exports.Type = void 0;
4
- var Type;
5
- (function (Type) {
6
- Type[Type["POLL"] = 0] = "POLL";
7
- Type[Type["SREQ"] = 1] = "SREQ";
8
- Type[Type["AREQ"] = 2] = "AREQ";
9
- Type[Type["SRSP"] = 3] = "SRSP";
10
- })(Type || (Type = {}));
11
- exports.Type = Type;
12
- var Subsystem;
13
- (function (Subsystem) {
14
- Subsystem[Subsystem["RESERVED"] = 0] = "RESERVED";
15
- Subsystem[Subsystem["SYS"] = 1] = "SYS";
16
- Subsystem[Subsystem["MAC"] = 2] = "MAC";
17
- Subsystem[Subsystem["NWK"] = 3] = "NWK";
18
- Subsystem[Subsystem["AF"] = 4] = "AF";
19
- Subsystem[Subsystem["ZDO"] = 5] = "ZDO";
20
- Subsystem[Subsystem["SAPI"] = 6] = "SAPI";
21
- Subsystem[Subsystem["UTIL"] = 7] = "UTIL";
22
- Subsystem[Subsystem["DEBUG"] = 8] = "DEBUG";
23
- Subsystem[Subsystem["APP"] = 9] = "APP";
24
- Subsystem[Subsystem["APP_CNF"] = 15] = "APP_CNF";
25
- Subsystem[Subsystem["GREENPOWER"] = 21] = "GREENPOWER";
26
- })(Subsystem || (Subsystem = {}));
27
- exports.Subsystem = Subsystem;
28
- const DataStart = 4;
29
- exports.DataStart = DataStart;
30
- const SOF = 0xFE;
31
- exports.SOF = SOF;
32
- const PositionDataLength = 1;
33
- exports.PositionDataLength = PositionDataLength;
34
- const PositionCmd0 = 2;
35
- exports.PositionCmd0 = PositionCmd0;
36
- const PositionCmd1 = 3;
37
- exports.PositionCmd1 = PositionCmd1;
38
- const MinMessageLength = 5;
39
- exports.MinMessageLength = MinMessageLength;
40
- const MaxDataSize = 250;
41
- exports.MaxDataSize = MaxDataSize;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaxDataSize = exports.PositionCmd1 = exports.PositionCmd0 = exports.MinMessageLength = exports.PositionDataLength = exports.SOF = exports.DataStart = exports.Subsystem = exports.Type = void 0;
4
+ var Type;
5
+ (function (Type) {
6
+ Type[Type["POLL"] = 0] = "POLL";
7
+ Type[Type["SREQ"] = 1] = "SREQ";
8
+ Type[Type["AREQ"] = 2] = "AREQ";
9
+ Type[Type["SRSP"] = 3] = "SRSP";
10
+ })(Type || (Type = {}));
11
+ exports.Type = Type;
12
+ var Subsystem;
13
+ (function (Subsystem) {
14
+ Subsystem[Subsystem["RESERVED"] = 0] = "RESERVED";
15
+ Subsystem[Subsystem["SYS"] = 1] = "SYS";
16
+ Subsystem[Subsystem["MAC"] = 2] = "MAC";
17
+ Subsystem[Subsystem["NWK"] = 3] = "NWK";
18
+ Subsystem[Subsystem["AF"] = 4] = "AF";
19
+ Subsystem[Subsystem["ZDO"] = 5] = "ZDO";
20
+ Subsystem[Subsystem["SAPI"] = 6] = "SAPI";
21
+ Subsystem[Subsystem["UTIL"] = 7] = "UTIL";
22
+ Subsystem[Subsystem["DEBUG"] = 8] = "DEBUG";
23
+ Subsystem[Subsystem["APP"] = 9] = "APP";
24
+ Subsystem[Subsystem["APP_CNF"] = 15] = "APP_CNF";
25
+ Subsystem[Subsystem["GREENPOWER"] = 21] = "GREENPOWER";
26
+ })(Subsystem || (Subsystem = {}));
27
+ exports.Subsystem = Subsystem;
28
+ const DataStart = 4;
29
+ exports.DataStart = DataStart;
30
+ const SOF = 0xFE;
31
+ exports.SOF = SOF;
32
+ const PositionDataLength = 1;
33
+ exports.PositionDataLength = PositionDataLength;
34
+ const PositionCmd0 = 2;
35
+ exports.PositionCmd0 = PositionCmd0;
36
+ const PositionCmd1 = 3;
37
+ exports.PositionCmd1 = PositionCmd1;
38
+ const MinMessageLength = 5;
39
+ exports.MinMessageLength = MinMessageLength;
40
+ const MaxDataSize = 250;
41
+ exports.MaxDataSize = MaxDataSize;
42
42
  //# sourceMappingURL=constants.js.map