FreeCalypso > hg > fc-usbser-tools
diff libuwrap/find_dev.h @ 9:ab506f6aa57c
libuwrap started
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 07 Sep 2023 04:00:56 +0000 |
parents | |
children | fe4231326fb2 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libuwrap/find_dev.h Thu Sep 07 04:00:56 2023 +0000 @@ -0,0 +1,22 @@ +/* + * This header file contains definitions and declarations related to + * functions for locating specific FTDI/CP2102/etc USB devices. + */ + +struct usbdev_matchspec { + unsigned usb_vid; + unsigned usb_pid; + char *manuf_string; + char *product_string; + char *serial; + unsigned index; +}; + +extern struct usb_device * +find_usbdev_by_matchspec(const struct usbdev_matchspec *match); + +extern struct usb_device * +find_usbdev_by_busdev(const char *bus_dev_spec); + +extern struct usb_device * +find_usbdev_by_desc_string(const char *desc_string);