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);