5000 series error codes in FT4222 Library

Most of the error code from FTDI library is generated from actual LibFT4222 driver DLL. Below table explains the error code equivalent match between those.

Refer below docs for more details from FTDI.

FT4222 LabVIEW Error CodesError Description (Equivalent to LibFT4222 DLL)
5101FT_OK
5102FT_INVALID_HANDLE
5103FT_DEVICE_NOT_FOUND
5104FT_DEVICE_NOT_OPENED
5105FT_IO_ERROR
5106FT_INSUFFICIENT_RESOURCES
5107FT_INVALID_PARAMETER
5108FT_INVALID_BAUD_RATE
5109FT_DEVICE_NOT_OPENED_FOR_ERASE
5110FT_DEVICE_NOT_OPENED_FOR_WRITE
5111FT_FAILED_TO_WRITE_DEVICE
5112FT_EEPROM_READ_FAILED
5113FT_EEPROM_WRITE_FAILED
5114FT_EEPROM_ERASE_FAILED
5115FT_EEPROM_NOT_PRESENT
5116FT_EEPROM_NOT_PROGRAMMED
5117FT_INVALID_ARGS
5118FT_NOT_SUPPORTED
5119FT_OTHER_ERROR
5121FT4222_DEVICE_NOT_SUPPORTED
5122FT4222_CLK_NOT_SUPPORTED // spi master do not support 80MHz/CLK_2
5123FT4222_VENDER_CMD_NOT_SUPPORTED
5124FT4222_IS_NOT_SPI_MODE
5125FT4222_IS_NOT_I2C_MODE
5126FT4222_IS_NOT_SPI_SINGLE_MODE
5127FT4222_IS_NOT_SPI_MULTI_MODE
5128FT4222_WRONG_I2C_ADDR
5129FT4222_INVAILD_FUNCTION
5130FT4222_INVALID_POINTER
5131FT4222_EXCEEDED_MAX_TRANSFER_SIZE
5132FT4222_FAILED_TO_READ_DEVICE
5133FT4222_I2C_NOT_SUPPORTED_IN_THIS_MODE
5134FT4222_GPIO_NOT_SUPPORTED_IN_THIS_MODE
5135FT4222_GPIO_EXCEEDED_MAX_PORTNUM
5136FT4222_GPIO_WRITE_NOT_SUPPORTED
5137FT4222_GPIO_PULLUP_INVALID_IN_INPUTMODE
5138FT4222_GPIO_PULLDOWN_INVALID_IN_INPUTMODE
5139FT4222_GPIO_OPENDRAIN_INVALID_IN_OUTPUTMODE
5140FT4222_INTERRUPT_NOT_SUPPORTED
5141FT4222_GPIO_INPUT_NOT_SUPPORTED
5142FT4222_EVENT_NOT_SUPPORTED
5143FT4222_FUN_NOT_SUPPORT
LabVIEW Error codes equivalent of LibFT4222 DLL

Ajay is a professional developer and architect of LabVIEW applications with extreme interest in getting the hardware connected to LabVIEW and automate the stuffs.  He is also a good mentor for the various interns in his career.  He is ready to help the people in techie roles.

Leave a Reply

Your email address will not be published. Required fields are marked *