OpenOCD
|
Device discovery (USB). More...
Go to the source code of this file.
Functions | |
static bool | compare_devices (const void *a, const void *b) |
JAYLINK_PRIV int | discovery_usb_scan (struct jaylink_context *ctx) |
static struct jaylink_device * | find_device (const struct jaylink_context *ctx, const struct libusb_device *usb_dev) |
static bool | parse_serial_number (const char *str, uint32_t *serial_number) |
static struct jaylink_device * | probe_device (struct jaylink_context *ctx, struct libusb_device *usb_dev) |
Device discovery (USB).
Definition in file discovery_usb.c.
|
static |
Definition at line 104 of file discovery_usb.c.
References jaylink_device::iface, and JAYLINK_HIF_USB.
Referenced by find_device().
JAYLINK_PRIV int discovery_usb_scan | ( | struct jaylink_context * | ctx | ) |
Definition at line 250 of file discovery_usb.c.
References devs, jaylink_context::discovered_devs, JAYLINK_ERR, JAYLINK_ERR_IO, JAYLINK_OK, list_prepend(), log_dbg(), log_err(), and probe_device().
Referenced by jaylink_discovery_scan().
|
static |
Definition at line 121 of file discovery_usb.c.
References compare_devices(), list::data, jaylink_context::devs, list_find_custom(), and NULL.
Referenced by probe_device().
|
static |
Definition at line 84 of file discovery_usb.c.
References JAYLINK_OK, jaylink_parse_serial_number(), and length.
Referenced by probe_device().
|
static |
Definition at line 134 of file discovery_usb.c.
References device_allocate(), find_device(), jaylink_device::has_serial_number, jaylink_device::iface, JAYLINK_HIF_USB, jaylink_ref_device(), log_dbg(), log_warn(), NULL, parse_serial_number(), serial_number, jaylink_device::serial_number, and usb_address.
Referenced by discovery_usb_scan().