pub unsafe extern "C" fn FT_SetBitMode(
    ftHandle: FT_HANDLE,
    ucMask: UCHAR,
    ucEnable: UCHAR
) -> FT_STATUS
Expand description

@noop FT_SetBitMode @par Supported Operating Systems Linux Mac OS X (10.4 and later) Windows (2000 and later) Windows CE (4.2 and later) @par Summary Enables different chip modes. @param ftHandle Handle of the device. @param ucMask Required value for bit mode mask. This sets up which bits are inputs and outputs. A bit value of 0 sets the corresponding pin to an input, a bit value of 1 sets the corresponding pin to an output. @n In the case of CBUS Bit Bang, the upper nibble of this value controls which pins are inputs and outputs, while the lower nibble controls which of the outputs are high and low. @param ucEnable Mode value. Can be one of the following: @li 0x0 = Reset @li 0x1 = Asynchronous Bit Bang @li 0x2 = MPSSE (FT2232, FT2232H, FT4232H and FT232H devices only) @li 0x4 = Synchronous Bit Bang (FT232R, FT245R, FT2232, FT2232H, FT4232H and FT232H devices only) @li 0x8 = MCU Host Bus Emulation Mode (FT2232, FT2232H, FT4232H and FT232H devices only) @li 0x10 = Fast Opto-Isolated Serial Mode (FT2232, FT2232H, FT4232H and FT232H devices only) @li 0x20 = CBUS Bit Bang Mode (FT232R and FT232H devices only) @li 0x40 = Single Channel Synchronous 245 FIFO Mode (FT2232H and FT232H devices only) @returns FT_OK if successful, otherwise the return value is an FT error code. @remarks For a description of available bit modes for the FT232R, see the application note “Bit Bang Modes for the FT232R and FT245R”. @n For a description of available bit modes for the FT2232, see the application note “Bit Mode Functions for the FT2232”. @n For a description of Bit Bang Mode for the FT232B and FT245B, see the application note “FT232B/FT245B Bit Bang Mode”. @n Application notes are available for download from the FTDI website. Note that to use CBUS Bit Bang for the FT232R, the CBUS must be configured for CBUS Bit Bang in the EEPROM. @note Note that to use Single Channel Synchronous 245 FIFO mode for the FT2232H, channel A must be configured for FT245 FIFO mode in the EEPROM.