根据供应商提供的文档,API 返回的状态码可以是以下任何一种。
FTC_INVALID_HANDLE
FTC_NULL_INITIAL_CONDITION_BUFFER_POINTER
FTC_INVALID_NUMBER_CONTROL_BITS
FTC_NULL_WRITE_CONTROL_BUFFER_POINTER
FTC_INVALID_NUMBER_CONTROL_BYTES
FTC_NUMBER_CONTROL_BYTES_TOO_SMALL
FTC_INVALID_NUMBER_WRITE_DATA_BITS
FTC_NULL_WRITE_DATA_BUFFER_POINTER
FTC_INVALID_NUMBER_WRITE_DATA_BYTES
FTC_NUMBER_WRITE_DATA_BYTES_TOO_SMALL
FTC_NULL_WAIT_DATA_WRITE_BUFFER_POINTER
FTC_NULL_OUTPUT_PINS_BUFFER_POINTER
FTC_INVALID_INIT_CLOCK_PIN_STATE
FTC_INVALID_FT2232D_CHIP_SELECT_PIN
FTC_INVALID_FT2232D_DATA_WRITE_COMPLETE_PIN
FTC_DATA_WRITE_COMPLETE_TIMEOUT
FTC_INVALID_CONFIGURATION_HIGHER_GPIO_PIN
FTC_FAILED_TO_COMPLETE_COMMAND
FTC_IO_ERROR
在头文件中我发现了这个:
typedef ULONG FTC_STATUS;
我想打印这些字符串。我如何在这里使用 printf ?
FTC_STATUS Status;
printf("%...", Status); //need help here