Common interface to probe for devices.
More...
Go to the source code of this file.
|
typedef struct cJSON | cJSON |
|
typedef void(* | xrt_prober_list_video_func_t) (struct xrt_prober *xp, struct xrt_prober_device *pdev, const char *product, const char *manufacturer, const char *serial, void *ptr) |
| Callback for listing video devices. More...
|
|
typedef struct xrt_builder *(* | xrt_builder_create_func_t) (void) |
| Function pointer type for creating a xrt_builder. More...
|
|
typedef int(* | xrt_prober_found_func_t) (struct xrt_prober *xp, struct xrt_prober_device **devices, size_t num_devices, size_t index, cJSON *attached_data, struct xrt_device **out_xdevs) |
| Function pointer type for a handler that gets called when a device matching vendor and product ID is detected. More...
|
|
typedef struct xrt_auto_prober *(* | xrt_auto_prober_create_func_t) (void) |
| Function pointer type for creating a auto prober. More...
|
|
|
enum | xrt_bus_type { XRT_BUS_TYPE_UNKNOWN
, XRT_BUS_TYPE_USB
, XRT_BUS_TYPE_BLUETOOTH
} |
| Bus type of a device. More...
|
|
enum | xrt_prober_string { XRT_PROBER_STRING_MANUFACTURER
, XRT_PROBER_STRING_PRODUCT
, XRT_PROBER_STRING_SERIAL_NUMBER
} |
| String descriptor types. More...
|
|
Common interface to probe for devices.
- Author
- Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m
◆ xrt_prober_found_func_t
Function pointer type for a handler that gets called when a device matching vendor and product ID is detected.
- Parameters
-
xp | Prober |
devices | The array of prober devices found by the prober. |
num_devices | The number of elements in devices |
index | Which element in the prober device array matches your query? |
attached_data | |
out_xdevs | An empty array of size XRT_MAX_DEVICES_PER_PROBE you may populate with xrt_device instances. |
- Returns
- the number of elements of
out_xdevs
populated by this call.
◆ xrt_bus_type
◆ xrt_prober_string