Difference between revisions of "Component: FTDI (FTD2XX) (Third Party)"
From Flowcode Help
Jump to navigationJump to search(3 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
==FTDI (FTD2XX) component== | ==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. | 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 Pack== | ||
+ | |||
+ | COMMSA | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 24: | Line 36: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 43: | Line 63: | ||
|- | |- | ||
|- | |- | ||
− | | 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 76: | Line 96: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 94: | Line 114: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 127: | Line 147: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 160: | Line 180: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 193: | Line 213: | ||
|- | |- | ||
|- | |- | ||
− | | 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 216: | Line 236: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 234: | Line 254: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | DevCount | | width="90%" | DevCount | ||
|- | |- | ||
Line 252: | Line 272: | ||
|- | |- | ||
|- | |- | ||
− | | 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 280: | Line 300: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 308: | Line 328: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 361: | Line 381: | ||
| 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 379: | Line 399: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 397: | Line 417: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 415: | Line 435: | ||
|- | |- | ||
|- | |- | ||
− | | 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 438: | Line 458: | ||
|- | |- | ||
|- | |- | ||
− | | 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 461: | Line 481: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 494: | Line 514: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 512: | Line 532: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 535: | Line 555: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 558: | Line 578: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 576: | Line 596: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT |
| width="90%" | Device | | width="90%" | Device | ||
|- | |- | ||
| 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 599: | Line 619: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
Line 612: | Line 632: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 630: | Line 650: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:]] - | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG |
| width="90%" | Handle | | width="90%" | Handle | ||
|- | |- | ||
Line 674: | Line 694: | ||
|- | |- | ||
| colspan="2" | A text label for the component's panel component. | | colspan="2" | A text label for the component's panel component. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |
Latest revision as of 17:26, 9 November 2022
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.
Component Pack
COMMSA
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. |