Your browser does not allow scripts
Please click here to view a static table of contents without scripts
FT_SetDtr
Return to Introduction  Previous page  Next page
This function sets the Data Terminal Ready (DTR) control signal.

FT_STATUS
FT_SetDtr
(FT_HANDLE ftHandle)




Parameters
ftHandle
Handle of the device.




Return Value
FT_OK if successful, otherwise the return value is an FT error code.



Example
This sample shows how to set DTR.

FT_HANDLE ftHandle; 
FT_STATUS ftStatus;

ftStatus = FT_Open(0, &ftHandle);
if(ftStatus != FT_OK) {
   // FT_Open failed
   return;
}

ftStatus = FT_SetDtr(ftHandle);
if (ftStatus == FT_OK) {
    // FT_SetDtr OK
}
else {
    // FT_SetDtr failed
}

FT_Close(ftHandle);