src/app/host-serial/libftdi/ftdi.c
int ftdi_usb_open_desc(struct ftdi_context *ftdi, int vendor, int product,
                       const char* description, const char* serial)
{
    return ftdi_usb_open_desc_index(ftdi,vendor,product,description,serial,0);
}
/**
    Opens the first device with a given, vendor id, product id,
    description and serial.

    \param ftdi pointer to ftdi_context
    \param vendor Vendor ID
    \param product Product ID
    \param description Description to search for. Use NULL if not needed.
    \param serial Serial to search for. Use NULL if not needed.

    \retval  0: all fine
    \retval -3: usb device not found
    \retval -4: unable to open device
    \retval -5: unable to claim device
    \retval -6: reset failed
    \retval -7: set baudrate failed
    \retval -8: get product description failed
    \retval -9: get serial number failed
    \retval -12: libusb_get_device_list() failed
    \retval -13: libusb_get_device_descriptor() failed
*/
Opens the first device with a given, vendor id, product id,
description and serial.

\param ftdi pointer to ftdi_context
\param vendor Vendor ID
\param product Product ID
\param description Description to search for. Use NULL if not needed.
\param serial Serial to search for. Use NULL if not needed.


Opens the first device with a given vendor id product id description and serial . \ param ftdi pointer to ftdi_context \ param vendor Vendor ID \ param product Product ID \ param description Description to search for . Use NULL if not needed . \ param serial Serial to search for . Use NULL if not needed .
int ftdi_usb_open_desc(struct ftdi_context *ftdi, int vendor, int product,
                       const char* description, const char* serial)
{
    return ftdi_usb_open_desc_index(ftdi,vendor,product,description,serial,0);
}
int ftdi_usb_open_desc ( struct ftdi_context * ftdi , int vendor , int product , const char * description , const char * serial ) { return ftdi_usb_open_desc_index ( ftdi , vendor , product , description , serial , 0 ) ; }
Opens the first device with a given, vendor id, product id,
description and serial.
Opens the first device with a given vendor id product id description and serial .