Component: FTDI (FTD2XX) (Third Party): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (One intermediate revision by the same user not shown) | |||
| Line 95: | Line 95: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_Close''' | ||
|- | |- | ||
| colspan="2" | Close an open device. | | colspan="2" | Close an open device. | ||
| Line 114: | Line 114: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_ClrDtr''' | ||
|- | |- | ||
| colspan="2" | This function clears the Data Terminal Ready (DTR) control signal. | | colspan="2" | This function clears the Data Terminal Ready (DTR) control signal. | ||
| Line 133: | Line 133: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_ClrRts''' | ||
|- | |- | ||
| colspan="2" | This function clears the Request To Send (RTS) control signal. | | colspan="2" | This function clears the Request To Send (RTS) control signal. | ||
| Line 152: | Line 152: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_CreateDeviceInfoList''' | ||
|- | |- | ||
| colspan="2" | This function builds a device information list and returns the number of D2XX devices connected to the system. The list contains information about both unopen and open devices. | | colspan="2" | This function builds a device information list and returns the number of D2XX devices connected to the system. The list contains information about both unopen and open devices. | ||
| Line 171: | Line 171: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_GetDeviceInfoDetail''' | ||
|- | |- | ||
| colspan="2" | This function returns an entry from the device information list. | | colspan="2" | This function returns an entry from the device information list. | ||
| Line 225: | Line 225: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_GetModemStatus''' | ||
|- | |- | ||
| colspan="2" | Gets the modem status and line status from the device. | | colspan="2" | Gets the modem status and line status from the device. | ||
| Line 249: | Line 249: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_GetQueueStatus''' | ||
|- | |- | ||
| colspan="2" | Gets the number of bytes in the receive queue. | | colspan="2" | Gets the number of bytes in the receive queue. | ||
| Line 273: | Line 273: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_GetStatus''' | ||
|- | |- | ||
| colspan="2" | Gets the device status including number of characters in the receive queue, number of characters in the transmit queue, and the current event status. | | colspan="2" | Gets the device status including number of characters in the receive queue, number of characters in the transmit queue, and the current event status. | ||
| Line 307: | Line 307: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_Open''' | ||
|- | |- | ||
| colspan="2" | Open the device and return a handle which will be used for subsequent accesses. | | colspan="2" | Open the device and return a handle which will be used for subsequent accesses. | ||
| Line 331: | Line 331: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_Purge''' | ||
|- | |- | ||
| colspan="2" | This function purges receive and transmit buffers in the device. | | colspan="2" | This function purges receive and transmit buffers in the device. | ||
| Line 355: | Line 355: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_Read''' | ||
|- | |- | ||
| colspan="2" | Read data from the device. | | colspan="2" | Read data from the device. | ||
| Line 389: | Line 389: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_ResetDevice''' | ||
|- | |- | ||
| colspan="2" | This function sends a reset command to the device. | | colspan="2" | This function sends a reset command to the device. | ||
| Line 408: | Line 408: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_SetBaudRate''' | ||
|- | |- | ||
| colspan="2" | This function sets the baud rate for the device. | | colspan="2" | This function sets the baud rate for the device. | ||
| Line 432: | Line 432: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_SetBitMode''' | ||
|- | |- | ||
| colspan="2" | Enables different chip modes. | | colspan="2" | Enables different chip modes. | ||
| Line 461: | Line 461: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_SetBreakOff''' | ||
|- | |- | ||
| colspan="2" | Resets the BREAK condition for the device. | | colspan="2" | Resets the BREAK condition for the device. | ||
| Line 480: | Line 480: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_SetBreakOn''' | ||
|- | |- | ||
| colspan="2" | Sets the BREAK condition for the device. | | colspan="2" | Sets the BREAK condition for the device. | ||
| Line 499: | Line 499: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_SetChars''' | ||
|- | |- | ||
| colspan="2" | This function sets the special characters for the device. | | colspan="2" | This function sets the special characters for the device. | ||
| Line 538: | Line 538: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_SetDataCharacteristics''' | ||
|- | |- | ||
| colspan="2" | This function sets the data characteristics for the device. | | colspan="2" | This function sets the data characteristics for the device. | ||
| Line 572: | Line 572: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_SetDivisor''' | ||
|- | |- | ||
| colspan="2" | This function sets the baud rate for the device. It is used to set non-standard baud rates. | | colspan="2" | This function sets the baud rate for the device. It is used to set non-standard baud rates. | ||
| Line 596: | Line 596: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_SetDtr''' | ||
|- | |- | ||
| colspan="2" | This function sets the Data Terminal Ready (DTR) control signal. | | colspan="2" | This function sets the Data Terminal Ready (DTR) control signal. | ||
| Line 615: | Line 615: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_SetFlowControl''' | ||
|- | |- | ||
| colspan="2" | This function sets the flow control for the device. | | colspan="2" | This function sets the flow control for the device. | ||
| Line 649: | Line 649: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_SetRts''' | ||
|- | |- | ||
| colspan="2" | This function sets the Request To Send (RTS) control signal. | | colspan="2" | This function sets the Request To Send (RTS) control signal. | ||
| Line 668: | Line 668: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_SetTimeouts''' | ||
|- | |- | ||
| colspan="2" | This function sets the read and write timeouts for the device. | | colspan="2" | This function sets the read and write timeouts for the device. | ||
| Line 697: | Line 697: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FT_Write''' | ||
|- | |- | ||
| colspan="2" | Write data to the device. | | colspan="2" | Write data to the device. | ||
| Line 731: | Line 731: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ScanFor232''' | ||
|- | |- | ||
| colspan="2" | Scans for a FTDI D2XX device, returnes true if at least one device was found. | | colspan="2" | Scans for a FTDI D2XX device, returnes true if at least one device was found. | ||
| Line 745: | Line 745: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:23, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.0 |
| Category | Third Party |
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.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ftd2xx_232.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_ftd2xx_232.fcsx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
FT_Close
| FT_Close | |
| Close an open device. | |
| Handle | |
| Handle of the device. | |
| Return | |
FT_ClrDtr
| FT_ClrDtr | |
| This function clears the Data Terminal Ready (DTR) control signal. | |
| Handle | |
| Handle of the device. | |
| Return | |
FT_ClrRts
| FT_ClrRts | |
| This function clears the Request To Send (RTS) control signal. | |
| Handle | |
| Handle of the device. | |
| Return | |
FT_CreateDeviceInfoList
FT_GetDeviceInfoDetail
FT_GetModemStatus
FT_GetQueueStatus
FT_GetStatus
FT_Open
FT_Purge
| 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_Read
FT_ResetDevice
| FT_ResetDevice | |
| This function sends a reset command to the device. | |
| Handle | |
| Handle of the device. | |
| Return | |
FT_SetBaudRate
| FT_SetBaudRate | |
| This function sets the baud rate for the device. | |
| Handle | |
| Handle of the device. | |
| BaudRate | |
| Baud rate. | |
| Return | |
FT_SetBitMode
FT_SetBreakOff
| FT_SetBreakOff | |
| Resets the BREAK condition for the device. | |
| Handle | |
| Handle of the device. | |
| Return | |
FT_SetBreakOn
| FT_SetBreakOn | |
| Sets the BREAK condition for the device. | |
| Handle | |
| Handle of the device. | |
| Return | |
FT_SetChars
FT_SetDataCharacteristics
FT_SetDivisor
| 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_SetDtr
| FT_SetDtr | |
| This function sets the Data Terminal Ready (DTR) control signal. | |
| Handle | |
| Handle of the device. | |
| Return | |
FT_SetFlowControl
FT_SetRts
| FT_SetRts | |
| This function sets the Request To Send (RTS) control signal. | |
| Handle | |
| Handle of the device. | |
| Return | |
FT_SetTimeouts
FT_Write
ScanFor232
| ScanFor232 | |
| Scans for a FTDI D2XX device, returnes true if at least one device was found. | |
| Return | |
Property reference
| Properties | |
| Label | |
| A text label for the component's panel component. | |