src/app/host-serial/libftdi/ftdi.c
void ftdi_set_usbdev (struct ftdi_context *ftdi, libusb_device_handle *usb)
{
    if (ftdi == NULL)
        return;

    ftdi->usb_dev = usb;
}
/**
    Use an already open libusb device.

    \param ftdi pointer to ftdi_context
    \param usb libusb libusb_device_handle to use
*/
Use an already open libusb device.
\param ftdi pointer to ftdi_context
\param usb libusb libusb_device_handle to use
Use an already open libusb device . \ param ftdi pointer to ftdi_context \ param usb libusb libusb_device_handle to use
void ftdi_set_usbdev (struct ftdi_context *ftdi, libusb_device_handle *usb)
{
    if (ftdi == NULL)
        return;
    ftdi->usb_dev = usb;
}
void ftdi_set_usbdev ( struct ftdi_context * ftdi , libusb_device_handle * usb ) { if ( ftdi == NULL ) return ; ftdi -> usb_dev = usb ; }
Use an already open libusb device.
Use an already open libusb device .