Monado OpenXR Runtime
Macros | Functions

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>
Include dependency graph for p_libusb.c:

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)
 

Detailed Description

Prober code interfacing to libusb.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

◆ ENUM_TO_STR

#define ENUM_TO_STR (   r)    case r: return #r

Function Documentation

◆ p_libusb_can_open()

bool p_libusb_can_open ( struct prober p,
struct prober_device pdev 
)

References P_ERROR, and prober_device::usb.

◆ p_libusb_get_string_descriptor()

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.

◆ p_libusb_init()

int p_libusb_init ( struct prober p)

◆ p_libusb_probe()

int p_libusb_probe ( struct prober p)

◆ p_libusb_teardown()

void p_libusb_teardown ( struct prober p)