@@ -29,13 +29,12 @@ import {
2929 COMMAND_TRANSMIT_STATUS_INFO
3030} from './defs.js'
3131
32- /** @import { SerialPort, ReadResult, TargetReadBuffer, SendBuffer, CommandOptions } from './serial.js' */
32+ /** @import { ReadResult, TargetReadBuffer, SendBuffer, CommandOptions } from './serial.js' */
3333/** @import { TransmitStatusInfo, Start, StartWithDevice, BusStatus } from './parse-buffers.js' */
3434
35-
3635export class ExcameraLabsI2CDriver {
3736 /**
38- * @param {SerialPort } port
37+ * @param {ReadableWritablePair } port
3938 * @param {CommandOptions } [options]
4039 * @returns {Promise<TransmitStatusInfo> }
4140 */
@@ -45,7 +44,7 @@ export class ExcameraLabsI2CDriver {
4544 }
4645
4746 /**
48- * @param {SerialPort } port
47+ * @param {ReadableWritablePair } port
4948 * @param {CommandOptions } [options]
5049 * @returns {Promise<any> }
5150 */
@@ -55,7 +54,7 @@ export class ExcameraLabsI2CDriver {
5554 }
5655
5756 /**
58- * @param {SerialPort } port
57+ * @param {ReadableWritablePair } port
5958 * @param {number } b
6059 * @param {CommandOptions } [options]
6160 * @returns {Promise<number> }
@@ -66,7 +65,7 @@ export class ExcameraLabsI2CDriver {
6665 }
6766
6867 /**
69- * @param {SerialPort } port
68+ * @param {ReadableWritablePair } port
7069 * @param {number } speed
7170 * @param {CommandOptions } [options]
7271 * @returns {Promise<void> }
@@ -78,7 +77,7 @@ export class ExcameraLabsI2CDriver {
7877 }
7978
8079 /**
81- * @param {SerialPort } port
80+ * @param {ReadableWritablePair } port
8281 * @param {number } dev
8382 * @param {boolean } readMode
8483 * @param {CommandOptions } [options]
@@ -92,7 +91,7 @@ export class ExcameraLabsI2CDriver {
9291 }
9392
9493 /**
95- * @param {SerialPort } port
94+ * @param {ReadableWritablePair } port
9695 * @param {number } count
9796 * @param {TargetReadBuffer } readBuffer
9897 * @param {CommandOptions } [options]
@@ -109,7 +108,7 @@ export class ExcameraLabsI2CDriver {
109108 }
110109
111110 /**
112- * @param {SerialPort } port
111+ * @param {ReadableWritablePair } port
113112 * @param {number } count
114113 * @param {SendBuffer } bufferSource
115114 * @param {CommandOptions } [options]
@@ -127,7 +126,7 @@ export class ExcameraLabsI2CDriver {
127126 }
128127
129128 /**
130- * @param {SerialPort } port
129+ * @param {ReadableWritablePair } port
131130 * @param {number } count
132131 * @param {TargetReadBuffer } readBuffer
133132 * @param {CommandOptions } [options]
@@ -138,7 +137,7 @@ export class ExcameraLabsI2CDriver {
138137 }
139138
140139 /**
141- * @param {SerialPort } port
140+ * @param {ReadableWritablePair } port
142141 * @param {CommandOptions } [options]
143142 * @returns {Promise<void> }
144143 */
@@ -147,7 +146,7 @@ export class ExcameraLabsI2CDriver {
147146 }
148147
149148 /**
150- * @param {SerialPort } port
149+ * @param {ReadableWritablePair } port
151150 * @param {CommandOptions } [options]
152151 * @returns {Promise<BusStatus> }
153152 */
@@ -157,7 +156,7 @@ export class ExcameraLabsI2CDriver {
157156 }
158157
159158 /**
160- * @param {SerialPort } port
159+ * @param {ReadableWritablePair } port
161160 * @param {number } dev
162161 * @param {number } addr
163162 * @param {number } count
@@ -171,7 +170,7 @@ export class ExcameraLabsI2CDriver {
171170 }
172171
173172 /**
174- * @param {SerialPort } port
173+ * @param {ReadableWritablePair } port
175174 * @param {CommandOptions } [options]
176175 * @returns {Promise<StartWithDevice[]> }
177176 */
@@ -181,7 +180,7 @@ export class ExcameraLabsI2CDriver {
181180 }
182181
183182 /**
184- * @param {SerialPort } port
183+ * @param {ReadableWritablePair } port
185184 * @param {CommandOptions } [options]
186185 * @returns {Promise<void> }
187186 */
@@ -190,7 +189,7 @@ export class ExcameraLabsI2CDriver {
190189 }
191190
192191 /**
193- * @param {SerialPort } port
192+ * @param {ReadableWritablePair } port
194193 * @param {CommandOptions } [options]
195194 * @returns {Promise<void> }
196195 */
@@ -199,7 +198,7 @@ export class ExcameraLabsI2CDriver {
199198 }
200199
201200 /**
202- * @param {SerialPort } port
201+ * @param {ReadableWritablePair } port
203202 * @param {CommandOptions } [options]
204203 * @returns {Promise<void> }
205204 */
@@ -208,7 +207,7 @@ export class ExcameraLabsI2CDriver {
208207 }
209208
210209 /**
211- * @param {SerialPort } port
210+ * @param {ReadableWritablePair } port
212211 * @param {CommandOptions } [options]
213212 * @returns {Promise<void> }
214213 */
@@ -217,7 +216,7 @@ export class ExcameraLabsI2CDriver {
217216 }
218217
219218 /**
220- * @param {SerialPort } port
219+ * @param {ReadableWritablePair } port
221220 * @param {number[] } commands
222221 * @param {CommandOptions } [options]
223222 * @returns {Promise<ReadResult> }
@@ -236,7 +235,7 @@ export class ExcameraLabsI2CDriver {
236235 }
237236
238237 /**
239- * @param {SerialPort } port
238+ * @param {ReadableWritablePair } port
240239 * @param {CommandOptions } [options]
241240 * @returns {Promise<void> }
242241 */
@@ -245,7 +244,7 @@ export class ExcameraLabsI2CDriver {
245244 }
246245
247246 /**
248- * @param {SerialPort } port
247+ * @param {ReadableWritablePair } port
249248 * @param {CommandOptions } [options]
250249 * @returns {Promise<void> }
251250 */
@@ -254,7 +253,9 @@ export class ExcameraLabsI2CDriver {
254253 }
255254
256255 /**
257- * @param {SerialPort } port
256+ * @param {ReadableWritablePair } port
257+ * @param {number } scl
258+ * @param {number } sda
258259 * @param {CommandOptions } [options]
259260 * @returns {Promise<void> }
260261 */
@@ -264,7 +265,7 @@ export class ExcameraLabsI2CDriver {
264265 }
265266
266267 /**
267- * @param {SerialPort } port
268+ * @param {ReadableWritablePair } port
268269 * @param {CommandOptions } [options]
269270 * @returns {Promise<void> }
270271 */
0 commit comments