Your browser does not allow scripts
Please click here to view a static table of contents without scripts
Return to Introduction  Previous page  Next page
Adds a write/read command to the internal command buffer associated with a device. This enables a programmer to build up a sequence of commands i.e. write, read and write/read before executing the sequence of commands. The internal command buffer has a size of 131070 bytes (128 kB).

(FTC_HANDLE ftHandle, BOOL bInstructionTestData, DWORD dwNumBitsToWriteRead, PWriteDataByteBuffer pWriteDataBuffer, DWORD dwNumBytesToWrite, DWORD dwTapControllerState)

Handle of the device.
Selects the instruction register (TRUE) or the test register (FALSE) to write data to.
Number of bits to be written to and read from an external device. Valid range is 2 to 524280.
Pointer to buffer that contains the data to be written to the external device.
Number of bytes in the write data buffer which contains all the specified bits to be written to the external device. Valid range is 1 to 65535 bytes.
State that the Test Access Port (TAP) controller will be left in.

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


Do not invoke JTAG_Write, JTAG_READ or JTAG_WriteRead functions while constructing a sequence of commands as this will clear the sequence of commands and associated data from the internal command buffer.

This command can be used with multiple devices connected. If only one device is connected,
JTAG_AddDeviceWriteReadCmd may be used instead.

Calling this function is equivalent to adding the commands and data from a
JTAG_WriteRead call to the internal command buffer.

This function can be used with
JTAG_ClearDeviceCmdSequence, JTAG_AddDeviceWriteCmd, JTAG_AddDeviceReadCmd and JTAG_ExecuteCmdSequence to buffer a long list of commands and data which can then be sent to the FT2232C in one go. This can provide faster data transfer rates in some applications.