OpenOCD
discovery.c File Reference

Device discovery. More...

Include dependency graph for discovery.c:

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...
 

Detailed Description

Device discovery.

Definition in file discovery.c.

Function Documentation

◆ clear_discovery_list()

static void clear_discovery_list ( struct jaylink_context ctx)
static

◆ jaylink_discovery_scan()

JAYLINK_API int jaylink_discovery_scan ( struct jaylink_context ctx,
uint32_t  ifaces 
)

Scan for devices.

Parameters
[in,out]ctxlibjaylink context.
[in]ifacesHost 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.
Return values
JAYLINK_OKSuccess.
JAYLINK_ERR_ARGInvalid arguments.
JAYLINK_ERR_IOInput/output error.
JAYLINK_ERROther error conditions.
See also
jaylink_get_devices()
Since
0.1.0

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().