Your browser does not allow scripts
Please click here to view a static table of contents without scripts
JTAG_SetLoopback
Return to Introduction  Previous page  Next page
Enables or disables loop back mode.

FTC_STATUS
JTAG_SetLoopback
(FTC_HANDLE ftHandle, BOOL bLoopbackState)




Parameters
ftHandle
Handle of the device.
bLoopbackState
Controls the state of the FT2232C device loopback, to turn loopback on (TRUE) or off (FALSE).




Return Value
FTC_SUCCESS if successful, otherwise the return value is one of the following FTC error codes:

   FTC_INVALID_HANDLE
   FTC_
FAILED_TO_COMPLETE_COMMAND
   FTC_IO_ERROR



Remarks
Loop back mode will simply return any data written to the device. Loop back mode can be enabled by setting bLoopbackState to true, or disabled by setting bLoopbackState to false. The default state for the loop back mode is disabled.



Example

FTC_STATUS Status = FTC_SUCCESS;
FTC_HANDLE ftHandle;

Status = JTAG_SetLoopback(ftHandle, true);