ftvspcPortEventOpen |
0 |
The port has been opened by third-party serial application. ulValue contains pointer to FTVSPC_APP structure (this value is valid inside event handler only). Event handler must return 0. |
ftvspcPortEventOpenBeforeAttach |
1 |
The port has been opened by third-party serial application before your program calls FtVspcAttach. ulValue contains pointer to FTVSPC_APP structure (this value is valid inside event handler only). Event handler must return 0. |
ftvspcPortEventQueryOpen |
2 |
This event appears when third-party serial application tries to open virtual COM. The event fires only if bQueryOpen parameter of FtVspcCreatePort is set to TRUE. The event handler should decide whether to allow opening a COM port or not to the serial application. ulValue = PID of the serial application. Event handler should return 0 if the serial application is not allowed to open the COM port, otherwise it should return non-zero value. |
ftvspcPortEventClose |
3 |
The port has been closed by serial application. ulValue is not used. Event handler must return 0. |
ftvspcPortEventRxChar |
4 |
The data has been written to the port. ulValue is not used. Use FtVspcGetInQueueBytes to retrieve the number of bytes available for reading. Event handler must return 0. |
ftvspcPortEventDtr |
5 |
DTR signal has been changed. ulValue contains new signal value (0 - the signal is reset, otherwise the signal is set). Event handler must return 0. |
ftvspcPortEventRts |
6 |
RTS signal has been changed. ulValue contains new signal value (0 - the signal is reset, otherwise the signal is set). Event handler must return 0. |
ftvspcPortEventBaudRate |
7 |
Baudrate communications parameter has been set. ulValue contains baudrate value. Event handler must return 0. |
ftvspcPortEventDataBits |
8 |
DataBits communications parameter has been set. ulValue contains databits value (refer to FtVspc_DataBits). Event handler must return 0. |
ftvspcPortEventParity |
9 |
Parity communications parameter has been set. ulValue contains parity value (refer to FtVspc_Parity). Event handler must return 0. |
ftvspcPortEventStopBits |
10 |
StopBits communications parameter has been set. ulValue contains stopbits value (refer to FtVspc_StopBits). Event handler must return 0. |
ftvspcPortEventBreak |
11 |
Break flag has been changed. ulValue contains new flag value: 0 - the flag has been cleared - ClearCommBreak(), otherwise the flag has been set - SetCommBreak(). Event handler must return 0. |
ftvspcPortEventPurge |
12 |
Serial application purged all data in input and output queues. ulValue contains value of dwFlags parameter passed to PurgeComm(). Event handler must return 0. |
ftvspcPortEventXonLim |
13 |
XONLIM value has been set. ulValue contains new XONLIM value. Event handler must return 0. |
ftvspcPortEventXoffLim |
14 |
XOFFLIM value has been set. ulValue contains new XOFFLIM value. Event handler must return 0. |
ftvspcPortEventXonChar |
15 |
XON character has been set. ulValue contains XON character. Event handler must return 0. |
ftvspcPortEventXoffChar |
16 |
XOFF character has been set. ulValue contains XOFF character. Event handler must return 0. |
ftvspcPortEventErrorChar |
17 |
ERROR character has been set. ulValue contains ERROR character. Event handler must return 0. |
ftvspcPortEventEofChar |
18 |
EOF character has been set. ulValue contains EOF character. Event handler must return 0. |
ftvspcPortEventEvtChar |
19 |
EVENT character has been set. ulValue contains EVENT character. Event handler must return 0. |
ftvspcPortEventBreakChar |
20 |
BREAK character has been set. ulValue contains BREAK character. Event handler must return 0. |
ftvspcPortEventTimeouts |
21 |
Timeouts value has been set. ulValue contains pointer to COMMTIMEOUTS structure. Event handler must return 0. |
ftvspcPortEventOutxCtsFlow |
22 |
fOutxCtsFlow flag has been changed. ulValue contains new flag value. Event handler must return 0. |
ftvspcPortEventOutxDsrFlow |
23 |
fOutxDsrFlow flag has been changed. ulValue contains new flag value. Event handler must return 0. |
ftvspcPortEventDtrControl |
24 |
fDtrControl flag has been changed. ulValue contains new flag value. Event handler must return 0. |
ftvspcPortEventDsrSensitivity |
25 |
fDsrSensitivity flag has been changed. ulValue contains new flag value. Event handler must return 0. |
ftvspcPortEventTXContinueOnXoff |
26 |
fTXContinueOnXoff flag has been changed. ulValue contains new flag value. Event handler must return 0. |
ftvspcPortEventOutX |
27 |
fOutX flag has been changed. ulValue contains new flag value. Event handler must return 0. |
ftvspcPortEventInX |
28 |
fInX flag has been changed. ulValue contains new flag value. Event handler must return 0. |
ftvspcPortEventNull |
29 |
fNull flag has been changed. ulValue contains new flag value. Event handler must return 0. |
ftvspcPortEventRtsControl |
30 |
fRtsControl flag has been changed. ulValue contains new flag value. Event handler must return 0. |
ftvspcPortEventAbortOnError |
31 |
fAbortOnError flag has been changed. ulValue contains new flag value. Event handler must return 0. |
ftvspcPortEventUseErrorChar |
32 |
UseErrorChar flag has been changed. ulValue contains new flag value. Event handler must return 0. |