Monado OpenXR Runtime
|
Prober code interfacing to libusb. More...
#include "util/u_debug.h"
#include "util/u_misc.h"
#include "p_prober.h"
#include <stdio.h>
#include <string.h>
Macros | |
#define | ENUM_TO_STR(r) case r: return #r |
Functions | |
int | p_libusb_init (struct prober *p) |
void | p_libusb_teardown (struct prober *p) |
int | p_libusb_probe (struct prober *p) |
int | p_libusb_get_string_descriptor (struct prober *p, struct prober_device *pdev, enum xrt_prober_string which_string, unsigned char *buffer, int length) |
bool | p_libusb_can_open (struct prober *p, struct prober_device *pdev) |
Prober code interfacing to libusb.
#define ENUM_TO_STR | ( | r | ) | case r: return #r |
bool p_libusb_can_open | ( | struct prober * | p, |
struct prober_device * | pdev | ||
) |
References P_ERROR, and prober_device::usb.
int p_libusb_get_string_descriptor | ( | struct prober * | p, |
struct prober_device * | pdev, | ||
enum xrt_prober_string | which_string, | ||
unsigned char * | buffer, | ||
int | length | ||
) |
References P_ERROR, and prober_device::usb.
int p_libusb_init | ( | struct prober * | p | ) |
int p_libusb_probe | ( | struct prober * | p | ) |
References prober_device::addr, ARRAY_SIZE, prober_device::bus, p_dev_get_usb_dev(), P_ERROR, P_SPEW, and prober_device::ports.
void p_libusb_teardown | ( | struct prober * | p | ) |