periph 1.5.3 → 1.6.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 (79) hide show
  1. package/README.md +18 -0
  2. package/examples/color/isl29125/complete.js +57 -0
  3. package/examples/color/isl29125/demo.js +77 -0
  4. package/examples/color/isl29125/minimal.js +23 -0
  5. package/examples/environmental/bme688/complete.js +48 -0
  6. package/examples/environmental/bme688/demo.js +47 -0
  7. package/examples/environmental/bme688/minimal.js +21 -0
  8. package/examples/gas/ccs811/complete.js +87 -0
  9. package/examples/gas/ccs811/demo.js +108 -0
  10. package/examples/gas/ccs811/minimal.js +20 -0
  11. package/examples/gas/rrh46410/complete.js +78 -0
  12. package/examples/gas/rrh46410/demo.js +86 -0
  13. package/examples/gas/rrh46410/minimal.js +21 -0
  14. package/examples/humidity/hts221/complete.js +83 -0
  15. package/examples/humidity/hts221/demo.js +94 -0
  16. package/examples/humidity/hts221/minimal.js +22 -0
  17. package/examples/humidity/htu31d/complete.js +50 -0
  18. package/examples/humidity/htu31d/demo.js +65 -0
  19. package/examples/humidity/htu31d/minimal.js +22 -0
  20. package/examples/humidity/shtc3/complete.js +48 -0
  21. package/examples/humidity/shtc3/demo.js +45 -0
  22. package/examples/humidity/shtc3/minimal.js +22 -0
  23. package/examples/led/saa1064/complete.js +51 -0
  24. package/examples/led/saa1064/demo.js +54 -0
  25. package/examples/led/saa1064/minimal.js +23 -0
  26. package/examples/light/apds9250/complete.js +71 -0
  27. package/examples/light/apds9250/demo.js +79 -0
  28. package/examples/light/apds9250/minimal.js +23 -0
  29. package/examples/light/bh1750/complete.js +46 -0
  30. package/examples/light/bh1750/demo.js +52 -0
  31. package/examples/light/bh1750/minimal.js +22 -0
  32. package/examples/light/si1132/complete.js +70 -0
  33. package/examples/light/si1132/demo.js +73 -0
  34. package/examples/light/si1132/minimal.js +22 -0
  35. package/examples/light/si1133/complete.js +89 -0
  36. package/examples/light/si1133/demo.js +93 -0
  37. package/examples/light/si1133/minimal.js +22 -0
  38. package/examples/light/si1145/complete.js +93 -0
  39. package/examples/light/si1145/demo.js +98 -0
  40. package/examples/light/si1145/minimal.js +22 -0
  41. package/examples/pressure/mpl3115a2/complete.js +49 -0
  42. package/examples/pressure/mpl3115a2/demo.js +48 -0
  43. package/examples/pressure/mpl3115a2/minimal.js +22 -0
  44. package/examples/pressure/ms5607/complete.js +49 -0
  45. package/examples/pressure/ms5607/demo.js +65 -0
  46. package/examples/pressure/ms5607/minimal.js +22 -0
  47. package/examples/pressure/ms5611/complete.js +49 -0
  48. package/examples/pressure/ms5611/demo.js +65 -0
  49. package/examples/pressure/ms5611/minimal.js +22 -0
  50. package/examples/pressure/spl06/complete.js +81 -0
  51. package/examples/pressure/spl06/demo.js +106 -0
  52. package/examples/pressure/spl06/minimal.js +22 -0
  53. package/examples/rfid/pn532/complete.js +99 -0
  54. package/examples/rfid/pn532/demo.js +121 -0
  55. package/examples/rfid/pn532/minimal.js +22 -0
  56. package/package.json +1 -1
  57. package/src/chips/color/isl29125.js +379 -0
  58. package/src/chips/environmental/bme688.js +573 -0
  59. package/src/chips/gas/ccs811.js +400 -0
  60. package/src/chips/gas/rrh46410.js +534 -0
  61. package/src/chips/humidity/hts221.js +369 -0
  62. package/src/chips/humidity/htu31d.js +242 -0
  63. package/src/chips/humidity/shtc3.js +239 -0
  64. package/src/chips/led/saa1064.js +241 -0
  65. package/src/chips/light/apds9250.js +431 -0
  66. package/src/chips/light/bh1750.js +196 -0
  67. package/src/chips/light/si1132.js +416 -0
  68. package/src/chips/light/si1133.js +583 -0
  69. package/src/chips/light/si1145.js +630 -0
  70. package/src/chips/pressure/mpl3115a2.js +459 -0
  71. package/src/chips/pressure/ms5607.js +290 -0
  72. package/src/chips/pressure/ms5611.js +290 -0
  73. package/src/chips/pressure/spl06.js +461 -0
  74. package/src/chips/rfid/pn532.js +513 -0
  75. package/src/connection/i2c.js +46 -13
  76. package/src/connection/smbus.js +21 -8
  77. package/src/discovery/registry.js +18 -18
  78. package/examples/gpio/.gitkeep +0 -0
  79. package/src/chips/gpio/.gitkeep +0 -0
@@ -0,0 +1,416 @@
1
+ 'use strict';
2
+
3
+ const _REG_PART_ID = 0x00;
4
+ const _REG_SEQ_ID = 0x02;
5
+ const _REG_INT_CFG = 0x03;
6
+ const _REG_IRQ_ENABLE = 0x04;
7
+ const _REG_HW_KEY = 0x07;
8
+ const _REG_MEAS_RATE0 = 0x08;
9
+ const _REG_MEAS_RATE1 = 0x09;
10
+ const _REG_MEAS_RATE_SWAPPED = 0x0A;
11
+ const _REG_UCOEF = 0x13;
12
+ const _REG_PARAM_WR = 0x17;
13
+ const _REG_COMMAND = 0x18;
14
+ const _REG_RESPONSE = 0x20;
15
+ const _REG_IRQ_STATUS = 0x21;
16
+ const _REG_DATA = 0x22;
17
+ const _REG_PARAM_RD = 0x2E;
18
+
19
+ const _PART_ID = 0x32;
20
+ const _HW_KEY_VALUE = 0x17;
21
+ const _UCOEF_DEFAULT = [0x7B, 0x6B, 0x01, 0x00];
22
+
23
+ const _CMD_PARAM_QUERY = 0x80;
24
+ const _CMD_PARAM_SET = 0xA0;
25
+ const _CMD_NOP = 0x00;
26
+ const _CMD_RESET = 0x01;
27
+ const _CMD_BUSADDR = 0x02;
28
+ const _CMD_ALS_FORCE = 0x06;
29
+ const _CMD_ALS_PAUSE = 0x0A;
30
+ const _CMD_ALS_AUTO = 0x0E;
31
+ const _CMD_GET_CAL = 0x12;
32
+
33
+ const _PARAM_I2C_ADDR = 0x00;
34
+ const _PARAM_CHLIST = 0x01;
35
+ const _PARAM_ALS_ENCODING = 0x06;
36
+ const _PARAM_AUX_ADCMUX = 0x0F;
37
+ const _PARAM_VIS_COUNTER = 0x10;
38
+ const _PARAM_VIS_GAIN = 0x11;
39
+ const _PARAM_VIS_MISC = 0x12;
40
+ const _PARAM_IR_COUNTER = 0x1D;
41
+ const _PARAM_IR_GAIN = 0x1E;
42
+ const _PARAM_IR_MISC = 0x1F;
43
+
44
+ const _CHLIST_ALL = 0xB0; // EN_UV | EN_ALS_IR | EN_ALS_VIS
45
+ const _CHLIST_AUX = 0x40;
46
+ const _IRQ_ALS_INT = 0x01;
47
+ const _IRQ_CLEAR = 0x21; // ALS_INT | CMD_INT (write 1 to clear)
48
+ const _RESP_ERROR = 0x80;
49
+ const _TIMEOUT_MS = 500;
50
+
51
+ const _sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
52
+
53
+ /**
54
+ * Si1132 UV index and ambient light sensor (Silicon Labs) — minimal interface.
55
+ *
56
+ * The chip is a small sequencer: configuration lives partly in registers and partly in a parameter
57
+ * RAM written with PARAM_WR + PARAM_SET. `init()` waits 25 ms, verifies PART_ID = 0x32, writes HW_KEY,
58
+ * the default UV coefficients and enables the UV, infrared and visible channels in forced mode (gain 0,
59
+ * normal range). `read()` starts a forced measurement, waits for ALS_INT (timeout 500 ms) and returns
60
+ * the UV index (AUX_DATA / 100) plus the raw 16-bit visible and infrared counts. The I²C address is
61
+ * 0x60. The constructor does not touch the bus.
62
+ */
63
+ class Si1132Minimal {
64
+ /**
65
+ * @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection (0x60).
66
+ */
67
+ constructor(connection) {
68
+ this._conn = connection;
69
+ this._chlist = _CHLIST_ALL;
70
+ this._seqId = 0;
71
+ }
72
+
73
+ /**
74
+ * Verify PART_ID and configure forced UV + visible + infrared measurements.
75
+ * @returns {Promise<void>}
76
+ * @throws {Error} If PART_ID is not 0x32 or a command fails.
77
+ */
78
+ async init() {
79
+ await _sleep(25);
80
+ if ((await this._readReg(_REG_PART_ID)) !== _PART_ID) {
81
+ throw new Error('Si1132 not found (PART_ID mismatch)');
82
+ }
83
+ this._seqId = await this._readReg(_REG_SEQ_ID);
84
+ await this._writeReg(_REG_HW_KEY, _HW_KEY_VALUE);
85
+ await this._conn.writeReg(_REG_UCOEF, Buffer.from(_UCOEF_DEFAULT));
86
+ // ALS_IE lets IRQ_STATUS.ALS_INT flag completed measurements; INT stays released (INT_OE = 0).
87
+ await this._writeReg(_REG_IRQ_ENABLE, _IRQ_ALS_INT);
88
+ this._chlist = _CHLIST_ALL;
89
+ await this._paramSet(_PARAM_CHLIST, this._chlist);
90
+ }
91
+
92
+ async _writeReg(reg, value) {
93
+ await this._conn.writeReg(reg, value & 0xFF);
94
+ }
95
+
96
+ async _readReg(reg) {
97
+ return (await this._conn.readReg(reg, 1))[0];
98
+ }
99
+
100
+ async _waitResponse(before) {
101
+ for (let i = 0; i < 20; i++) {
102
+ const resp = await this._readReg(_REG_RESPONSE);
103
+ if (resp & _RESP_ERROR) {
104
+ await this._writeReg(_REG_COMMAND, _CMD_NOP);
105
+ throw new Error('Si1132 command error 0x' + resp.toString(16));
106
+ }
107
+ if ((resp & 0x0F) !== before) return;
108
+ await _sleep(1);
109
+ }
110
+ throw new Error('Si1132 command timeout');
111
+ }
112
+
113
+ async _command(cmd) {
114
+ const before = (await this._readReg(_REG_RESPONSE)) & 0x0F;
115
+ await this._writeReg(_REG_COMMAND, cmd);
116
+ await this._waitResponse(before);
117
+ }
118
+
119
+ async _paramSet(offset, value) {
120
+ const before = (await this._readReg(_REG_RESPONSE)) & 0x0F;
121
+ await this._writeReg(_REG_PARAM_WR, value);
122
+ await this._writeReg(_REG_COMMAND, _CMD_PARAM_SET | (offset & 0x1F));
123
+ await this._waitResponse(before);
124
+ }
125
+
126
+ async _startMeasurement() {
127
+ await this._writeReg(_REG_IRQ_STATUS, _IRQ_CLEAR);
128
+ await this._command(_CMD_ALS_FORCE);
129
+ }
130
+
131
+ async _waitReady() {
132
+ let waited = 0;
133
+ while (!((await this._readReg(_REG_IRQ_STATUS)) & _IRQ_ALS_INT)) {
134
+ if (waited >= _TIMEOUT_MS) throw new Error('Si1132 measurement timeout');
135
+ await _sleep(1);
136
+ waited++;
137
+ }
138
+ await this._writeReg(_REG_IRQ_STATUS, _IRQ_CLEAR);
139
+ }
140
+
141
+ async _readData() {
142
+ const d = Buffer.from(await this._conn.readReg(_REG_DATA, 12));
143
+ return {
144
+ visible: d[0] | (d[1] << 8),
145
+ infrared: d[2] | (d[3] << 8),
146
+ aux: d[10] | (d[11] << 8),
147
+ };
148
+ }
149
+
150
+ async _measure() {
151
+ await this._startMeasurement();
152
+ await this._waitReady();
153
+ return this._readData();
154
+ }
155
+
156
+ /**
157
+ * Run one forced measurement of the enabled channels.
158
+ * @returns {Promise<{uv_index: number, visible: number, infrared: number}>} UV index (AUX_DATA / 100) and raw 16-bit counts.
159
+ */
160
+ async read() {
161
+ const d = await this._measure();
162
+ return { uv_index: d.aux / 100, visible: d.visible, infrared: d.infrared };
163
+ }
164
+ }
165
+
166
+ /**
167
+ * Si1132 full interface — single channels, gain/range, autonomous mode, calibration, auxiliary
168
+ * channels and the INT pin. Extends Si1132Minimal.
169
+ */
170
+ class Si1132Full extends Si1132Minimal {
171
+ /**
172
+ * @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection (0x60).
173
+ */
174
+ constructor(connection) {
175
+ super(connection);
176
+ this._intCallback = null;
177
+ this._intPin = null;
178
+ this._intHandler = null;
179
+ this._pollTimer = null;
180
+ }
181
+
182
+ /** @returns {Promise<number>} UV index from a forced measurement (AUX_DATA / 100). */
183
+ async readUvIndex() {
184
+ return (await this._measure()).aux / 100;
185
+ }
186
+
187
+ /** @returns {Promise<number>} Raw 16-bit visible count from a forced measurement. */
188
+ async readVisible() {
189
+ return (await this._measure()).visible;
190
+ }
191
+
192
+ /** @returns {Promise<number>} Raw 16-bit infrared count from a forced measurement. */
193
+ async readInfrared() {
194
+ return (await this._measure()).infrared;
195
+ }
196
+
197
+ /** @returns {Promise<{visible: number, infrared: number, aux: number}>} Latest data registers, no measurement started. */
198
+ async readRaw() {
199
+ return this._readData();
200
+ }
201
+
202
+ async _readAux(mux) {
203
+ await this._paramSet(_PARAM_AUX_ADCMUX, mux);
204
+ await this._paramSet(_PARAM_CHLIST, _CHLIST_AUX);
205
+ try {
206
+ return (await this._measure()).aux;
207
+ } finally {
208
+ await this._paramSet(_PARAM_CHLIST, this._chlist);
209
+ }
210
+ }
211
+
212
+ /** @returns {Promise<number>} Raw auxiliary value as die temperature (AUX_ADCMUX = 0x65, relative only). */
213
+ async readTemperatureRaw() {
214
+ return this._readAux(0x65);
215
+ }
216
+
217
+ /** @returns {Promise<number>} Raw auxiliary value as supply voltage (AUX_ADCMUX = 0x75). */
218
+ async readVddRaw() {
219
+ return this._readAux(0x75);
220
+ }
221
+
222
+ /**
223
+ * Select the measured channels (CHLIST).
224
+ * @param {boolean} uv - Enable the UV channel (cannot be combined with aux).
225
+ * @param {boolean} visible - Enable the visible channel.
226
+ * @param {boolean} infrared - Enable the infrared channel.
227
+ * @param {boolean} [aux=false] - Enable the auxiliary channel.
228
+ */
229
+ async setChannels(uv, visible, infrared, aux = false) {
230
+ if (!(uv || visible || infrared || aux)) throw new RangeError('at least one channel must be enabled');
231
+ if (uv && aux) throw new RangeError('uv and aux share the data registers');
232
+ const chlist = (uv ? 0x80 : 0) | (aux ? 0x40 : 0) | (infrared ? 0x20 : 0) | (visible ? 0x10 : 0);
233
+ await this._paramSet(_PARAM_CHLIST, chlist);
234
+ this._chlist = chlist;
235
+ }
236
+
237
+ /**
238
+ * Set the ADC gain (integration time x 2^n) and the recommended recovery count.
239
+ * @param {number} [visible=0] - Visible gain 0–7.
240
+ * @param {number} [infrared=0] - Infrared gain 0–7.
241
+ */
242
+ async setGain(visible = 0, infrared = 0) {
243
+ if (!(visible >= 0 && visible <= 7 && infrared >= 0 && infrared <= 7)) throw new RangeError('gain must be 0-7');
244
+ await this._paramSet(_PARAM_VIS_GAIN, visible);
245
+ await this._paramSet(_PARAM_VIS_COUNTER, ((~visible) & 0x07) << 4);
246
+ await this._paramSet(_PARAM_IR_GAIN, infrared);
247
+ await this._paramSet(_PARAM_IR_COUNTER, ((~infrared) & 0x07) << 4);
248
+ }
249
+
250
+ /**
251
+ * Select the high signal range (sensitivity ÷ 14.5, for direct sunlight).
252
+ * @param {boolean} visible
253
+ * @param {boolean} infrared
254
+ */
255
+ async setHighRange(visible, infrared) {
256
+ await this._paramSet(_PARAM_VIS_MISC, visible ? 0x20 : 0x00);
257
+ await this._paramSet(_PARAM_IR_MISC, infrared ? 0x20 : 0x00);
258
+ }
259
+
260
+ /**
261
+ * Select which 16 bits of the 17-bit ADC value are reported.
262
+ * @param {boolean} visibleLow - true = least significant 16 bits, false = 16 MSBs.
263
+ * @param {boolean} infraredLow - Same for the infrared channel.
264
+ */
265
+ async setAlignment(visibleLow, infraredLow) {
266
+ await this._paramSet(_PARAM_ALS_ENCODING, (visibleLow ? 0x10 : 0) | (infraredLow ? 0x20 : 0));
267
+ }
268
+
269
+ /**
270
+ * Write the four UV index coefficients UCOEF0..3.
271
+ * @param {number[]} ucoef - Four byte values.
272
+ */
273
+ async setUvCoefficients(ucoef) {
274
+ if (ucoef.length !== 4) throw new RangeError('four coefficients required');
275
+ await this._conn.writeReg(_REG_UCOEF, Buffer.from(ucoef));
276
+ }
277
+
278
+ /** @returns {Promise<number[]>} The 12 factory calibration bytes (GET_CAL, then registers 0x22–0x2D). */
279
+ async readCalibration() {
280
+ await this._command(_CMD_GET_CAL);
281
+ return Array.from(await this._conn.readReg(_REG_DATA, 12));
282
+ }
283
+
284
+ /**
285
+ * Start (or stop) autonomous measurements.
286
+ * @param {number} interval - Wake-up interval in seconds (multiple of 31.25 µs, at most ~2.05 s); 0 returns to forced mode.
287
+ */
288
+ async startAutonomous(interval) {
289
+ const counts = Math.round(interval / 31.25e-6);
290
+ if (interval < 0 || counts > 0xFFFF) throw new RangeError('interval out of range');
291
+ if (this._seqId === 0x01) { // erratum: MEAS_RATE bytes swapped
292
+ await this._writeReg(_REG_MEAS_RATE_SWAPPED, counts & 0xFF);
293
+ await this._writeReg(_REG_MEAS_RATE0, counts >> 8);
294
+ } else {
295
+ await this._writeReg(_REG_MEAS_RATE0, counts & 0xFF);
296
+ await this._writeReg(_REG_MEAS_RATE1, counts >> 8);
297
+ }
298
+ await this._command(counts ? _CMD_ALS_AUTO : _CMD_ALS_PAUSE);
299
+ }
300
+
301
+ /** Pause autonomous measurements (ALS_PAUSE). */
302
+ async pause() {
303
+ await this._command(_CMD_ALS_PAUSE);
304
+ }
305
+
306
+ /** Start one forced measurement without waiting for it (ALS_FORCE). */
307
+ async force() {
308
+ await this._startMeasurement();
309
+ }
310
+
311
+ /** @returns {Promise<boolean>} true when IRQ_STATUS.ALS_INT is set. */
312
+ async measurementReady() {
313
+ return Boolean((await this._readReg(_REG_IRQ_STATUS)) & _IRQ_ALS_INT);
314
+ }
315
+
316
+ /** @returns {Promise<{counter: number, error: number}>} RESPONSE decoded; error 0 = none. */
317
+ async readResponse() {
318
+ const resp = await this._readReg(_REG_RESPONSE);
319
+ return (resp & _RESP_ERROR) ? { counter: 0, error: resp } : { counter: resp & 0x0F, error: 0 };
320
+ }
321
+
322
+ /**
323
+ * Change the I²C address (volatile; lost at reset).
324
+ * @param {number} address - New 7-bit address written to the I2C_ADDR parameter.
325
+ */
326
+ async setI2cAddress(address) {
327
+ await this._paramSet(_PARAM_I2C_ADDR, address);
328
+ await this._command(_CMD_BUSADDR);
329
+ }
330
+
331
+ /** Software reset: RESET command, 2 ms wait, HW_KEY again. */
332
+ async reset() {
333
+ await this._writeReg(_REG_COMMAND, _CMD_RESET);
334
+ await _sleep(2);
335
+ await this._writeReg(_REG_HW_KEY, _HW_KEY_VALUE);
336
+ }
337
+
338
+ /** Drive INT low on completed measurements (INT_OE and ALS_IE). */
339
+ async enableInterrupt() {
340
+ await this._writeReg(_REG_IRQ_ENABLE, _IRQ_ALS_INT);
341
+ await this._writeReg(_REG_INT_CFG, 0x01);
342
+ }
343
+
344
+ /** Release the INT pin (INT_OE = 0); ALS_IE stays set because forced readout polls ALS_INT. */
345
+ async disableInterrupt() {
346
+ await this._writeReg(_REG_INT_CFG, 0x00);
347
+ }
348
+
349
+ /** @returns {Promise<number>} IRQ_STATUS, written back to clear the flags (0 = nothing pending). */
350
+ async pollInterrupt() {
351
+ const status = await this._readReg(_REG_IRQ_STATUS);
352
+ if (status) await this._writeReg(_REG_IRQ_STATUS, status);
353
+ return status;
354
+ }
355
+
356
+ /**
357
+ * Subscribe to measurement-complete events. Uses `intPin` or the connection's `intPin` (falling
358
+ * edge); without a pin a polling timer calls `pollInterrupt()` every 10 ms.
359
+ * @param {function(number): void} callback - Called with the IRQ_STATUS value.
360
+ * @param {object} [intPin] - Optional InputPin wired to INT.
361
+ */
362
+ async onInterrupt(callback, intPin = null) {
363
+ await this.offInterrupt();
364
+ await this.enableInterrupt();
365
+ this._intCallback = callback;
366
+ const pin = intPin || (this._conn ? this._conn.intPin : null);
367
+ if (pin) {
368
+ this._intPin = pin;
369
+ this._intHandler = () => { this._dispatchInt(); };
370
+ await pin.onEdge(this._intHandler, 'falling');
371
+ } else {
372
+ this._startPollingFallback();
373
+ }
374
+ }
375
+
376
+ /** Unsubscribe from INT events and release the INT output. */
377
+ async offInterrupt() {
378
+ const had = this._intCallback !== null;
379
+ this._intCallback = null;
380
+ if (this._intPin && this._intHandler) {
381
+ await this._intPin.offEdge(this._intHandler);
382
+ }
383
+ this._intPin = null;
384
+ this._intHandler = null;
385
+ if (this._pollTimer !== null) {
386
+ clearTimeout(this._pollTimer);
387
+ this._pollTimer = null;
388
+ }
389
+ if (had) await this.disableInterrupt();
390
+ }
391
+
392
+ async _dispatchInt() {
393
+ const callback = this._intCallback;
394
+ if (!callback) return;
395
+ try {
396
+ const status = await this.pollInterrupt();
397
+ if (status) callback(status);
398
+ } catch (e) {
399
+ // A failing bus read must not kill the event loop.
400
+ }
401
+ }
402
+
403
+ _startPollingFallback() {
404
+ const tick = async () => {
405
+ if (this._intCallback === null) return;
406
+ await this._dispatchInt();
407
+ if (this._intCallback !== null) this._pollTimer = setTimeout(tick, 10);
408
+ };
409
+ this._pollTimer = setTimeout(tick, 0);
410
+ }
411
+ }
412
+
413
+ /** Fixed 7-bit I²C address. */
414
+ Si1132Minimal.I2C_ADDRESS = 0x60;
415
+
416
+ module.exports = { Si1132Minimal, Si1132Full };