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

Ajay is a professional developer and architect of NI-LabVIEW applications with extreme interest in getting the hardware connected to LabVIEW and automating the stuff. Recently he is also putting his hands in NI-TestStand to get very dirty on it. He is also a good mentor for the various interns in his career. He is ready to help the people in techie roles.