annotate libuwrap/find_dev.h @ 18:fce3d4baa2b4

libftmini: implement EEPROM write
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 07 Sep 2023 22:43:53 +0000
parents fe4231326fb2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * This header file contains definitions and declarations related to
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 * functions for locating specific FTDI/CP2102/etc USB devices.
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 */
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 struct usbdev_matchspec {
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 unsigned usb_vid;
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 unsigned usb_pid;
11
fe4231326fb2 libuwrap: implement locating by description-string
Mychaela Falconia <falcon@freecalypso.org>
parents: 9
diff changeset
9 const char *manuf_string;
fe4231326fb2 libuwrap: implement locating by description-string
Mychaela Falconia <falcon@freecalypso.org>
parents: 9
diff changeset
10 const char *product_string;
fe4231326fb2 libuwrap: implement locating by description-string
Mychaela Falconia <falcon@freecalypso.org>
parents: 9
diff changeset
11 const char *serial;
9
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 unsigned index;
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 };
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 extern struct usb_device *
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 find_usbdev_by_matchspec(const struct usbdev_matchspec *match);
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 extern struct usb_device *
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 find_usbdev_by_busdev(const char *bus_dev_spec);
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 extern struct usb_device *
ab506f6aa57c libuwrap started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 find_usbdev_by_desc_string(const char *desc_string);