I want to list FTDI ports with their description, here is my program:
Код: Выделить всё
#include
#include "ftd2xx.h"
int main( int argc, char* argv[] )
{
DWORD numDevs = 0, i = 0;
FT_DEVICE_LIST_INFO_NODE *ftDevList = NULL;
FT_STATUS ftStatus;
/* Get the number of FTDI D2XX devices connected to the system.
* This also trigs in the driver the creation of a list which we later get
* using FT_GetDeviceInfoList(). */
if( (ftStatus = FT_CreateDeviceInfoList(&numDevs)) != FT_OK )
{
std::cout
Источник: [url]https://stackoverflow.com/questions/62283823/can-ftdi-device-port-number-be-known-without-opening-the-connection[/url]