OpenOCD
|
Device discovery. More...
Go to the source code of this file.
Functions | |
static void | clear_discovery_list (struct jaylink_context *ctx) |
JAYLINK_API int | jaylink_discovery_scan (struct jaylink_context *ctx, uint32_t ifaces) |
Scan for devices. More... | |
Device discovery.
Definition in file discovery.c.
|
static |
Definition at line 34 of file discovery.c.
References list::data, jaylink_context::discovered_devs, jaylink_unref_device(), list::next, and NULL.
Referenced by jaylink_discovery_scan().
JAYLINK_API int jaylink_discovery_scan | ( | struct jaylink_context * | ctx, |
uint32_t | ifaces | ||
) |
Scan for devices.
[in,out] | ctx | libjaylink context. |
[in] | ifaces | Host interfaces to scan for devices. Use bitwise OR to specify multiple interfaces, or 0 to use all available interfaces. See jaylink_host_interface for a description of the interfaces. |
JAYLINK_OK | Success. |
JAYLINK_ERR_ARG | Invalid arguments. |
JAYLINK_ERR_IO | Input/output error. |
JAYLINK_ERR | Other error conditions. |
Definition at line 72 of file discovery.c.
References clear_discovery_list(), discovery_tcp_scan(), discovery_usb_scan(), JAYLINK_ERR_ARG, JAYLINK_HIF_TCP, JAYLINK_HIF_USB, JAYLINK_OK, and log_err().
Referenced by jlink_init().