Your browser does not allow scripts
Please click here to view a static table of contents without scripts
FT_W32_EscapeCommFunction
Return to Introduction  Previous page  Next page
Perform an extended function.

BOOL
FT_W32_EscapeCommFunction
(FT_HANDLE ftHandle, DWORD dwFunc)




Parameters
ftHandle
Handle of the device.
dwFunc
The extended function to perform can be one of the following values:
CLRDTR  
Clear the DTR signal  
CLRRTS  
Clear the RTS signal  
SETDTR  
Set the DTR signal  
SETRTS  
Set the RTS signal  
SETBREAK  
Set the BREAK condition  
CLRBREAK  
Clear the BREAK condition  




Return Value
If the function is successful, the return value is nonzero.
If the function is unsuccessful, the return value is zero.

Example
This example shows how to use this function.

FT_HANDLE ftHandle; // setup by FT_W32_CreateFile

FT_W32_EscapeCommFunction(ftHandle,CLRDTS);
FT_W32_EscapeCommFunction(ftHandle,SETRTS);