X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi.h;h=126c85a9c7a21600447f1e2f8e84f0c415d2ff04;hp=1040e2e76b98e551487c980ea8a03286b6b55fc1;hb=677f70b273f0ab9b8debec5921cf93e0679ec8eb;hpb=9bec2387b04ac85385ff019fa1a4cf7bbe9491cf diff --git a/src/ftdi.h b/src/ftdi.h index 1040e2e..126c85a 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -112,7 +112,7 @@ enum ftdi_interface { #define SIO_RTS_CTS_HS (0x1 << 8) /** - Main context structure for all libftdi functions. + \brief Main context structure for all libftdi functions. Do not access directly if possible. */ @@ -161,7 +161,7 @@ struct ftdi_context { }; /** - Single linked list of usb devices created by ftdi_usb_find_all() + \brief list of usb devices created by ftdi_usb_find_all() */ struct ftdi_device_list { /// pointer to next entry @@ -171,7 +171,7 @@ struct ftdi_device_list { }; /** - FTDI eeprom structure + \brief FTDI eeprom structure */ struct ftdi_eeprom { /// vendor id @@ -223,6 +223,10 @@ extern "C" { int ftdi_usb_find_all(struct ftdi_context *ftdi, struct ftdi_device_list **devlist, int vendor, int product); void ftdi_list_free(struct ftdi_device_list **devlist); + int ftdi_usb_get_strings(struct ftdi_context *ftdi, struct usb_device *dev, + char * manufacturer, int mnf_len, + char * description, int desc_len, + char * serial, int serial_len); int ftdi_usb_open(struct ftdi_context *ftdi, int vendor, int product); int ftdi_usb_open_desc(struct ftdi_context *ftdi, int vendor, int product,