periph 1.3.2 → 1.4.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.
- package/README.md +27 -0
- package/examples/accelerometer/bma180/complete.js +83 -0
- package/examples/accelerometer/bma180/demo.js +47 -0
- package/examples/accelerometer/bma180/minimal.js +21 -0
- package/examples/accelerometer/fxos8700/complete.js +111 -0
- package/examples/accelerometer/fxos8700/demo.js +80 -0
- package/examples/accelerometer/fxos8700/minimal.js +20 -0
- package/examples/accelerometer/lis3dh/complete.js +123 -0
- package/examples/accelerometer/lis3dh/demo.js +99 -0
- package/examples/accelerometer/lis3dh/minimal.js +19 -0
- package/examples/accelerometer/lsm303/complete.js +82 -0
- package/examples/accelerometer/lsm303/demo.js +96 -0
- package/examples/accelerometer/lsm303/minimal.js +23 -0
- package/examples/accelerometer/mma8451q/complete.js +96 -0
- package/examples/accelerometer/mma8451q/demo.js +120 -0
- package/examples/accelerometer/mma8451q/minimal.js +20 -0
- package/examples/adc_dac/ad5243/complete.js +52 -0
- package/examples/adc_dac/ad5243/demo.js +50 -0
- package/examples/adc_dac/ad5243/minimal.js +23 -0
- package/examples/adc_dac/ad5248/complete.js +49 -0
- package/examples/adc_dac/ad5248/demo.js +42 -0
- package/examples/adc_dac/ad5248/minimal.js +21 -0
- package/examples/adc_dac/ads1013/complete.js +51 -0
- package/examples/adc_dac/ads1013/demo.js +51 -0
- package/examples/adc_dac/ads1013/minimal.js +21 -0
- package/examples/adc_dac/ads1014/complete.js +88 -0
- package/examples/adc_dac/ads1014/demo.js +52 -0
- package/examples/adc_dac/ads1014/minimal.js +21 -0
- package/examples/adc_dac/ads1113/complete.js +47 -0
- package/examples/adc_dac/ads1113/demo.js +39 -0
- package/examples/adc_dac/ads1113/minimal.js +20 -0
- package/examples/adc_dac/ads1114/complete.js +77 -0
- package/examples/adc_dac/ads1114/demo.js +47 -0
- package/examples/adc_dac/ads1114/minimal.js +20 -0
- package/examples/adc_dac/ads1115/complete.js +82 -0
- package/examples/adc_dac/ads1115/demo.js +55 -0
- package/examples/adc_dac/ads1115/minimal.js +20 -0
- package/examples/adc_dac/es8311/complete.js +80 -0
- package/examples/adc_dac/es8311/demo.js +59 -0
- package/examples/adc_dac/es8311/minimal.js +18 -0
- package/examples/adc_dac/mcp4xxx/complete.js +97 -0
- package/examples/adc_dac/mcp4xxx/demo.js +76 -0
- package/examples/adc_dac/mcp4xxx/minimal.js +22 -0
- package/examples/display/pcf8578/complete.js +58 -0
- package/examples/display/pcf8578/demo.js +62 -0
- package/examples/display/pcf8578/minimal.js +19 -0
- package/examples/display/pcf8579/complete.js +58 -0
- package/examples/display/pcf8579/demo.js +61 -0
- package/examples/display/pcf8579/minimal.js +19 -0
- package/examples/imu/icm20948/complete.js +114 -0
- package/examples/imu/icm20948/demo.js +79 -0
- package/examples/imu/icm20948/minimal.js +22 -0
- package/examples/imu/qmi8658a/complete.js +134 -0
- package/examples/imu/qmi8658a/demo.js +81 -0
- package/examples/imu/qmi8658a/minimal.js +22 -0
- package/examples/io_expander/mcp23008/complete.js +70 -0
- package/examples/io_expander/mcp23008/demo.js +58 -0
- package/examples/io_expander/mcp23008/minimal.js +20 -0
- package/examples/memory/mb85rc/complete.js +40 -0
- package/examples/memory/mb85rc/demo.js +58 -0
- package/examples/memory/mb85rc/minimal.js +15 -0
- package/examples/motor/drv2605/complete.js +100 -0
- package/examples/motor/drv2605/demo.js +55 -0
- package/examples/motor/drv2605/minimal.js +24 -0
- package/examples/motor/tmc2130/complete.js +138 -0
- package/examples/motor/tmc2130/demo.js +96 -0
- package/examples/motor/tmc2130/minimal.js +30 -0
- package/examples/motor/tmc2208/complete.js +92 -0
- package/examples/motor/tmc2208/demo.js +85 -0
- package/examples/motor/tmc2208/minimal.js +25 -0
- package/examples/motor/tmc2209/complete.js +106 -0
- package/examples/motor/tmc2209/demo.js +97 -0
- package/examples/motor/tmc2209/minimal.js +25 -0
- package/examples/motor/tmc5160/complete.js +205 -0
- package/examples/motor/tmc5160/demo.js +104 -0
- package/examples/motor/tmc5160/minimal.js +35 -0
- package/examples/power/axp2101/complete.js +135 -0
- package/examples/power/axp2101/demo.js +68 -0
- package/examples/power/axp2101/minimal.js +24 -0
- package/examples/rtc/pcf85063a/complete.js +68 -0
- package/examples/rtc/pcf85063a/demo.js +76 -0
- package/examples/rtc/pcf85063a/minimal.js +20 -0
- package/package.json +1 -1
- package/src/chips/accelerometer/bma180.js +573 -0
- package/src/chips/accelerometer/fxos8700.js +1600 -0
- package/src/chips/accelerometer/lis3dh.js +1341 -0
- package/src/chips/accelerometer/lsm303.js +1471 -0
- package/src/chips/accelerometer/mma8451q.js +1406 -0
- package/src/chips/adc_dac/_ads111x_base.js +272 -0
- package/src/chips/adc_dac/ad5243.js +231 -0
- package/src/chips/adc_dac/ad5248.js +194 -0
- package/src/chips/adc_dac/ads1013.js +219 -0
- package/src/chips/adc_dac/ads1014.js +509 -0
- package/src/chips/adc_dac/ads1113.js +112 -0
- package/src/chips/adc_dac/ads1114.js +201 -0
- package/src/chips/adc_dac/ads1115.js +232 -0
- package/src/chips/adc_dac/es8311.js +621 -0
- package/src/chips/adc_dac/mcp4xxx.js +982 -0
- package/src/chips/display/pcf8578.js +452 -0
- package/src/chips/display/pcf8579.js +451 -0
- package/src/chips/imu/icm20948.js +849 -0
- package/src/chips/imu/qmi8658a.js +1011 -0
- package/src/chips/io_expander/mcp23008.js +558 -0
- package/src/chips/memory/mb85rc.js +166 -0
- package/src/chips/motor/drv2605.js +592 -0
- package/src/chips/motor/tmc2130.js +537 -0
- package/src/chips/motor/tmc2208.js +490 -0
- package/src/chips/motor/tmc2209.js +565 -0
- package/src/chips/motor/tmc5160.js +900 -0
- package/src/chips/power/axp2101.js +968 -0
- package/src/chips/rtc/pcf85063a.js +482 -0
- package/src/connection/uart.js +9 -0
- package/src/connection/uart_mock.js +65 -0
- package/src/discovery/registry.js +45 -19
|
@@ -0,0 +1,982 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* MCP4XXX family — MCP453X / 454X / 455X / 456X / 463X / 464X / 465X / 466X I²C digital
|
|
5
|
+
* potentiometers (Microchip).
|
|
6
|
+
*
|
|
7
|
+
* One driver for all sixteen parts. A part descriptor (`PARTS`) carries the channel count,
|
|
8
|
+
* resolution (7-bit: max code 128, 8-bit: 256), pot / rheostat pinout, memory type and the
|
|
9
|
+
* I²C address range; everything else is one code path. A transaction starts with a command
|
|
10
|
+
* byte `AD3 AD2 AD1 AD0 C1 C0 D9 D8` that plays the role of the register address of the
|
|
11
|
+
* RegisterConnection; a read returns two bytes (`0000 000D8`, `D7..D0`).
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
const X1 = [0x2E, 0x2F];
|
|
15
|
+
const X2 = [0x58, 0x5B];
|
|
16
|
+
const P46X1 = [0x28, 0x2F];
|
|
17
|
+
|
|
18
|
+
/** Part descriptor table keyed by upper-case part name. */
|
|
19
|
+
const PARTS = {
|
|
20
|
+
MCP4531: { channels: 1, maxCode: 128, pot: true, nv: false, wpPin: false, addr: X1 },
|
|
21
|
+
MCP4532: { channels: 1, maxCode: 128, pot: false, nv: false, wpPin: false, addr: X2 },
|
|
22
|
+
MCP4551: { channels: 1, maxCode: 256, pot: true, nv: false, wpPin: false, addr: X1 },
|
|
23
|
+
MCP4552: { channels: 1, maxCode: 256, pot: false, nv: false, wpPin: false, addr: X2 },
|
|
24
|
+
MCP4631: { channels: 2, maxCode: 128, pot: true, nv: false, wpPin: false, addr: P46X1 },
|
|
25
|
+
MCP4632: { channels: 2, maxCode: 128, pot: false, nv: false, wpPin: false, addr: X2 },
|
|
26
|
+
MCP4651: { channels: 2, maxCode: 256, pot: true, nv: false, wpPin: false, addr: P46X1 },
|
|
27
|
+
MCP4652: { channels: 2, maxCode: 256, pot: false, nv: false, wpPin: false, addr: X2 },
|
|
28
|
+
MCP4541: { channels: 1, maxCode: 128, pot: true, nv: true, wpPin: false, addr: X1 },
|
|
29
|
+
MCP4542: { channels: 1, maxCode: 128, pot: false, nv: true, wpPin: false, addr: X2 },
|
|
30
|
+
MCP4561: { channels: 1, maxCode: 256, pot: true, nv: true, wpPin: false, addr: X1 },
|
|
31
|
+
MCP4562: { channels: 1, maxCode: 256, pot: false, nv: true, wpPin: false, addr: X2 },
|
|
32
|
+
MCP4641: { channels: 2, maxCode: 128, pot: true, nv: true, wpPin: true, addr: P46X1 },
|
|
33
|
+
MCP4642: { channels: 2, maxCode: 128, pot: false, nv: true, wpPin: false, addr: X2 },
|
|
34
|
+
MCP4661: { channels: 2, maxCode: 256, pot: true, nv: true, wpPin: true, addr: P46X1 },
|
|
35
|
+
MCP4662: { channels: 2, maxCode: 256, pot: false, nv: true, wpPin: false, addr: X2 },
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const ADDR_WIPER0 = 0x00;
|
|
39
|
+
const ADDR_NVWIPER0 = 0x02;
|
|
40
|
+
const ADDR_TCON = 0x04;
|
|
41
|
+
const ADDR_STATUS = 0x05;
|
|
42
|
+
const ADDR_DATA0 = 0x06;
|
|
43
|
+
const ADDR_WP = 0x0F;
|
|
44
|
+
|
|
45
|
+
const OP_WRITE = 0x00;
|
|
46
|
+
const OP_INC = 0x04;
|
|
47
|
+
const OP_DEC = 0x08;
|
|
48
|
+
const OP_READ = 0x0C;
|
|
49
|
+
|
|
50
|
+
const TCON_DEFAULT = 0x1FF;
|
|
51
|
+
// Per-channel TCON bit positions: [HW, A, W, B].
|
|
52
|
+
const TCON_BITS = [[3, 2, 1, 0], [7, 6, 5, 4]];
|
|
53
|
+
|
|
54
|
+
const STATUS_EEWA = 0x08;
|
|
55
|
+
const STATUS_WL = [0x02, 0x04];
|
|
56
|
+
const STATUS_WP = 0x01;
|
|
57
|
+
|
|
58
|
+
const delayMs = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
59
|
+
|
|
60
|
+
function descriptor(part) {
|
|
61
|
+
const d = PARTS[String(part).toUpperCase()];
|
|
62
|
+
if (!d) throw new RangeError('MCP4XXX: unknown part ' + part);
|
|
63
|
+
return d;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Default 7-bit I²C address (all address pins low) of a part.
|
|
68
|
+
* @param {string} part - Part name, e.g. `'MCP4532'` (case-insensitive).
|
|
69
|
+
* @returns {number} `0x2E` (45X1), `0x58` (45X2 / 46X2) or `0x28` (46X1).
|
|
70
|
+
*/
|
|
71
|
+
function defaultAddress(part) {
|
|
72
|
+
return descriptor(part).addr[0];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* MCP4XXX family — minimal interface: set and read the volatile wiper or the W–B resistance.
|
|
77
|
+
* Never touches the EEPROM.
|
|
78
|
+
*
|
|
79
|
+
* Default behaviour: part MCP4532, RAB = 10 kΩ, RW = 75 Ω; wipers keep their power-up value
|
|
80
|
+
* until written; all terminals connected.
|
|
81
|
+
*/
|
|
82
|
+
class Mcp4xxxMinimal {
|
|
83
|
+
/**
|
|
84
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection pointing at the device.
|
|
85
|
+
* @param {string} [part='MCP4532'] - Part name `'MCP4531'` … `'MCP4662'` (case-insensitive); an unknown part throws.
|
|
86
|
+
* @param {number} [rAb=10000] - End-to-end resistance RAB in ohms (5 / 10 / 50 / 100 kΩ).
|
|
87
|
+
* @param {number} [rWiper=75] - Wiper resistance RW in ohms.
|
|
88
|
+
*/
|
|
89
|
+
constructor(connection, part = 'MCP4532', rAb = 10000.0, rWiper = 75.0) {
|
|
90
|
+
const d = descriptor(part);
|
|
91
|
+
this._conn = connection;
|
|
92
|
+
this._part = String(part).toUpperCase();
|
|
93
|
+
this._channels = d.channels;
|
|
94
|
+
this._maxCode = d.maxCode;
|
|
95
|
+
this._pot = d.pot;
|
|
96
|
+
this._nv = d.nv;
|
|
97
|
+
this._rAb = rAb;
|
|
98
|
+
this._rWiper = rWiper;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Bus check: reads the wiper register(s), `TCON` (and `STATUS` on non-volatile parts). Performs no writes.
|
|
103
|
+
* @returns {Promise<void>}
|
|
104
|
+
*/
|
|
105
|
+
async init() {
|
|
106
|
+
for (let c = 0; c < this._channels; c++) await this._readWiper(c);
|
|
107
|
+
await this._readRegister(ADDR_TCON);
|
|
108
|
+
if (this._nv) await this._readRegister(ADDR_STATUS);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
_checkChannel(channel) {
|
|
112
|
+
if (!Number.isInteger(channel) || channel < 0 || channel >= this._channels) {
|
|
113
|
+
throw new RangeError('MCP4XXX: channel out of range for ' + this._part);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
async _readRegister(address) {
|
|
118
|
+
const d = await this._conn.readReg((address << 4) | OP_READ, 2);
|
|
119
|
+
return ((d[0] & 0x01) << 8) | d[1];
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
async _writeRegister(address, value) {
|
|
123
|
+
await this._conn.writeReg((address << 4) | OP_WRITE | ((value >> 8) & 0x01), [value & 0xFF]);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
async _readWiper(channel) {
|
|
127
|
+
return Math.min(await this._readRegister(ADDR_WIPER0 + channel), this._maxCode);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
_clamp(code) {
|
|
131
|
+
return Math.max(0, Math.min(this._maxCode, Math.round(code)));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Set the volatile wiper position of a network (clamped to [0, max code]; a WiperLock-ed network ignores it).
|
|
136
|
+
* @param {number} code - Wiper position (0 = W at B, max code 128 / 256 = W at A).
|
|
137
|
+
* @param {number} [channel=0] - Network index, 0 or 1 (dual parts only).
|
|
138
|
+
* @returns {Promise<void>}
|
|
139
|
+
*/
|
|
140
|
+
async setWiper(code, channel = 0) {
|
|
141
|
+
this._checkChannel(channel);
|
|
142
|
+
await this._writeRegister(ADDR_WIPER0 + channel, this._clamp(code));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Read the volatile wiper position of a network.
|
|
147
|
+
* @param {number} [channel=0] - Network index.
|
|
148
|
+
* @returns {Promise<number>} Wiper position 0 … max code.
|
|
149
|
+
*/
|
|
150
|
+
async getWiper(channel = 0) {
|
|
151
|
+
this._checkChannel(channel);
|
|
152
|
+
return this._readWiper(channel);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Set the W–B resistance to the nearest reachable value.
|
|
157
|
+
* @param {number} ohms - Target wiper-to-B resistance in ohms (clamped).
|
|
158
|
+
* @param {number} [channel=0] - Network index.
|
|
159
|
+
* @returns {Promise<void>}
|
|
160
|
+
*/
|
|
161
|
+
async setResistance(ohms, channel = 0) {
|
|
162
|
+
this._checkChannel(channel);
|
|
163
|
+
await this.setWiper(Math.round((ohms - this._rWiper) / this._rAb * this._maxCode), channel);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Read the W–B resistance for the current wiper position.
|
|
168
|
+
* @param {number} [channel=0] - Network index.
|
|
169
|
+
* @returns {Promise<number>} Resistance in ohms, N / maxCode × RAB + RW.
|
|
170
|
+
*/
|
|
171
|
+
async getResistance(channel = 0) {
|
|
172
|
+
return (await this.getWiper(channel)) / this._maxCode * this._rAb + this._rWiper;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* MCP4XXX family — full interface: ratio helpers, increment / decrement, shutdown and
|
|
178
|
+
* terminal control, General Call, reset, raw access and (non-volatile parts only, marked
|
|
179
|
+
* **NV**) EEPROM wiper, general-purpose EEPROM, STATUS, WiperLock and write protect.
|
|
180
|
+
* NV operations reject with a RangeError on the volatile parts.
|
|
181
|
+
*/
|
|
182
|
+
class Mcp4xxxFull extends Mcp4xxxMinimal {
|
|
183
|
+
/**
|
|
184
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
185
|
+
* @param {string} [part='MCP4532'] - Part name.
|
|
186
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
187
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
188
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional pin switching an external circuit that drives HVC/A0 to 8.5–12.5 V (needed only by setWiperLock / setWriteProtect).
|
|
189
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
190
|
+
*/
|
|
191
|
+
constructor(connection, part = 'MCP4532', rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
192
|
+
super(connection, part, rAb, rWiper);
|
|
193
|
+
this._hvc = this._nv ? hvc : null;
|
|
194
|
+
this._hvcSettleMs = hvcSettleMs;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
_requireNv() {
|
|
198
|
+
if (!this._nv) throw new RangeError('MCP4XXX: ' + this._part + ' has no EEPROM');
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
_requirePot() {
|
|
202
|
+
if (!this._pot) throw new RangeError('MCP4XXX: ' + this._part + ' is a rheostat (terminal A not available)');
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/** @returns {number} Number of resistor networks (1 or 2). */
|
|
206
|
+
channels() { return this._channels; }
|
|
207
|
+
|
|
208
|
+
/** @returns {number} Number of wiper positions (129 or 257). */
|
|
209
|
+
steps() { return this._maxCode + 1; }
|
|
210
|
+
|
|
211
|
+
/** @returns {boolean} True for the X1 parts (terminal A on a pin). */
|
|
212
|
+
isPotentiometer() { return this._pot; }
|
|
213
|
+
|
|
214
|
+
/** @returns {boolean} True for the 454X / 456X / 464X / 466X parts. */
|
|
215
|
+
isNonvolatile() { return this._nv; }
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Set the wiper to a fraction of the full scale.
|
|
219
|
+
* @param {number} ratio - 0.0–1.0.
|
|
220
|
+
* @param {number} [channel=0] - Network index.
|
|
221
|
+
* @returns {Promise<void>}
|
|
222
|
+
*/
|
|
223
|
+
async setRatio(ratio, channel = 0) {
|
|
224
|
+
await this.setWiper(Math.round(Math.max(0, Math.min(1, ratio)) * this._maxCode), channel);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Read the wiper position as a ratio.
|
|
229
|
+
* @param {number} [channel=0] - Network index.
|
|
230
|
+
* @returns {Promise<number>} code / maxCode.
|
|
231
|
+
*/
|
|
232
|
+
async getRatio(channel = 0) {
|
|
233
|
+
return (await this.getWiper(channel)) / this._maxCode;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Read the W–A resistance (potentiometer parts only).
|
|
238
|
+
* @param {number} [channel=0] - Network index.
|
|
239
|
+
* @returns {Promise<number>} (maxCode − N) / maxCode × RAB + RW in ohms.
|
|
240
|
+
*/
|
|
241
|
+
async getResistanceWa(channel = 0) {
|
|
242
|
+
this._requirePot();
|
|
243
|
+
return (this._maxCode - await this.getWiper(channel)) / this._maxCode * this._rAb + this._rWiper;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Set the W–A resistance to the nearest reachable value (potentiometer parts only).
|
|
248
|
+
* @param {number} ohms - Target wiper-to-A resistance in ohms.
|
|
249
|
+
* @param {number} [channel=0] - Network index.
|
|
250
|
+
* @returns {Promise<void>}
|
|
251
|
+
*/
|
|
252
|
+
async setResistanceWa(ohms, channel = 0) {
|
|
253
|
+
this._requirePot();
|
|
254
|
+
this._checkChannel(channel);
|
|
255
|
+
await this.setWiper(this._maxCode - Math.round((ohms - this._rWiper) / this._rAb * this._maxCode), channel);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/** @returns {number} Resistance of one step, RAB / maxCode, in ohms. */
|
|
259
|
+
getResistanceStep() { return this._rAb / this._maxCode; }
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Write both wipers of a dual part (two transactions).
|
|
263
|
+
* @param {number} code0 - Network 0 wiper position.
|
|
264
|
+
* @param {number} code1 - Network 1 wiper position.
|
|
265
|
+
* @returns {Promise<void>}
|
|
266
|
+
*/
|
|
267
|
+
async setBoth(code0, code1) {
|
|
268
|
+
if (this._channels < 2) throw new RangeError('MCP4XXX: ' + this._part + ' has a single network');
|
|
269
|
+
await this.setWiper(code0, 0);
|
|
270
|
+
await this.setWiper(code1, 1);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
async _step(op, steps, channel) {
|
|
274
|
+
this._checkChannel(channel);
|
|
275
|
+
const n = Math.trunc(steps);
|
|
276
|
+
if (n < 1) return this.getWiper(channel);
|
|
277
|
+
const command = ((ADDR_WIPER0 + channel) << 4) | op;
|
|
278
|
+
// Continuous mode: one command byte per step, no data bytes, one transaction.
|
|
279
|
+
await this._conn.writeReg(command, new Array(n - 1).fill(command));
|
|
280
|
+
return this.getWiper(channel);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Increment the wiper by `steps` in one continuous transaction (saturates at the max code).
|
|
285
|
+
* @param {number} [steps=1] - Number of increment commands.
|
|
286
|
+
* @param {number} [channel=0] - Network index.
|
|
287
|
+
* @returns {Promise<number>} New wiper code (read back).
|
|
288
|
+
*/
|
|
289
|
+
async increment(steps = 1, channel = 0) { return this._step(OP_INC, steps, channel); }
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Decrement the wiper by `steps` in one continuous transaction (saturates at 0).
|
|
293
|
+
* @param {number} [steps=1] - Number of decrement commands.
|
|
294
|
+
* @param {number} [channel=0] - Network index.
|
|
295
|
+
* @returns {Promise<number>} New wiper code (read back).
|
|
296
|
+
*/
|
|
297
|
+
async decrement(steps = 1, channel = 0) { return this._step(OP_DEC, steps, channel); }
|
|
298
|
+
|
|
299
|
+
async _modifyTcon(changes) {
|
|
300
|
+
let value = await this._readRegister(ADDR_TCON);
|
|
301
|
+
for (const [bit, on] of changes) value = on ? (value | (1 << bit)) : (value & ~(1 << bit));
|
|
302
|
+
await this._writeRegister(ADDR_TCON, value & 0x1FF);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Shut a network down (TCON.RxHW = 0): A disconnected, W connected to B; the wiper is kept.
|
|
307
|
+
* @param {number} [channel=0] - Network index.
|
|
308
|
+
* @returns {Promise<void>}
|
|
309
|
+
*/
|
|
310
|
+
async shutdown(channel = 0) {
|
|
311
|
+
this._checkChannel(channel);
|
|
312
|
+
await this._modifyTcon([[TCON_BITS[channel][0], false]]);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Leave shutdown (TCON.RxHW = 1).
|
|
317
|
+
* @param {number} [channel=0] - Network index.
|
|
318
|
+
* @returns {Promise<void>}
|
|
319
|
+
*/
|
|
320
|
+
async resume(channel = 0) {
|
|
321
|
+
this._checkChannel(channel);
|
|
322
|
+
await this._modifyTcon([[TCON_BITS[channel][0], true]]);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Whether the network is in shutdown (read from TCON).
|
|
327
|
+
* @param {number} [channel=0] - Network index.
|
|
328
|
+
* @returns {Promise<boolean>}
|
|
329
|
+
*/
|
|
330
|
+
async isShutdown(channel = 0) {
|
|
331
|
+
this._checkChannel(channel);
|
|
332
|
+
return ((await this._readRegister(ADDR_TCON)) >> TCON_BITS[channel][0] & 1) === 0;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Connect or disconnect the A, W and B terminals of a network (TCON.RxA / RxW / RxB).
|
|
337
|
+
* @param {boolean} [a=true] - Connect terminal A.
|
|
338
|
+
* @param {boolean} [w=true] - Connect the wiper terminal.
|
|
339
|
+
* @param {boolean} [b=true] - Connect terminal B.
|
|
340
|
+
* @param {number} [channel=0] - Network index.
|
|
341
|
+
* @returns {Promise<void>}
|
|
342
|
+
*/
|
|
343
|
+
async setTerminals(a = true, w = true, b = true, channel = 0) {
|
|
344
|
+
this._checkChannel(channel);
|
|
345
|
+
const bits = TCON_BITS[channel];
|
|
346
|
+
await this._modifyTcon([[bits[1], a], [bits[2], w], [bits[3], b]]);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Read the terminal connection state of a network from TCON.
|
|
351
|
+
* @param {number} [channel=0] - Network index.
|
|
352
|
+
* @returns {Promise<{a: boolean, w: boolean, b: boolean}>}
|
|
353
|
+
*/
|
|
354
|
+
async getTerminals(channel = 0) {
|
|
355
|
+
this._checkChannel(channel);
|
|
356
|
+
const tcon = await this._readRegister(ADDR_TCON);
|
|
357
|
+
const bits = TCON_BITS[channel];
|
|
358
|
+
return { a: ((tcon >> bits[1]) & 1) === 1, w: ((tcon >> bits[2]) & 1) === 1, b: ((tcon >> bits[3]) & 1) === 1 };
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/** @returns {Promise<number>} Raw 9-bit TCON register. */
|
|
362
|
+
async getTcon() { return this._readRegister(ADDR_TCON); }
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Enable or disable the General Call address (TCON.GCEN).
|
|
366
|
+
* @param {boolean} enabled - True to answer General Call (address 0x00) commands.
|
|
367
|
+
* @returns {Promise<void>}
|
|
368
|
+
*/
|
|
369
|
+
async setGeneralCall(enabled) { await this._modifyTcon([[8, !!enabled]]); }
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Emulate a power-on reset: write every volatile wiper with its power-up value (mid-scale, or
|
|
373
|
+
* the EEPROM wiper on non-volatile parts) and TCON 0x1FF; networks locked by WiperLock are skipped.
|
|
374
|
+
* @returns {Promise<void>}
|
|
375
|
+
*/
|
|
376
|
+
async reset() {
|
|
377
|
+
const locked = this._nv ? (await this.readStatus()).wiperLock : new Array(this._channels).fill(false);
|
|
378
|
+
for (let c = 0; c < this._channels; c++) {
|
|
379
|
+
if (locked[c]) continue;
|
|
380
|
+
await this.setWiper(this._nv ? await this.getNvWiper(c) : this._maxCode / 2, c);
|
|
381
|
+
}
|
|
382
|
+
if (!locked.some((l) => l)) await this._writeRegister(ADDR_TCON, TCON_DEFAULT);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
_checkAddress(address, writable) {
|
|
386
|
+
if (!Number.isInteger(address) || address < 0 || address > 0x0F) throw new RangeError('MCP4XXX: address out of range');
|
|
387
|
+
let ok = address === ADDR_TCON || address < this._channels;
|
|
388
|
+
if (this._nv) {
|
|
389
|
+
ok = ok || ((address === 2 || address === 3) && address - 2 < this._channels) || address >= ADDR_DATA0;
|
|
390
|
+
if (address === ADDR_STATUS) ok = !writable;
|
|
391
|
+
}
|
|
392
|
+
if (!ok) throw new RangeError('MCP4XXX: address 0x' + address.toString(16) + ' not available on ' + this._part);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Raw 9-bit read of a memory address the part has.
|
|
397
|
+
* @param {number} address - Memory address 0–15.
|
|
398
|
+
* @returns {Promise<number>} 9-bit value.
|
|
399
|
+
*/
|
|
400
|
+
async readRegister(address) {
|
|
401
|
+
this._checkAddress(address, false);
|
|
402
|
+
return this._readRegister(address);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Raw write of a writable memory address the part has.
|
|
407
|
+
* @param {number} address - Memory address (volatile wipers, TCON; NV wipers and DATA on NV parts).
|
|
408
|
+
* @param {number} value - Value (0–0x3FF for wipers, 0–0x1FF otherwise).
|
|
409
|
+
* @returns {Promise<void>}
|
|
410
|
+
*/
|
|
411
|
+
async writeRegister(address, value) {
|
|
412
|
+
this._checkAddress(address, true);
|
|
413
|
+
const limit = address < 2 ? 0x3FF : 0x1FF;
|
|
414
|
+
await this._writeRegister(address, Math.max(0, Math.min(limit, Math.trunc(value))));
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Change the resistance model used by the conversions (no I²C traffic).
|
|
419
|
+
* @param {number} rAb - RAB in ohms.
|
|
420
|
+
* @param {number} [rWiper] - RW in ohms; unchanged if omitted.
|
|
421
|
+
*/
|
|
422
|
+
setRab(rAb, rWiper) {
|
|
423
|
+
this._rAb = rAb;
|
|
424
|
+
if (rWiper !== undefined && rWiper !== null) this._rWiper = rWiper;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* **NV.** Read STATUS.
|
|
429
|
+
* @returns {Promise<{eepromBusy: boolean, wiperLock: boolean[], writeProtect: boolean}>}
|
|
430
|
+
*/
|
|
431
|
+
async readStatus() {
|
|
432
|
+
this._requireNv();
|
|
433
|
+
const v = await this._readRegister(ADDR_STATUS);
|
|
434
|
+
const wiperLock = [];
|
|
435
|
+
for (let c = 0; c < this._channels; c++) wiperLock.push((v & STATUS_WL[c]) !== 0);
|
|
436
|
+
return { eepromBusy: (v & STATUS_EEWA) !== 0, wiperLock, writeProtect: (v & STATUS_WP) !== 0 };
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* **NV.** Poll STATUS.EEWA until the EEPROM write cycle has finished.
|
|
441
|
+
* @param {number} [timeoutMs=20] - Maximum wait in ms (tWC is 5 ms typical, 10 ms maximum).
|
|
442
|
+
* @returns {Promise<void>}
|
|
443
|
+
* @throws {Error} If the cycle does not finish in time.
|
|
444
|
+
*/
|
|
445
|
+
async waitReady(timeoutMs = 20) {
|
|
446
|
+
this._requireNv();
|
|
447
|
+
for (let i = 0; i <= Math.trunc(timeoutMs); i++) {
|
|
448
|
+
if (((await this._readRegister(ADDR_STATUS)) & STATUS_EEWA) === 0) return;
|
|
449
|
+
await delayMs(1);
|
|
450
|
+
}
|
|
451
|
+
throw new Error('MCP4XXX: EEPROM write did not finish');
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* **NV.** Read the EEPROM wiper (power-up value).
|
|
456
|
+
* @param {number} [channel=0] - Network index.
|
|
457
|
+
* @returns {Promise<number>} Stored code, clamped to the max code.
|
|
458
|
+
*/
|
|
459
|
+
async getNvWiper(channel = 0) {
|
|
460
|
+
this._requireNv();
|
|
461
|
+
this._checkChannel(channel);
|
|
462
|
+
return Math.min(await this._readRegister(ADDR_NVWIPER0 + channel), this._maxCode);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* **NV.** Write the EEPROM wiper; the volatile wiper is not changed.
|
|
467
|
+
* @param {number} code - Power-up code (clamped).
|
|
468
|
+
* @param {number} [channel=0] - Network index.
|
|
469
|
+
* @returns {Promise<void>}
|
|
470
|
+
*/
|
|
471
|
+
async setNvWiper(code, channel = 0) {
|
|
472
|
+
this._requireNv();
|
|
473
|
+
this._checkChannel(channel);
|
|
474
|
+
await this._writeRegister(ADDR_NVWIPER0 + channel, this._clamp(code));
|
|
475
|
+
await this.waitReady();
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* **NV.** Write the current volatile wiper to the EEPROM wiper.
|
|
480
|
+
* @param {number} [channel=0] - Network index.
|
|
481
|
+
* @returns {Promise<number>} The stored code.
|
|
482
|
+
*/
|
|
483
|
+
async storeWiper(channel = 0) {
|
|
484
|
+
this._requireNv();
|
|
485
|
+
const code = await this.getWiper(channel);
|
|
486
|
+
await this.setNvWiper(code, channel);
|
|
487
|
+
return code;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* **NV.** Read general-purpose EEPROM register `index`.
|
|
492
|
+
* @param {number} index - 0–9.
|
|
493
|
+
* @returns {Promise<number>} 9-bit value.
|
|
494
|
+
*/
|
|
495
|
+
async readData(index) {
|
|
496
|
+
this._requireNv();
|
|
497
|
+
if (!Number.isInteger(index) || index < 0 || index > 9) throw new RangeError('MCP4XXX: data index must be 0-9');
|
|
498
|
+
return this._readRegister(ADDR_DATA0 + index);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* **NV.** Write general-purpose EEPROM register `index` (uses one write cycle).
|
|
503
|
+
* @param {number} index - 0–9.
|
|
504
|
+
* @param {number} value - 9-bit value 0–0x1FF.
|
|
505
|
+
* @returns {Promise<void>}
|
|
506
|
+
*/
|
|
507
|
+
async writeData(index, value) {
|
|
508
|
+
this._requireNv();
|
|
509
|
+
if (!Number.isInteger(index) || index < 0 || index > 9) throw new RangeError('MCP4XXX: data index must be 0-9');
|
|
510
|
+
await this._writeRegister(ADDR_DATA0 + index, Math.max(0, Math.min(0x1FF, Math.trunc(value))));
|
|
511
|
+
await this.waitReady();
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* **NV.** Whether WiperLock is active for a network (STATUS.WLx).
|
|
516
|
+
* @param {number} [channel=0] - Network index.
|
|
517
|
+
* @returns {Promise<boolean>}
|
|
518
|
+
*/
|
|
519
|
+
async isWiperLocked(channel = 0) {
|
|
520
|
+
this._checkChannel(channel);
|
|
521
|
+
return (await this.readStatus()).wiperLock[channel];
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/** **NV.** @returns {Promise<boolean>} STATUS.WP (hardware WP pin OR the nonvolatile bit). */
|
|
525
|
+
async isWriteProtected() { return (await this.readStatus()).writeProtect; }
|
|
526
|
+
|
|
527
|
+
async _hvCommand(address, decrement) {
|
|
528
|
+
if (!this._hvc) throw new RangeError('MCP4XXX: a high-voltage command needs the hvc pin');
|
|
529
|
+
const command = (address << 4) | (decrement ? OP_DEC : OP_INC);
|
|
530
|
+
await this._hvc.set(true);
|
|
531
|
+
try {
|
|
532
|
+
await delayMs(this._hvcSettleMs);
|
|
533
|
+
await this._conn.writeReg(command, []);
|
|
534
|
+
} finally {
|
|
535
|
+
await this._hvc.set(false);
|
|
536
|
+
}
|
|
537
|
+
await this.waitReady();
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* **NV, needs `hvc`.** Enable or disable WiperLock of a network (high-voltage command).
|
|
542
|
+
* @param {boolean} locked - True to lock (decrement command), false to unlock (increment).
|
|
543
|
+
* @param {number} [channel=0] - Network index.
|
|
544
|
+
* @returns {Promise<void>}
|
|
545
|
+
*/
|
|
546
|
+
async setWiperLock(locked, channel = 0) {
|
|
547
|
+
this._requireNv();
|
|
548
|
+
this._checkChannel(channel);
|
|
549
|
+
await this._hvCommand(ADDR_NVWIPER0 + channel, !!locked);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* **NV, needs `hvc`.** Set the nonvolatile EEPROM write-protect bit (high-voltage command).
|
|
554
|
+
* @param {boolean} enabled - True to enable write protect, false to disable.
|
|
555
|
+
* @returns {Promise<void>}
|
|
556
|
+
*/
|
|
557
|
+
async setWriteProtect(enabled) {
|
|
558
|
+
this._requireNv();
|
|
559
|
+
await this._hvCommand(ADDR_WP, !!enabled);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
// Named aliases: one thin Minimal / Full subclass per family member (only the part is preset).
|
|
564
|
+
|
|
565
|
+
/** MCP4531 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
566
|
+
class Mcp4531Minimal extends Mcp4xxxMinimal {
|
|
567
|
+
/**
|
|
568
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
569
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
570
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
571
|
+
*/
|
|
572
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
573
|
+
super(connection, 'MCP4531', rAb, rWiper);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/** MCP4531 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
578
|
+
class Mcp4531Full extends Mcp4xxxFull {
|
|
579
|
+
/**
|
|
580
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
581
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
582
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
583
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
584
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
585
|
+
*/
|
|
586
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
587
|
+
super(connection, 'MCP4531', rAb, rWiper, hvc, hvcSettleMs);
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/** MCP4532 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
592
|
+
class Mcp4532Minimal extends Mcp4xxxMinimal {
|
|
593
|
+
/**
|
|
594
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
595
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
596
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
597
|
+
*/
|
|
598
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
599
|
+
super(connection, 'MCP4532', rAb, rWiper);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/** MCP4532 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
604
|
+
class Mcp4532Full extends Mcp4xxxFull {
|
|
605
|
+
/**
|
|
606
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
607
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
608
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
609
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
610
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
611
|
+
*/
|
|
612
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
613
|
+
super(connection, 'MCP4532', rAb, rWiper, hvc, hvcSettleMs);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/** MCP4551 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
618
|
+
class Mcp4551Minimal extends Mcp4xxxMinimal {
|
|
619
|
+
/**
|
|
620
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
621
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
622
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
623
|
+
*/
|
|
624
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
625
|
+
super(connection, 'MCP4551', rAb, rWiper);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/** MCP4551 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
630
|
+
class Mcp4551Full extends Mcp4xxxFull {
|
|
631
|
+
/**
|
|
632
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
633
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
634
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
635
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
636
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
637
|
+
*/
|
|
638
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
639
|
+
super(connection, 'MCP4551', rAb, rWiper, hvc, hvcSettleMs);
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/** MCP4552 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
644
|
+
class Mcp4552Minimal extends Mcp4xxxMinimal {
|
|
645
|
+
/**
|
|
646
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
647
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
648
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
649
|
+
*/
|
|
650
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
651
|
+
super(connection, 'MCP4552', rAb, rWiper);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
/** MCP4552 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
656
|
+
class Mcp4552Full extends Mcp4xxxFull {
|
|
657
|
+
/**
|
|
658
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
659
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
660
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
661
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
662
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
663
|
+
*/
|
|
664
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
665
|
+
super(connection, 'MCP4552', rAb, rWiper, hvc, hvcSettleMs);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/** MCP4631 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
670
|
+
class Mcp4631Minimal extends Mcp4xxxMinimal {
|
|
671
|
+
/**
|
|
672
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
673
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
674
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
675
|
+
*/
|
|
676
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
677
|
+
super(connection, 'MCP4631', rAb, rWiper);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/** MCP4631 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
682
|
+
class Mcp4631Full extends Mcp4xxxFull {
|
|
683
|
+
/**
|
|
684
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
685
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
686
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
687
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
688
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
689
|
+
*/
|
|
690
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
691
|
+
super(connection, 'MCP4631', rAb, rWiper, hvc, hvcSettleMs);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/** MCP4632 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
696
|
+
class Mcp4632Minimal extends Mcp4xxxMinimal {
|
|
697
|
+
/**
|
|
698
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
699
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
700
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
701
|
+
*/
|
|
702
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
703
|
+
super(connection, 'MCP4632', rAb, rWiper);
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/** MCP4632 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
708
|
+
class Mcp4632Full extends Mcp4xxxFull {
|
|
709
|
+
/**
|
|
710
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
711
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
712
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
713
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
714
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
715
|
+
*/
|
|
716
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
717
|
+
super(connection, 'MCP4632', rAb, rWiper, hvc, hvcSettleMs);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/** MCP4651 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
722
|
+
class Mcp4651Minimal extends Mcp4xxxMinimal {
|
|
723
|
+
/**
|
|
724
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
725
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
726
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
727
|
+
*/
|
|
728
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
729
|
+
super(connection, 'MCP4651', rAb, rWiper);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/** MCP4651 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
734
|
+
class Mcp4651Full extends Mcp4xxxFull {
|
|
735
|
+
/**
|
|
736
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
737
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
738
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
739
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
740
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
741
|
+
*/
|
|
742
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
743
|
+
super(connection, 'MCP4651', rAb, rWiper, hvc, hvcSettleMs);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
/** MCP4652 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
748
|
+
class Mcp4652Minimal extends Mcp4xxxMinimal {
|
|
749
|
+
/**
|
|
750
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
751
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
752
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
753
|
+
*/
|
|
754
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
755
|
+
super(connection, 'MCP4652', rAb, rWiper);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/** MCP4652 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
760
|
+
class Mcp4652Full extends Mcp4xxxFull {
|
|
761
|
+
/**
|
|
762
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
763
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
764
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
765
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
766
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
767
|
+
*/
|
|
768
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
769
|
+
super(connection, 'MCP4652', rAb, rWiper, hvc, hvcSettleMs);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/** MCP4541 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
774
|
+
class Mcp4541Minimal extends Mcp4xxxMinimal {
|
|
775
|
+
/**
|
|
776
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
777
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
778
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
779
|
+
*/
|
|
780
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
781
|
+
super(connection, 'MCP4541', rAb, rWiper);
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/** MCP4541 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
786
|
+
class Mcp4541Full extends Mcp4xxxFull {
|
|
787
|
+
/**
|
|
788
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
789
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
790
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
791
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
792
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
793
|
+
*/
|
|
794
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
795
|
+
super(connection, 'MCP4541', rAb, rWiper, hvc, hvcSettleMs);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/** MCP4542 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
800
|
+
class Mcp4542Minimal extends Mcp4xxxMinimal {
|
|
801
|
+
/**
|
|
802
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
803
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
804
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
805
|
+
*/
|
|
806
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
807
|
+
super(connection, 'MCP4542', rAb, rWiper);
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/** MCP4542 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
812
|
+
class Mcp4542Full extends Mcp4xxxFull {
|
|
813
|
+
/**
|
|
814
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
815
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
816
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
817
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
818
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
819
|
+
*/
|
|
820
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
821
|
+
super(connection, 'MCP4542', rAb, rWiper, hvc, hvcSettleMs);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/** MCP4561 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
826
|
+
class Mcp4561Minimal extends Mcp4xxxMinimal {
|
|
827
|
+
/**
|
|
828
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
829
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
830
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
831
|
+
*/
|
|
832
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
833
|
+
super(connection, 'MCP4561', rAb, rWiper);
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/** MCP4561 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
838
|
+
class Mcp4561Full extends Mcp4xxxFull {
|
|
839
|
+
/**
|
|
840
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
841
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
842
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
843
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
844
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
845
|
+
*/
|
|
846
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
847
|
+
super(connection, 'MCP4561', rAb, rWiper, hvc, hvcSettleMs);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/** MCP4562 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
852
|
+
class Mcp4562Minimal extends Mcp4xxxMinimal {
|
|
853
|
+
/**
|
|
854
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
855
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
856
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
857
|
+
*/
|
|
858
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
859
|
+
super(connection, 'MCP4562', rAb, rWiper);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
/** MCP4562 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
864
|
+
class Mcp4562Full extends Mcp4xxxFull {
|
|
865
|
+
/**
|
|
866
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
867
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
868
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
869
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
870
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
871
|
+
*/
|
|
872
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
873
|
+
super(connection, 'MCP4562', rAb, rWiper, hvc, hvcSettleMs);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/** MCP4641 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
878
|
+
class Mcp4641Minimal extends Mcp4xxxMinimal {
|
|
879
|
+
/**
|
|
880
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
881
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
882
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
883
|
+
*/
|
|
884
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
885
|
+
super(connection, 'MCP4641', rAb, rWiper);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/** MCP4641 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
890
|
+
class Mcp4641Full extends Mcp4xxxFull {
|
|
891
|
+
/**
|
|
892
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
893
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
894
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
895
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
896
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
897
|
+
*/
|
|
898
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
899
|
+
super(connection, 'MCP4641', rAb, rWiper, hvc, hvcSettleMs);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/** MCP4642 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
904
|
+
class Mcp4642Minimal extends Mcp4xxxMinimal {
|
|
905
|
+
/**
|
|
906
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
907
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
908
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
909
|
+
*/
|
|
910
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
911
|
+
super(connection, 'MCP4642', rAb, rWiper);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/** MCP4642 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
916
|
+
class Mcp4642Full extends Mcp4xxxFull {
|
|
917
|
+
/**
|
|
918
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
919
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
920
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
921
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
922
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
923
|
+
*/
|
|
924
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
925
|
+
super(connection, 'MCP4642', rAb, rWiper, hvc, hvcSettleMs);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
/** MCP4661 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
930
|
+
class Mcp4661Minimal extends Mcp4xxxMinimal {
|
|
931
|
+
/**
|
|
932
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
933
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
934
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
935
|
+
*/
|
|
936
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
937
|
+
super(connection, 'MCP4661', rAb, rWiper);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/** MCP4661 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
942
|
+
class Mcp4661Full extends Mcp4xxxFull {
|
|
943
|
+
/**
|
|
944
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
945
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
946
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
947
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
948
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
949
|
+
*/
|
|
950
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
951
|
+
super(connection, 'MCP4661', rAb, rWiper, hvc, hvcSettleMs);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
/** MCP4662 minimal interface: {@link Mcp4xxxMinimal} with the part preset. */
|
|
956
|
+
class Mcp4662Minimal extends Mcp4xxxMinimal {
|
|
957
|
+
/**
|
|
958
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
959
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
960
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
961
|
+
*/
|
|
962
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0) {
|
|
963
|
+
super(connection, 'MCP4662', rAb, rWiper);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
/** MCP4662 full interface: {@link Mcp4xxxFull} with the part preset. */
|
|
968
|
+
class Mcp4662Full extends Mcp4xxxFull {
|
|
969
|
+
/**
|
|
970
|
+
* @param {import('../../connection/register_connection').RegisterConnection} connection - I²C register connection.
|
|
971
|
+
* @param {number} [rAb=10000] - RAB in ohms.
|
|
972
|
+
* @param {number} [rWiper=75] - RW in ohms.
|
|
973
|
+
* @param {import('../../connection/output_pin').OutputPin|null} [hvc=null] - Optional high-voltage command pin.
|
|
974
|
+
* @param {number} [hvcSettleMs=1] - Delay in ms between asserting `hvc` and the first SCL edge.
|
|
975
|
+
*/
|
|
976
|
+
constructor(connection, rAb = 10000.0, rWiper = 75.0, hvc = null, hvcSettleMs = 1) {
|
|
977
|
+
super(connection, 'MCP4662', rAb, rWiper, hvc, hvcSettleMs);
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
module.exports = { Mcp4xxxMinimal, Mcp4xxxFull, PARTS, defaultAddress,
|
|
982
|
+
Mcp4531Minimal, Mcp4531Full, Mcp4532Minimal, Mcp4532Full, Mcp4551Minimal, Mcp4551Full, Mcp4552Minimal, Mcp4552Full, Mcp4631Minimal, Mcp4631Full, Mcp4632Minimal, Mcp4632Full, Mcp4651Minimal, Mcp4651Full, Mcp4652Minimal, Mcp4652Full, Mcp4541Minimal, Mcp4541Full, Mcp4542Minimal, Mcp4542Full, Mcp4561Minimal, Mcp4561Full, Mcp4562Minimal, Mcp4562Full, Mcp4641Minimal, Mcp4641Full, Mcp4642Minimal, Mcp4642Full, Mcp4661Minimal, Mcp4661Full, Mcp4662Minimal, Mcp4662Full };
|