Your browser does not allow scripts
Please click here to view a static table of contents without scripts
FT_SetBitMode
Return to Introduction  Previous page  Next page
Set the device IO bit mode.

FT_STATUS
FT_SetBitMode
(FT_HANDLE ftHandle, UCHAR ucMask, UCHAR ucMode)


Parameters

ftHandle
Handle of the device.

ucMask
Required value for bit mode mask. This sets up which bits are input and which bits are output. The ucMask byte sets the direction. A '0' means that the corresponding bit is to be an input, while a '1' means that the corresponding bit is to be an output.

ucMode
Mode value as shown in the following table:


Mode
Value (hex)
Reset the IO Bit Mode
0x0
Asynchronous Bit Bang Mode
0x1
MPSSE
0x2
Synchronous Bit Bang Mode
0x4
MCU Host Bus Emulation
0x8
Fast Serial For Opto-Isolation
0x10




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