Main prober code.
More...
#include "xrt/xrt_config_have.h"
#include "xrt/xrt_config_os.h"
#include "xrt/xrt_compiler.h"
#include "xrt/xrt_prober.h"
Go to the source code of this file.
|
#define | P_SPEW(p, ...) |
|
#define | P_DEBUG(p, ...) |
|
#define | P_ERROR(p, ...) |
|
#define | MAX_AUTO_PROBERS 8 |
|
|
void | p_dump_device (struct prober *p, struct prober_device *pdev, int id) |
| Dump the given device to stdout. More...
|
|
int | p_dev_get_usb_dev (struct prober *p, uint16_t bus, uint16_t addr, uint16_t vendor_id, uint16_t product_id, struct prober_device **out_pdev) |
| Get or create a prober_device from the device. More...
|
|
int | p_dev_get_bluetooth_dev (struct prober *p, uint64_t id, uint16_t vendor_id, uint16_t product_id, struct prober_device **out_pdev) |
| Get or create a prober_device from the device. More...
|
|
int | p_tracking_init (struct prober *p) |
| Init the tracking factory. More...
|
|
void | p_tracking_teardown (struct prober *p) |
| Teardown the tracking factory. More...
|
|
◆ P_DEBUG
#define P_DEBUG |
( |
|
p, |
|
|
|
... |
|
) |
| |
Value:do { \
if (p->print_debug) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)
◆ P_ERROR
#define P_ERROR |
( |
|
p, |
|
|
|
... |
|
) |
| |
Value:do { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} while (false)
◆ P_SPEW
#define P_SPEW |
( |
|
p, |
|
|
|
... |
|
) |
| |
Value:do { \
if (p->print_spew) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)
◆ p_dev_get_bluetooth_dev()
int p_dev_get_bluetooth_dev |
( |
struct prober * |
p, |
|
|
uint64_t |
id, |
|
|
uint16_t |
vendor_id, |
|
|
uint16_t |
product_id, |
|
|
struct prober_device ** |
out_pdev |
|
) |
| |
◆ p_dev_get_usb_dev()
int p_dev_get_usb_dev |
( |
struct prober * |
p, |
|
|
uint16_t |
bus, |
|
|
uint16_t |
addr, |
|
|
uint16_t |
vendor_id, |
|
|
uint16_t |
product_id, |
|
|
struct prober_device ** |
out_pdev |
|
) |
| |
◆ p_dump_device()
Dump the given device to stdout.
◆ p_tracking_init()
int p_tracking_init |
( |
struct prober * |
p | ) |
|
◆ p_tracking_teardown()
void p_tracking_teardown |
( |
struct prober * |
p | ) |
|