Difference between revisions of "Component: FTDI (FTD2XX) (Third Party)"
From Flowcode Help
Jump to navigationJump to search| Line 16: | Line 16: | ||
==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| Line 26: | Line 28: | ||
==Examples== | ==Examples== | ||
| + | |||
| + | |||
| Line 47: | Line 51: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| colspan="2" | Handle of the device. | | colspan="2" | Handle of the device. | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | RxQueueLength | | width="90%" | RxQueueLength | ||
|- | |- | ||
| colspan="2" | Pointer to a variable of type DWORD which receives the number of characters in the receive queue. | | colspan="2" | Pointer to a variable of type DWORD which receives the number of characters in the receive queue. | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | TxQueueLength | | width="90%" | TxQueueLength | ||
|- | |- | ||
| colspan="2" | Pointer to a variable of type DWORD which receives the number of characters in the transmit queue. | | colspan="2" | Pointer to a variable of type DWORD which receives the number of characters in the transmit queue. | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | EventStatus | | width="90%" | EventStatus | ||
|- | |- | ||
| Line 80: | Line 84: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 98: | Line 102: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 131: | Line 135: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 164: | Line 168: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 197: | Line 201: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| colspan="2" | Handle of the device. | | colspan="2" | Handle of the device. | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | ModemStatus | | width="90%" | ModemStatus | ||
|- | |- | ||
| Line 220: | Line 224: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 238: | Line 242: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | DevCount | | width="90%" | DevCount | ||
|- | |- | ||
| Line 256: | Line 260: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| colspan="2" | Handle of the device. | | colspan="2" | Handle of the device. | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | ReadTimeout | | width="90%" | ReadTimeout | ||
|- | |- | ||
| colspan="2" | Read timeout in milliseconds. | | colspan="2" | Read timeout in milliseconds. | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | WriteTimeout | | width="90%" | WriteTimeout | ||
|- | |- | ||
| Line 284: | Line 288: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 312: | Line 316: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 365: | Line 369: | ||
| colspan="2" | Pointer to buffer to store device description as a null-terminated string | | colspan="2" | Pointer to buffer to store device description as a null-terminated string | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | TempHandle | | width="90%" | TempHandle | ||
|- | |- | ||
| Line 383: | Line 387: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 401: | Line 405: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 419: | Line 423: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| colspan="2" | Handle of the device. | | colspan="2" | Handle of the device. | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Mask | | width="90%" | Mask | ||
|- | |- | ||
| Line 442: | Line 446: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| colspan="2" | Handle of the device. | | colspan="2" | Handle of the device. | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | RxQueueLength | | width="90%" | RxQueueLength | ||
|- | |- | ||
| Line 465: | Line 469: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 498: | Line 502: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 516: | Line 520: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 539: | Line 543: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 562: | Line 566: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 585: | Line 589: | ||
| colspan="2" | Index of the device to open. Indices are 0 based. | | colspan="2" | Index of the device to open. Indices are 0 based. | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | ft_Handle | | width="90%" | ft_Handle | ||
|- | |- | ||
| Line 616: | Line 620: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
| Line 634: | Line 638: | ||
|- | |- | ||
|- | |- | ||
| − | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Revision as of 14:44, 17 December 2021
| Author | Matrix Ltd |
| Version | 1.0 |
| Category | Third Party |
Contents
FTDI (FTD2XX) component
Simulation only interface to allow communications with a FTDI USB 232 IC connected to the system. For more details refer to the D2XX_Programmers_Guide from FTDI.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
| FT_ClrRts | |
| This function clears the Request To Send (RTS) control signal. | |
| Handle | |
| Handle of the device. | |
| Return | |
| FT_SetBreakOn | |
| Sets the BREAK condition for the device. | |
| Handle | |
| Handle of the device. | |
| Return | |
| FT_SetRts | |
| This function sets the Request To Send (RTS) control signal. | |
| Handle | |
| Handle of the device. | |
| Return | |
| FT_Close | |
| Close an open device. | |
| Handle | |
| Handle of the device. | |
| Return | |
| FT_ClrDtr | |
| This function clears the Data Terminal Ready (DTR) control signal. | |
| Handle | |
| Handle of the device. | |
| Return | |
| FT_Purge | |
| This function purges receive and transmit buffers in the device. | |
| Handle | |
| Handle of the device. | |
| Mask | |
| Used to determine which buffer to purge, 1=Rx / 2=Tx / 3=Both | |
| Return | |
| FT_SetBreakOff | |
| Resets the BREAK condition for the device. | |
| Handle | |
| Handle of the device. | |
| Return | |
| FT_SetDivisor | |
| This function sets the baud rate for the device. It is used to set non-standard baud rates. | |
| Handle | |
| Handle of the device. | |
| Divisor | |
| Divisor. | |
| Return | |
| FT_SetBaudRate | |
| This function sets the baud rate for the device. | |
| Handle | |
| Handle of the device. | |
| BaudRate | |
| Baud rate. | |
| Return | |
| FT_SetDtr | |
| This function sets the Data Terminal Ready (DTR) control signal. | |
| Handle | |
| Handle of the device. | |
| Return | |
| ScanFor232 | |
| Scans for a FTDI D2XX device, returnes true if at least one device was found. | |
| Return | |
| FT_ResetDevice | |
| This function sends a reset command to the device. | |
| Handle | |
| Handle of the device. | |
| Return | |
Property reference
| Properties | |
| Label | |
| A text label for the component's panel component. | |
| Connections | |
| Simulations | |