@zaber/motion 9.1.0 → 9.2.0

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 (112) hide show
  1. package/LICENSE +87 -8
  2. package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
  3. package/dist/lib/ascii/axis_settings.d.ts +22 -1
  4. package/dist/lib/ascii/axis_settings.d.ts.map +1 -1
  5. package/dist/lib/ascii/axis_settings.js +48 -1
  6. package/dist/lib/ascii/axis_settings.js.map +1 -1
  7. package/dist/lib/ascii/device_settings.d.ts +55 -1
  8. package/dist/lib/ascii/device_settings.d.ts.map +1 -1
  9. package/dist/lib/ascii/device_settings.js +74 -1
  10. package/dist/lib/ascii/device_settings.js.map +1 -1
  11. package/dist/lib/ascii/get_axis_setting_typed_result.d.ts +29 -0
  12. package/dist/lib/ascii/get_axis_setting_typed_result.d.ts.map +1 -0
  13. package/dist/lib/ascii/get_axis_setting_typed_result.js +52 -0
  14. package/dist/lib/ascii/get_axis_setting_typed_result.js.map +1 -0
  15. package/dist/lib/ascii/get_setting_bool_result.d.ts +23 -0
  16. package/dist/lib/ascii/get_setting_bool_result.d.ts.map +1 -0
  17. package/dist/lib/ascii/get_setting_bool_result.js +39 -0
  18. package/dist/lib/ascii/get_setting_bool_result.js.map +1 -0
  19. package/dist/lib/ascii/get_setting_int_result.d.ts +23 -0
  20. package/dist/lib/ascii/get_setting_int_result.d.ts.map +1 -0
  21. package/dist/lib/ascii/get_setting_int_result.js +39 -0
  22. package/dist/lib/ascii/get_setting_int_result.js.map +1 -0
  23. package/dist/lib/ascii/get_setting_string_result.d.ts +23 -0
  24. package/dist/lib/ascii/get_setting_string_result.d.ts.map +1 -0
  25. package/dist/lib/ascii/get_setting_string_result.js +39 -0
  26. package/dist/lib/ascii/get_setting_string_result.js.map +1 -0
  27. package/dist/lib/ascii/get_setting_typed_result.d.ts +29 -0
  28. package/dist/lib/ascii/get_setting_typed_result.d.ts.map +1 -0
  29. package/dist/lib/ascii/get_setting_typed_result.js +52 -0
  30. package/dist/lib/ascii/get_setting_typed_result.js.map +1 -0
  31. package/dist/lib/ascii/get_settings_by_type_result.d.ts +35 -0
  32. package/dist/lib/ascii/get_settings_by_type_result.d.ts.map +1 -0
  33. package/dist/lib/ascii/get_settings_by_type_result.js +50 -0
  34. package/dist/lib/ascii/get_settings_by_type_result.js.map +1 -0
  35. package/dist/lib/ascii/index.d.ts +8 -0
  36. package/dist/lib/ascii/index.d.ts.map +1 -1
  37. package/dist/lib/ascii/index.js +8 -0
  38. package/dist/lib/ascii/index.js.map +1 -1
  39. package/dist/lib/ascii/pvt_buffer.d.ts +22 -1
  40. package/dist/lib/ascii/pvt_buffer.d.ts.map +1 -1
  41. package/dist/lib/ascii/pvt_buffer.js +9 -1
  42. package/dist/lib/ascii/pvt_buffer.js.map +1 -1
  43. package/dist/lib/ascii/pvt_buffer_axis_units.d.ts +29 -0
  44. package/dist/lib/ascii/pvt_buffer_axis_units.d.ts.map +1 -0
  45. package/dist/lib/ascii/pvt_buffer_axis_units.js +44 -0
  46. package/dist/lib/ascii/pvt_buffer_axis_units.js.map +1 -0
  47. package/dist/lib/ascii/pvt_csv_data.js.map +1 -1
  48. package/dist/lib/ascii/pvt_partial_csv_data.js.map +1 -1
  49. package/dist/lib/ascii/typed_setting.d.ts +20 -0
  50. package/dist/lib/ascii/typed_setting.d.ts.map +1 -0
  51. package/dist/lib/ascii/typed_setting.js +84 -0
  52. package/dist/lib/ascii/typed_setting.js.map +1 -0
  53. package/dist/lib/gateway/constants.js +1 -1
  54. package/dist/lib/gateway/constants.js.map +1 -1
  55. package/dist/lib/product/ge_1_x_gripper.d.ts +3 -1
  56. package/dist/lib/product/ge_1_x_gripper.d.ts.map +1 -1
  57. package/dist/lib/product/ge_1_x_gripper.js +3 -1
  58. package/dist/lib/product/ge_1_x_gripper.js.map +1 -1
  59. package/dist/lib/requests/device_convert_setting_request.d.ts +1 -0
  60. package/dist/lib/requests/device_convert_setting_request.d.ts.map +1 -1
  61. package/dist/lib/requests/device_convert_setting_request.js +5 -1
  62. package/dist/lib/requests/device_convert_setting_request.js.map +1 -1
  63. package/dist/lib/requests/device_get_many_by_type_request.d.ts +19 -0
  64. package/dist/lib/requests/device_get_many_by_type_request.d.ts.map +1 -0
  65. package/dist/lib/requests/device_get_many_by_type_request.js +56 -0
  66. package/dist/lib/requests/device_get_many_by_type_request.js.map +1 -0
  67. package/dist/lib/requests/get_axis_settings_typed_response.d.ts +14 -0
  68. package/dist/lib/requests/get_axis_settings_typed_response.d.ts.map +1 -0
  69. package/dist/lib/requests/get_axis_settings_typed_response.js +35 -0
  70. package/dist/lib/requests/get_axis_settings_typed_response.js.map +1 -0
  71. package/dist/lib/requests/get_settings_typed_response.d.ts +14 -0
  72. package/dist/lib/requests/get_settings_typed_response.d.ts.map +1 -0
  73. package/dist/lib/requests/get_settings_typed_response.js +35 -0
  74. package/dist/lib/requests/get_settings_typed_response.js.map +1 -0
  75. package/dist/lib/requests/index.d.ts +4 -0
  76. package/dist/lib/requests/index.d.ts.map +1 -1
  77. package/dist/lib/requests/index.js +4 -0
  78. package/dist/lib/requests/index.js.map +1 -1
  79. package/dist/lib/requests/pvt_buffer_get_sequence_data_request.d.ts +4 -0
  80. package/dist/lib/requests/pvt_buffer_get_sequence_data_request.d.ts.map +1 -1
  81. package/dist/lib/requests/pvt_buffer_get_sequence_data_request.js +11 -1
  82. package/dist/lib/requests/pvt_buffer_get_sequence_data_request.js.map +1 -1
  83. package/dist/lib/requests/pvt_buffer_get_sequence_data_response.js.map +1 -1
  84. package/dist/lib/requests/pvt_convert_time_request.js.map +1 -1
  85. package/dist/lib/requests/pvt_convert_time_response.js.map +1 -1
  86. package/dist/lib/requests/pvt_generate_positions_request.js.map +1 -1
  87. package/dist/lib/requests/pvt_generate_sequence_response.js.map +1 -1
  88. package/dist/lib/requests/pvt_generate_velocities_and_times_request.js.map +1 -1
  89. package/dist/lib/requests/pvt_generate_velocities_request.js.map +1 -1
  90. package/dist/lib/requests/pvt_items_request.js.map +1 -1
  91. package/dist/lib/requests/pvt_partial_convert_time_request.js.map +1 -1
  92. package/dist/lib/requests/pvt_partial_convert_time_response.js.map +1 -1
  93. package/dist/lib/requests/pvt_save_csv_request.js.map +1 -1
  94. package/dist/lib/requests/pvt_submit_sequence_data_request.js.map +1 -1
  95. package/dist/lib/requests/test_dto_with_variants.js.map +1 -1
  96. package/dist/lib/requests/typed_setting_response.d.ts +14 -0
  97. package/dist/lib/requests/typed_setting_response.d.ts.map +1 -0
  98. package/dist/lib/requests/typed_setting_response.js +40 -0
  99. package/dist/lib/requests/typed_setting_response.js.map +1 -0
  100. package/dist/lib/requests/unit_convert_native_request.d.ts +1 -0
  101. package/dist/lib/requests/unit_convert_native_request.d.ts.map +1 -1
  102. package/dist/lib/requests/unit_convert_native_request.js +5 -1
  103. package/dist/lib/requests/unit_convert_native_request.js.map +1 -1
  104. package/dist/lib/unit_conversion_descriptor.d.ts +4 -0
  105. package/dist/lib/unit_conversion_descriptor.d.ts.map +1 -1
  106. package/dist/lib/unit_conversion_descriptor.js +5 -1
  107. package/dist/lib/unit_conversion_descriptor.js.map +1 -1
  108. package/dist/lib/unit_table.d.ts +4 -2
  109. package/dist/lib/unit_table.d.ts.map +1 -1
  110. package/dist/lib/unit_table.js +6 -2
  111. package/dist/lib/unit_table.js.map +1 -1
  112. package/package.json +1 -1
package/LICENSE CHANGED
@@ -1158,6 +1158,31 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1158
1158
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1159
1159
  SOFTWARE.
1160
1160
 
1161
+ ------------------
1162
+ github.com/stretchr/testify v1.7.1
1163
+ ------------------
1164
+ MIT License
1165
+
1166
+ Copyright (c) 2012-2020 Mat Ryer, Tyler Bunnell and contributors.
1167
+
1168
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1169
+ of this software and associated documentation files (the "Software"), to deal
1170
+ in the Software without restriction, including without limitation the rights
1171
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1172
+ copies of the Software, and to permit persons to whom the Software is
1173
+ furnished to do so, subject to the following conditions:
1174
+
1175
+ The above copyright notice and this permission notice shall be included in all
1176
+ copies or substantial portions of the Software.
1177
+
1178
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1179
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1180
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1181
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1182
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1183
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1184
+ SOFTWARE.
1185
+
1161
1186
  ------------------
1162
1187
  github.com/zabertech/go-ethereum v1.10.4-rpc-2 (fork github.com/ethereum/go-ethereum)
1163
1188
  ------------------
@@ -2163,9 +2188,9 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2163
2188
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2164
2189
 
2165
2190
  ------------------
2166
- golang.org/x/mod v0.34.0
2191
+ golang.org/x/mod v0.12.0
2167
2192
  ------------------
2168
- Copyright 2009 The Go Authors.
2193
+ Copyright (c) 2009 The Go Authors. All rights reserved.
2169
2194
 
2170
2195
  Redistribution and use in source and binary forms, with or without
2171
2196
  modification, are permitted provided that the following conditions are
@@ -2177,7 +2202,7 @@ notice, this list of conditions and the following disclaimer.
2177
2202
  copyright notice, this list of conditions and the following disclaimer
2178
2203
  in the documentation and/or other materials provided with the
2179
2204
  distribution.
2180
- * Neither the name of Google LLC nor the names of its
2205
+ * Neither the name of Google Inc. nor the names of its
2181
2206
  contributors may be used to endorse or promote products derived from
2182
2207
  this software without specific prior written permission.
2183
2208
 
@@ -2194,7 +2219,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2194
2219
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2195
2220
 
2196
2221
  ------------------
2197
- golang.org/x/net v0.0.0-20220722155237-a158d28d115b
2222
+ golang.org/x/net v0.0.0-20190620200207-3b0461eec859
2198
2223
  ------------------
2199
2224
  Copyright (c) 2009 The Go Authors. All rights reserved.
2200
2225
 
@@ -2225,9 +2250,9 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2225
2250
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2226
2251
 
2227
2252
  ------------------
2228
- golang.org/x/sync v0.10.0
2253
+ golang.org/x/sync v0.3.0
2229
2254
  ------------------
2230
- Copyright 2009 The Go Authors.
2255
+ Copyright (c) 2009 The Go Authors. All rights reserved.
2231
2256
 
2232
2257
  Redistribution and use in source and binary forms, with or without
2233
2258
  modification, are permitted provided that the following conditions are
@@ -2239,7 +2264,7 @@ notice, this list of conditions and the following disclaimer.
2239
2264
  copyright notice, this list of conditions and the following disclaimer
2240
2265
  in the documentation and/or other materials provided with the
2241
2266
  distribution.
2242
- * Neither the name of Google LLC nor the names of its
2267
+ * Neither the name of Google Inc. nor the names of its
2243
2268
  contributors may be used to endorse or promote products derived from
2244
2269
  this software without specific prior written permission.
2245
2270
 
@@ -2287,7 +2312,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2287
2312
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2288
2313
 
2289
2314
  ------------------
2290
- golang.org/x/text v0.3.7
2315
+ golang.org/x/text v0.3.0
2291
2316
  ------------------
2292
2317
  Copyright (c) 2009 The Go Authors. All rights reserved.
2293
2318
 
@@ -2374,6 +2399,60 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
2374
2399
  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2375
2400
  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2376
2401
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2402
+ ------------------
2403
+ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
2404
+ ------------------
2405
+
2406
+ This project is covered by two different licenses: MIT and Apache.
2407
+
2408
+ #### MIT License ####
2409
+
2410
+ The following files were ported to Go from C files of libyaml, and thus
2411
+ are still covered by their original MIT license, with the additional
2412
+ copyright staring in 2011 when the project was ported over:
2413
+
2414
+ apic.go emitterc.go parserc.go readerc.go scannerc.go
2415
+ writerc.go yamlh.go yamlprivateh.go
2416
+
2417
+ Copyright (c) 2006-2010 Kirill Simonov
2418
+ Copyright (c) 2006-2011 Kirill Simonov
2419
+
2420
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
2421
+ this software and associated documentation files (the "Software"), to deal in
2422
+ the Software without restriction, including without limitation the rights to
2423
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
2424
+ of the Software, and to permit persons to whom the Software is furnished to do
2425
+ so, subject to the following conditions:
2426
+
2427
+ The above copyright notice and this permission notice shall be included in all
2428
+ copies or substantial portions of the Software.
2429
+
2430
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2431
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2432
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2433
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2434
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2435
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2436
+ SOFTWARE.
2437
+
2438
+ ### Apache License ###
2439
+
2440
+ All the remaining project files are covered by the Apache license:
2441
+
2442
+ Copyright (c) 2011-2019 Canonical Ltd
2443
+
2444
+ Licensed under the Apache License, Version 2.0 (the "License");
2445
+ you may not use this file except in compliance with the License.
2446
+ You may obtain a copy of the License at
2447
+
2448
+ http://www.apache.org/licenses/LICENSE-2.0
2449
+
2450
+ Unless required by applicable law or agreed to in writing, software
2451
+ distributed under the License is distributed on an "AS IS" BASIS,
2452
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2453
+ See the License for the specific language governing permissions and
2454
+ limitations under the License.
2455
+
2377
2456
  ------------------
2378
2457
  gotest.tools v2.2.0+incompatible
2379
2458
  ------------------
@@ -4,6 +4,8 @@ import { Axis } from './axis';
4
4
  import { ConversionFactor } from './conversion_factor';
5
5
  import { GetAxisSetting } from './get_axis_setting';
6
6
  import { GetAxisSettingResult } from './get_axis_setting_result';
7
+ import { GetAxisSettingTypedResult } from './get_axis_setting_typed_result';
8
+ import { TypedSetting } from './typed_setting';
7
9
  /**
8
10
  * Class providing access to various axis settings and properties.
9
11
  */
@@ -18,6 +20,15 @@ export declare class AxisSettings {
18
20
  * @returns Setting value.
19
21
  */
20
22
  get(setting: string, unit?: Units): Promise<number>;
23
+ /**
24
+ * Returns any axis setting or property in its native type.
25
+ * Note that specifying units will cause settings that are otherwise integers to be returned as floats.
26
+ * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).
27
+ * @param setting Name of the setting.
28
+ * @param [unit=Units.NATIVE] Units of setting to convert result to.
29
+ * @returns Setting value.
30
+ */
31
+ getTyped(setting: string, unit?: Units): Promise<TypedSetting>;
21
32
  /**
22
33
  * Sets any axis setting.
23
34
  * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).
@@ -73,9 +84,10 @@ export declare class AxisSettings {
73
84
  * @param setting Name of the setting.
74
85
  * @param value Value of the setting in units specified by following argument.
75
86
  * @param unit Units of the value.
87
+ * @param [round=false] If true, round the result to the device's native decimal places.
76
88
  * @returns Setting value.
77
89
  */
78
- convertToNativeUnits(setting: string, value: number, unit: Units): number;
90
+ convertToNativeUnits(setting: string, value: number, unit: Units, round?: boolean): number;
79
91
  /**
80
92
  * Convert arbitrary setting value from Zaber native units.
81
93
  * @param setting Name of the setting.
@@ -135,6 +147,15 @@ export declare class AxisSettings {
135
147
  * @returns The setting values read.
136
148
  */
137
149
  getMany(...axisSettings: GetAxisSetting[]): Promise<GetAxisSettingResult[]>;
150
+ /**
151
+ * Returns many axis settings or properties in their native types in as few requests as possible.
152
+ * Note that specifying units will always return floating point values,
153
+ * even for settings that are natively integers.
154
+ * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).
155
+ * @param axisSettings The settings to read.
156
+ * @returns The setting values read.
157
+ */
158
+ getManyTyped(...axisSettings: GetAxisSetting[]): Promise<GetAxisSettingTypedResult[]>;
138
159
  /**
139
160
  * Gets many setting values in the same tick, ensuring their values are synchronized.
140
161
  * Requires at least Firmware 7.35.
@@ -1 +1 @@
1
- {"version":3,"file":"axis_settings.d.ts","sourceRoot":"","sources":["../../../src/ascii/axis_settings.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE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AI,GAAE,KAAoB,GACzB,MAAM;IAoBT;;;;OAIG;IACI,gBAAgB,CACrB,OAAO,EAAE,MAAM,GACd,MAAM;IAmBT;;;;OAIG;IACI,aAAa,CAClB,OAAO,EAAE,MAAM,GACd,MAAM;IAmBT;;;;OAIG;IACI,cAAc,CACnB,OAAO,EAAE,MAAM,GACd,OAAO;IAmBV;;;;OAIG;IACI,qBAAqB,CAC1B,OAAO,EAAE,MAAM,GACd,OAAO;IAmBV;;;;;OAKG;IACI,2BAA2B,CAChC,OAAO,EAAE,MAAM,GACd,wBAAwB;IAmB3B;;;;;OAKG;IACU,wBAAwB,CACnC,WAAW,EAAE,gBAAgB,EAAE,GAC9B,OAAO,CAAC,IAAI,CAAC;IAehB;;;;OAIG;IACU,OAAO,CAClB,GAAG,YAAY,EAAE,cAAc,EAAE,GAChC,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAmBlC;;;;;;;OAOG;IACU,YAAY,CACvB,GAAG,YAAY,EAAE,cAAc,EAAE,GAChC,OAAO,CAAC,yBAAyB,EAAE,CAAC;IAmBvC;;;;;OAKG;IACU,eAAe,CAC1B,GAAG,YAAY,EAAE,cAAc,EAAE,GAChC,OAAO,CAAC,oBAAoB,EAAE,CAAC;CAkBnC"}
@@ -59,6 +59,29 @@ class AxisSettings {
59
59
  const response = await gateway.callAsync('device/get_setting', request, requests.DoubleResponse.fromBinary);
60
60
  return response.value;
61
61
  }
62
+ /**
63
+ * Returns any axis setting or property in its native type.
64
+ * Note that specifying units will cause settings that are otherwise integers to be returned as floats.
65
+ * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).
66
+ * @param setting Name of the setting.
67
+ * @param [unit=Units.NATIVE] Units of setting to convert result to.
68
+ * @returns Setting value.
69
+ */
70
+ async getTyped(setting, unit = units_1.Units.NATIVE) {
71
+ const request = {
72
+ ...requests.DeviceGetSettingRequest.DEFAULT,
73
+ interfaceId: this._axis.device.connection.interfaceId,
74
+ device: this._axis.device.deviceAddress,
75
+ axis: this._axis.axisNumber,
76
+ setting: setting,
77
+ unit: unit,
78
+ toBinary() {
79
+ return requests.DeviceGetSettingRequest.toBinary(this);
80
+ },
81
+ };
82
+ const response = await gateway.callAsync('device/get_setting_typed', request, requests.TypedSettingResponse.fromBinary);
83
+ return response.value;
84
+ }
62
85
  /**
63
86
  * Sets any axis setting.
64
87
  * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).
@@ -206,9 +229,10 @@ class AxisSettings {
206
229
  * @param setting Name of the setting.
207
230
  * @param value Value of the setting in units specified by following argument.
208
231
  * @param unit Units of the value.
232
+ * @param [round=false] If true, round the result to the device's native decimal places.
209
233
  * @returns Setting value.
210
234
  */
211
- convertToNativeUnits(setting, value, unit) {
235
+ convertToNativeUnits(setting, value, unit, round = false) {
212
236
  const request = {
213
237
  ...requests.DeviceConvertSettingRequest.DEFAULT,
214
238
  interfaceId: this._axis.device.connection.interfaceId,
@@ -217,6 +241,7 @@ class AxisSettings {
217
241
  setting: setting,
218
242
  value: value,
219
243
  unit: unit,
244
+ round: round,
220
245
  toBinary() {
221
246
  return requests.DeviceConvertSettingRequest.toBinary(this);
222
247
  },
@@ -403,6 +428,28 @@ class AxisSettings {
403
428
  const response = await gateway.callAsync('device/get_many_axis_settings', request, requests.GetAxisSettingResults.fromBinary);
404
429
  return response.results;
405
430
  }
431
+ /**
432
+ * Returns many axis settings or properties in their native types in as few requests as possible.
433
+ * Note that specifying units will always return floating point values,
434
+ * even for settings that are natively integers.
435
+ * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).
436
+ * @param axisSettings The settings to read.
437
+ * @returns The setting values read.
438
+ */
439
+ async getManyTyped(...axisSettings) {
440
+ const request = {
441
+ ...requests.DeviceMultiGetSettingRequest.DEFAULT,
442
+ interfaceId: this._axis.device.connection.interfaceId,
443
+ device: this._axis.device.deviceAddress,
444
+ axis: this._axis.axisNumber,
445
+ axisSettings: axisSettings,
446
+ toBinary() {
447
+ return requests.DeviceMultiGetSettingRequest.toBinary(this);
448
+ },
449
+ };
450
+ const response = await gateway.callAsync('device/get_many_axis_settings_typed', request, requests.GetAxisSettingsTypedResponse.fromBinary);
451
+ return response.values;
452
+ }
406
453
  /**
407
454
  * Gets many setting values in the same tick, ensuring their values are synchronized.
408
455
  * Requires at least Firmware 7.35.
@@ -1 +1 @@
1
- {"version":3,"file":"axis_settings.js","sourceRoot":"","sources":["../../../src/ascii/axis_settings.ts"],"names":[],"mappings":";AAAA,wDAAwD;AACxD,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,oDAAsC;AACtC,sDAAwC;AACxC,8EAAyE;AACzE,oCAAiC;AAMjC;;GAEG;AACH,MAAa,YAAY;IAGvB,YAAY,IAAU;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,GAAG,CACd,OAAe,EACf,OAAc,aAAK,CAAC,MAAM;QAE1B,MAAM,OAAO,GAAuD;YAClE,GAAG,QAAQ,CAAC,uBAAuB,CAAC,OAAO;YAC3C,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YACrD,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa;YACvC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU;YAC3B,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,IAAI;YACV,QAAQ;gBACN,OAAO,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACzD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,oBAAoB,EACpB,OAAO,EACP,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;QACtC,OAAO,QAAQ,CAAC,KAAK,CAAC;IACxB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAA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AAE,YAAY;YAC1B,QAAQ;gBACN,OAAO,QAAQ,CAAC,4BAA4B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,+BAA+B,EAC/B,OAAO,EACP,QAAQ,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QAC7C,OAAO,QAAQ,CAAC,OAAO,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,eAAe,CAC1B,GAAG,YAA8B;QAEjC,MAAM,OAAO,GAA4D;YACvE,GAAG,QAAQ,CAAC,4BAA4B,CAAC,OAAO;YAChD,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YACrD,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa;YACvC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU;YAC3B,YAAY,EAAE,YAAY;YAC1B,QAAQ;gBACN,OAAO,QAAQ,CAAC,4BAA4B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,+BAA+B,EAC/B,OAAO,EACP,QAAQ,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QAC7C,OAAO,QAAQ,CAAC,OAAO,CAAC;IAC1B,CAAC;CACF;AAzgBD,oCAygBC","sourcesContent":["// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //\n// ============== DO NOT EDIT DIRECTLY ============== //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { UnitConversionDescriptor } from '../unit_conversion_descriptor';\nimport { Units } from '../units';\nimport { Axis } from './axis';\nimport { ConversionFactor } from './conversion_factor';\nimport { GetAxisSetting } from './get_axis_setting';\nimport { GetAxisSettingResult } from './get_axis_setting_result';\n\n/**\n * Class providing access to various axis settings and properties.\n */\nexport class AxisSettings {\n private _axis: Axis;\n\n constructor(axis: Axis) {\n this._axis = axis;\n }\n\n /**\n * Returns any axis setting or property.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n * @returns Setting value.\n */\n public async get(\n setting: string,\n unit: Units = Units.NATIVE\n ): Promise<number> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/get_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n */\n public async set(\n setting: string,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request: requests.DeviceSetSettingRequest & gateway.Message = {\n ...requests.DeviceSetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceSetSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting', request);\n }\n\n /**\n * Returns any axis setting or property as a string.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getString(\n setting: string\n ): Promise<string> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StringResponse>(\n 'device/get_setting_str',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting as a string.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setString(\n setting: string,\n value: string\n ): Promise<void> {\n const request: requests.DeviceSetSettingStrRequest & gateway.Message = {\n ...requests.DeviceSetSettingStrRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingStrRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_str', request);\n }\n\n /**\n * Returns any axis setting or property as an integer.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getInt(\n setting: string\n ): Promise<bigint> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.Int64Response>(\n 'device/get_setting_int',\n request,\n requests.Int64Response.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting or property as an integer.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setInt(\n setting: string,\n value: bigint\n ): Promise<void> {\n const request: requests.DeviceSetSettingIntRequest & gateway.Message = {\n ...requests.DeviceSetSettingIntRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingIntRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_int', request);\n }\n\n /**\n * Returns any axis setting or property as a boolean.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getBool(\n setting: string\n ): Promise<boolean> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/get_setting_bool',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting as a boolean.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setBool(\n setting: string,\n value: boolean\n ): Promise<void> {\n const request: requests.DeviceSetSettingBoolRequest & gateway.Message = {\n ...requests.DeviceSetSettingBoolRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingBoolRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_bool', request);\n }\n\n /**\n * Convert arbitrary setting value to Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in units specified by following argument.\n * @param unit Units of the value.\n * @returns Setting value.\n */\n public convertToNativeUnits(\n setting: string,\n value: number,\n unit: Units\n ): number {\n const request: requests.DeviceConvertSettingRequest & gateway.Message = {\n ...requests.DeviceConvertSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceConvertSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/convert_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Convert arbitrary setting value from Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in Zaber native units.\n * @param unit Units to convert value to.\n * @returns Setting value.\n */\n public convertFromNativeUnits(\n setting: string,\n value: number,\n unit: Units\n ): number {\n const request: requests.DeviceConvertSettingRequest & gateway.Message = {\n ...requests.DeviceConvertSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n fromNative: true,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceConvertSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/convert_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting.\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n * @returns Default setting value.\n */\n public getDefault(\n setting: string,\n unit: Units = Units.NATIVE\n ): number {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/get_setting_default',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as a string.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultString(\n setting: string\n ): string {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/get_setting_default_str',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as an integer.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultInt(\n setting: string\n ): bigint {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.Int64Response>(\n 'device/get_setting_default_int',\n request,\n requests.Int64Response.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as a boolean.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultBool(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/get_setting_default_bool',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Indicates if given setting can be converted from and to native units.\n * @param setting Name of the setting.\n * @returns True if unit conversion can be performed.\n */\n public canConvertNativeUnits(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/can_convert_setting',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Retrieves unit conversion descriptor for a setting, allowing unit conversion without a device.\n * The descriptor can be used with the ConvertTo/FromNativeUnits methods of the UnitTable class.\n * @param setting Name of the setting.\n * @returns The unit conversion descriptor for the setting.\n */\n public getUnitConversionDescriptor(\n setting: string\n ): UnitConversionDescriptor {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<UnitConversionDescriptor>(\n 'device/get_setting_unit_conversion',\n request,\n UnitConversionDescriptor.fromBinary);\n return response;\n }\n\n /**\n * Overrides default unit conversions.\n * Conversion factors are specified by setting names representing underlying dimensions.\n * Requires at least Firmware 7.30.\n * @param conversions Factors of all conversions to override.\n */\n public async setCustomUnitConversions(\n conversions: ConversionFactor[]\n ): Promise<void> {\n const request: requests.DeviceSetUnitConversionsRequest & gateway.Message = {\n ...requests.DeviceSetUnitConversionsRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n conversions: conversions,\n toBinary() {\n return requests.DeviceSetUnitConversionsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_unit_conversions', request);\n }\n\n /**\n * Gets many setting values in as few requests as possible.\n * @param axisSettings The settings to read.\n * @returns The setting values read.\n */\n public async getMany(\n ...axisSettings: GetAxisSetting[]\n ): Promise<GetAxisSettingResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n axisSettings: axisSettings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetAxisSettingResults>(\n 'device/get_many_axis_settings',\n request,\n requests.GetAxisSettingResults.fromBinary);\n return response.results;\n }\n\n /**\n * Gets many setting values in the same tick, ensuring their values are synchronized.\n * Requires at least Firmware 7.35.\n * @param axisSettings The settings to read.\n * @returns The setting values read.\n */\n public async getSynchronized(\n ...axisSettings: GetAxisSetting[]\n ): Promise<GetAxisSettingResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n axisSettings: axisSettings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetAxisSettingResults>(\n 'device/get_sync_axis_settings',\n request,\n requests.GetAxisSettingResults.fromBinary);\n return response.results;\n }\n}\n"]}
1
+ {"version":3,"file":"axis_settings.js","sourceRoot":"","sources":["../../../src/ascii/axis_settings.ts"],"names":[],"mappings":";AAAA,wDAAwD;AACxD,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,oDAAsC;AACtC,sDAAwC;AACxC,8EAAyE;AACzE,oCAAiC;AAQjC;;GAEG;AACH,MAAa,YAAY;IAGvB,YAAY,IAAU;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,GAAG,CACd,OAAe,EACf,OAAc,aAAK,CAAC,MAAM;QAE1B,MAAM,OAAO,GAAuD;YAClE,GAAG,QAAQ,CAAC,uBAAuB,CAAC,O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,IAAI,CAAC,KAAK,CAAC,UAAU;YAC3B,YAAY,EAAE,YAAY;YAC1B,QAAQ;gBACN,OAAO,QAAQ,CAAC,4BAA4B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,+BAA+B,EAC/B,OAAO,EACP,QAAQ,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QAC7C,OAAO,QAAQ,CAAC,OAAO,CAAC;IAC1B,CAAC;CACF;AAxkBD,oCAwkBC","sourcesContent":["// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //\n// ============== DO NOT EDIT DIRECTLY ============== //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { UnitConversionDescriptor } from '../unit_conversion_descriptor';\nimport { Units } from '../units';\nimport { Axis } from './axis';\nimport { ConversionFactor } from './conversion_factor';\nimport { GetAxisSetting } from './get_axis_setting';\nimport { GetAxisSettingResult } from './get_axis_setting_result';\nimport { GetAxisSettingTypedResult } from './get_axis_setting_typed_result';\nimport { TypedSetting } from './typed_setting';\n\n/**\n * Class providing access to various axis settings and properties.\n */\nexport class AxisSettings {\n private _axis: Axis;\n\n constructor(axis: Axis) {\n this._axis = axis;\n }\n\n /**\n * Returns any axis setting or property.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n * @returns Setting value.\n */\n public async get(\n setting: string,\n unit: Units = Units.NATIVE\n ): Promise<number> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/get_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns any axis setting or property in its native type.\n * Note that specifying units will cause settings that are otherwise integers to be returned as floats.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting to convert result to.\n * @returns Setting value.\n */\n public async getTyped(\n setting: string,\n unit: Units = Units.NATIVE\n ): Promise<TypedSetting> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.TypedSettingResponse>(\n 'device/get_setting_typed',\n request,\n requests.TypedSettingResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n */\n public async set(\n setting: string,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request: requests.DeviceSetSettingRequest & gateway.Message = {\n ...requests.DeviceSetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceSetSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting', request);\n }\n\n /**\n * Returns any axis setting or property as a string.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getString(\n setting: string\n ): Promise<string> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StringResponse>(\n 'device/get_setting_str',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting as a string.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setString(\n setting: string,\n value: string\n ): Promise<void> {\n const request: requests.DeviceSetSettingStrRequest & gateway.Message = {\n ...requests.DeviceSetSettingStrRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingStrRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_str', request);\n }\n\n /**\n * Returns any axis setting or property as an integer.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getInt(\n setting: string\n ): Promise<bigint> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.Int64Response>(\n 'device/get_setting_int',\n request,\n requests.Int64Response.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting or property as an integer.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setInt(\n setting: string,\n value: bigint\n ): Promise<void> {\n const request: requests.DeviceSetSettingIntRequest & gateway.Message = {\n ...requests.DeviceSetSettingIntRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingIntRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_int', request);\n }\n\n /**\n * Returns any axis setting or property as a boolean.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getBool(\n setting: string\n ): Promise<boolean> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/get_setting_bool',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any axis setting as a boolean.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setBool(\n setting: string,\n value: boolean\n ): Promise<void> {\n const request: requests.DeviceSetSettingBoolRequest & gateway.Message = {\n ...requests.DeviceSetSettingBoolRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingBoolRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_bool', request);\n }\n\n /**\n * Convert arbitrary setting value to Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in units specified by following argument.\n * @param unit Units of the value.\n * @param [round=false] If true, round the result to the device's native decimal places.\n * @returns Setting value.\n */\n public convertToNativeUnits(\n setting: string,\n value: number,\n unit: Units,\n round: boolean = false\n ): number {\n const request: requests.DeviceConvertSettingRequest & gateway.Message = {\n ...requests.DeviceConvertSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n value: value,\n unit: unit,\n round: round,\n toBinary() {\n return requests.DeviceConvertSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/convert_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Convert arbitrary setting value from Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in Zaber native units.\n * @param unit Units to convert value to.\n * @returns Setting value.\n */\n public convertFromNativeUnits(\n setting: string,\n value: number,\n unit: Units\n ): number {\n const request: requests.DeviceConvertSettingRequest & gateway.Message = {\n ...requests.DeviceConvertSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n fromNative: true,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceConvertSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/convert_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting.\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n * @returns Default setting value.\n */\n public getDefault(\n setting: string,\n unit: Units = Units.NATIVE\n ): number {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/get_setting_default',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as a string.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultString(\n setting: string\n ): string {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/get_setting_default_str',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as an integer.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultInt(\n setting: string\n ): bigint {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.Int64Response>(\n 'device/get_setting_default_int',\n request,\n requests.Int64Response.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as a boolean.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultBool(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/get_setting_default_bool',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Indicates if given setting can be converted from and to native units.\n * @param setting Name of the setting.\n * @returns True if unit conversion can be performed.\n */\n public canConvertNativeUnits(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/can_convert_setting',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Retrieves unit conversion descriptor for a setting, allowing unit conversion without a device.\n * The descriptor can be used with the ConvertTo/FromNativeUnits methods of the UnitTable class.\n * @param setting Name of the setting.\n * @returns The unit conversion descriptor for the setting.\n */\n public getUnitConversionDescriptor(\n setting: string\n ): UnitConversionDescriptor {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<UnitConversionDescriptor>(\n 'device/get_setting_unit_conversion',\n request,\n UnitConversionDescriptor.fromBinary);\n return response;\n }\n\n /**\n * Overrides default unit conversions.\n * Conversion factors are specified by setting names representing underlying dimensions.\n * Requires at least Firmware 7.30.\n * @param conversions Factors of all conversions to override.\n */\n public async setCustomUnitConversions(\n conversions: ConversionFactor[]\n ): Promise<void> {\n const request: requests.DeviceSetUnitConversionsRequest & gateway.Message = {\n ...requests.DeviceSetUnitConversionsRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n conversions: conversions,\n toBinary() {\n return requests.DeviceSetUnitConversionsRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_unit_conversions', request);\n }\n\n /**\n * Gets many setting values in as few requests as possible.\n * @param axisSettings The settings to read.\n * @returns The setting values read.\n */\n public async getMany(\n ...axisSettings: GetAxisSetting[]\n ): Promise<GetAxisSettingResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n axisSettings: axisSettings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetAxisSettingResults>(\n 'device/get_many_axis_settings',\n request,\n requests.GetAxisSettingResults.fromBinary);\n return response.results;\n }\n\n /**\n * Returns many axis settings or properties in their native types in as few requests as possible.\n * Note that specifying units will always return floating point values,\n * even for settings that are natively integers.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param axisSettings The settings to read.\n * @returns The setting values read.\n */\n public async getManyTyped(\n ...axisSettings: GetAxisSetting[]\n ): Promise<GetAxisSettingTypedResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n axisSettings: axisSettings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetAxisSettingsTypedResponse>(\n 'device/get_many_axis_settings_typed',\n request,\n requests.GetAxisSettingsTypedResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Gets many setting values in the same tick, ensuring their values are synchronized.\n * Requires at least Firmware 7.35.\n * @param axisSettings The settings to read.\n * @returns The setting values read.\n */\n public async getSynchronized(\n ...axisSettings: GetAxisSetting[]\n ): Promise<GetAxisSettingResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._axis.device.connection.interfaceId,\n device: this._axis.device.deviceAddress,\n axis: this._axis.axisNumber,\n axisSettings: axisSettings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetAxisSettingResults>(\n 'device/get_sync_axis_settings',\n request,\n requests.GetAxisSettingResults.fromBinary);\n return response.results;\n }\n}\n"]}
@@ -2,7 +2,10 @@ import { UnitConversionDescriptor } from '../unit_conversion_descriptor';
2
2
  import { Units } from '../units';
3
3
  import { Device } from './device';
4
4
  import { GetSetting } from './get_setting';
5
+ import { GetSettingsByTypeResult } from './get_settings_by_type_result';
5
6
  import { GetSettingResult } from './get_setting_result';
7
+ import { GetSettingTypedResult } from './get_setting_typed_result';
8
+ import { TypedSetting } from './typed_setting';
6
9
  /**
7
10
  * Class providing access to various device settings and properties.
8
11
  */
@@ -17,6 +20,15 @@ export declare class DeviceSettings {
17
20
  * @returns Setting value.
18
21
  */
19
22
  get(setting: string, unit?: Units): Promise<number>;
23
+ /**
24
+ * Returns any device setting or property in its native type.
25
+ * Note that specifying units will cause settings that are otherwise integers to be returned as floats.
26
+ * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).
27
+ * @param setting Name of the setting.
28
+ * @param [unit=Units.NATIVE] Units of setting to convert result to.
29
+ * @returns Setting value.
30
+ */
31
+ getTyped(setting: string, unit?: Units): Promise<TypedSetting>;
20
32
  /**
21
33
  * Sets any device setting.
22
34
  * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).
@@ -72,9 +84,10 @@ export declare class DeviceSettings {
72
84
  * @param setting Name of the setting.
73
85
  * @param value Value of the setting in units specified by following argument.
74
86
  * @param unit Units of the value.
87
+ * @param [round=false] If true, round the result to the device's native decimal places.
75
88
  * @returns Setting value.
76
89
  */
77
- convertToNativeUnits(setting: string, value: number, unit: Units): number;
90
+ convertToNativeUnits(setting: string, value: number, unit: Units, round?: boolean): number;
78
91
  /**
79
92
  * Convert arbitrary setting value from Zaber native units.
80
93
  * @param setting Name of the setting.
@@ -134,6 +147,26 @@ export declare class DeviceSettings {
134
147
  * @returns The setting values read.
135
148
  */
136
149
  getMany(...settings: GetSetting[]): Promise<GetSettingResult[]>;
150
+ /**
151
+ * Returns many device settings or properties in their native types in as few requests as possible.
152
+ * Note that specifying units will always return floating point values,
153
+ * even for settings that are natively integers.
154
+ * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).
155
+ * @param settings The settings to read.
156
+ * @returns The setting values read.
157
+ */
158
+ getManyTyped(...settings: GetSetting[]): Promise<GetSettingTypedResult[]>;
159
+ /**
160
+ * Gets many settings in as few requests as possible, parsing each as the caller-specified type.
161
+ * Unlike GetManyTyped, the type is determined by the caller, not the device database.
162
+ * If a value cannot be parsed as the requested type, an error is thrown.
163
+ * @param [options.floatSettings=[]] Settings to read as float values. Supports unit conversion.
164
+ * @param [options.intSettings=[]] Settings to read as integer values. Unit conversion is not supported.
165
+ * @param [options.boolSettings=[]] Settings to read as boolean values.
166
+ * @param [options.stringSettings=[]] Settings to read as string values.
167
+ * @returns The setting values grouped by type.
168
+ */
169
+ getManyByType(options?: DeviceSettings.GetManyByTypeOptions): Promise<GetSettingsByTypeResult>;
137
170
  /**
138
171
  * Gets many setting values in the same tick, ensuring their values are synchronized.
139
172
  * Requires at least Firmware 7.35.
@@ -142,4 +175,25 @@ export declare class DeviceSettings {
142
175
  */
143
176
  getSynchronized(...settings: GetSetting[]): Promise<GetSettingResult[]>;
144
177
  }
178
+ declare namespace DeviceSettings {
179
+ interface GetManyByTypeOptions {
180
+ /**
181
+ * Settings to read as float values. Supports unit conversion.
182
+ */
183
+ floatSettings?: GetSetting[];
184
+ /**
185
+ * Settings to read as integer values. Unit conversion is not supported.
186
+ */
187
+ intSettings?: GetSetting[];
188
+ /**
189
+ * Settings to read as boolean values.
190
+ */
191
+ boolSettings?: GetSetting[];
192
+ /**
193
+ * Settings to read as string values.
194
+ */
195
+ stringSettings?: GetSetting[];
196
+ }
197
+ }
198
+ export {};
145
199
  //# sourceMappingURL=device_settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"device_settings.d.ts","sourceRoot":"","sources":["../../../src/ascii/device_settings.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;GAEG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,OAAO,CAAS;gBAEZ,MAAM,EAAE,MAAM;IAI1B;;;;;;OAMG;IACU,GAAG,CACd,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,KAAoB,GACzB,OAAO,CAAC,MAAM,CAAC;IAmBlB;;;;;;OAMG;IACU,GAAG,CACd,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,KAAoB,GACzB,OAAO,CAAC,IAAI,CAAC;IAgBhB;;;;;OAKG;IACU,SAAS,CACpB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC;IAkBlB;;;;;OAKG;IACU,SAAS,CACpB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC;IAehB;;;;;OAKG;IACU,MAAM,CACjB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC;IAkBlB;;;;;OAKG;IACU,MAAM,CACjB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC;IAehB;;;;;OAKG;IACU,OAAO,CAClB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC;IAkBnB;;;;;OAKG;IACU,OAAO,CAClB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,OAAO,GACb,OAAO,CAAC,IAAI,CAAC;IAehB;;;;;;OAMG;IACI,oBAAoB,CACzB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,KAAK,GACV,MAAM;IAoBT;;;;;;OAMG;IACI,sBAAsB,CAC3B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,KAAK,GACV,MAAM;IAqBT;;;;;OAKG;IACI,UAAU,CACf,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,KAAoB,GACzB,MAAM;IAmBT;;;;OAIG;IACI,gBAAgB,CACrB,OAAO,EAAE,MAAM,GACd,MAAM;IAkBT;;;;OAIG;IACI,aAAa,CAClB,OAAO,EAAE,MAAM,GACd,MAAM;IAkBT;;;;OAIG;IACI,cAAc,CACnB,OAAO,EAAE,MAAM,GACd,OAAO;IAkBV;;;;OAIG;IACI,qBAAqB,CAC1B,OAAO,EAAE,MAAM,GACd,OAAO;IAkBV;;;;;OAKG;IACI,2BAA2B,CAChC,OAAO,EAAE,MAAM,GACd,wBAAwB;IAkB3B;;;;;OAKG;IACU,cAAc,CACzB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,EAAE,CAAC;IAkBpB;;;;OAIG;IACU,OAAO,CAClB,GAAG,QAAQ,EAAE,UAAU,EAAE,GACxB,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAkB9B;;;;;OAKG;IACU,eAAe,CAC1B,GAAG,QAAQ,EAAE,UAAU,EAAE,GACxB,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAiB/B"}
1
+ {"version":3,"file":"device_settings.d.ts","sourceRoot":"","sources":["../../../src/ascii/device_settings.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;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