Your browser does not allow scripts
Please click here to view a static table of contents without scripts
FT_SetBreakOn
Return to Introduction  Previous page  Next page
Sets the BREAK condition for the device.

FT_STATUS
FT_SetBreakOn
(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 the BREAK condition for the device.

FT_HANDLE ftHandle; 
FT_STATUS ftStatus;

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

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

FT_Close(ftHandle);