You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Sets the latency timer value (supported devices only)
157
-
* @param timer Latency timer value, in milliseconds. Valid range is 2 to 255.
158
-
*/
159
-
setLatencyTimer(timer: number): void;
160
-
161
-
/** Enables different chip modes (puts the device in a mode other than the default UART or FIFO mode).
162
-
* @param mask Bit mode mask
163
-
* Sets up which bits are inputs and which are outputs.
164
-
* A bit value of 0 sets the corresponding pin to an input, a bit value of 1 sets the corresponding pin to an output.
165
-
* In the case of CBUS Bit Bang, the upper nibble of this value controls which pins are inputs and outputs, while the lower nibble controls which of the outputs are high and low.
166
-
* @param bit_mode Mode value. Can be one of the following:
167
-
* For FT232H devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG, FT_BIT_MODE_MPSSE, FT_BIT_MODE_SYNC_BITBANG, FT_BIT_MODE_CBUS_BITBANG, FT_BIT_MODE_MCU_HOST, FT_BIT_MODE_FAST_SERIAL, FT_BIT_MODE_SYNC_FIFO.
168
-
* For FT2232H devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG, FT_BIT_MODE_MPSSE, FT_BIT_MODE_SYNC_BITBANG, FT_BIT_MODE_MCU_HOST, FT_BIT_MODE_FAST_SERIAL, FT_BIT_MODE_SYNC_FIFO.
169
-
* For FT4232H devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG, FT_BIT_MODE_MPSSE, FT_BIT_MODE_SYNC_BITBANG.
170
-
* For FT232R devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG, FT_BIT_MODE_SYNC_BITBANG, FT_BIT_MODE_CBUS_BITBANG.
171
-
* For FT245R devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG, FT_BIT_MODE_SYNC_BITBANG.
172
-
* For FT2232 devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG, FT_BIT_MODE_MPSSE, FT_BIT_MODE_SYNC_BITBANG, FT_BIT_MODE_MCU_HOST, FT_BIT_MODE_FAST_SERIAL.
173
-
* For FT232B and FT245B devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG.
174
-
*/
175
-
setBitMode(mask: number,bit_mode: number): void;
176
-
177
156
/** Sets the Data Terminal Ready (DTR) control signal */
178
157
setDtr(): void;
179
158
@@ -209,6 +188,41 @@ declare class FTDI_Device {
209
188
210
189
/** Erases the device EEPROM */
211
190
eraseEE(): Promise<void>;
191
+
192
+
/** Sets the latency timer value (supported devices only)
193
+
* @param timer Latency timer value, in milliseconds. Valid range is 2 to 255.
194
+
*/
195
+
setLatencyTimer(timer: number): void;
196
+
197
+
/** Enables different chip modes (puts the device in a mode other than the default UART or FIFO mode).
198
+
* @param mask Bit mode mask
199
+
* Sets up which bits are inputs and which are outputs.
200
+
* A bit value of 0 sets the corresponding pin to an input, a bit value of 1 sets the corresponding pin to an output.
201
+
* In the case of CBUS Bit Bang, the upper nibble of this value controls which pins are inputs and outputs, while the lower nibble controls which of the outputs are high and low.
202
+
* @param bit_mode Mode value. Can be one of the following:
203
+
* For FT232H devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG, FT_BIT_MODE_MPSSE, FT_BIT_MODE_SYNC_BITBANG, FT_BIT_MODE_CBUS_BITBANG, FT_BIT_MODE_MCU_HOST, FT_BIT_MODE_FAST_SERIAL, FT_BIT_MODE_SYNC_FIFO.
204
+
* For FT2232H devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG, FT_BIT_MODE_MPSSE, FT_BIT_MODE_SYNC_BITBANG, FT_BIT_MODE_MCU_HOST, FT_BIT_MODE_FAST_SERIAL, FT_BIT_MODE_SYNC_FIFO.
205
+
* For FT4232H devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG, FT_BIT_MODE_MPSSE, FT_BIT_MODE_SYNC_BITBANG.
206
+
* For FT232R devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG, FT_BIT_MODE_SYNC_BITBANG, FT_BIT_MODE_CBUS_BITBANG.
207
+
* For FT245R devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG, FT_BIT_MODE_SYNC_BITBANG.
208
+
* For FT2232 devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG, FT_BIT_MODE_MPSSE, FT_BIT_MODE_SYNC_BITBANG, FT_BIT_MODE_MCU_HOST, FT_BIT_MODE_FAST_SERIAL.
209
+
* For FT232B and FT245B devices, valid values are FT_BIT_MODE_RESET, FT_BIT_MODE_ASYNC_BITBANG.
210
+
*/
211
+
setBitMode(mask: number,bit_mode: number): void;
212
+
213
+
/** Sets the USB request transfer size
214
+
*
215
+
* This function can be used to change the transfer sizes from the default transfer size of 4096 bytes to
216
+
* better suit the application requirements. Transfer sizes must be set to a multiple of 64 bytes between 64
217
+
* bytes and 64k bytes.
218
+
* When FT_SetUSBParameters is called, the change comes into effect immediately and any data that was
219
+
* held in the driver at the time of the change is lost.
220
+
* Note that, at present, only `in_transfer_size` is supported by the FTDI vendor driver.
221
+
*
222
+
* @param in_transfer_size Transfer size in bits for USB IN request
223
+
* @param out_transfer_size Transfer size in bits for USB OUT request (unsupported yet)
0 commit comments