Monado OpenXR Runtime
vive_prober.h
Go to the documentation of this file.
1 // Copyright 2019, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief Interface to @ref drv_vive.
6  * @author Jakob Bornecrantz <jakob@collabora.com>
7  * @author Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
8  * @ingroup drv_vive
9  */
10 
11 #pragma once
12 
13 #include <stdlib.h>
14 
15 #include "xrt/xrt_prober.h"
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 
22 /*!
23  * @defgroup drv_vive HTC Vive and Valve Index driver
24  * @ingroup drv
25  *
26  * @brief Driver for the HTC Vive and Valve Index family of HMDs.
27  */
28 
29 #define HTC_VID 0x0bb4
30 #define VALVE_VID 0x28de
31 
32 #define VIVE_PID 0x2c87
33 #define VIVE_LIGHTHOUSE_FPGA_RX 0x2000
34 
35 #define VIVE_PRO_MAINBOARD_PID 0x0309
36 #define VIVE_PRO_LHR_PID 0x2300
37 
38 
39 /*!
40  * Probing function for Vive devices.
41  *
42  * @ingroup drv_vive
43  */
44 int
45 vive_found(struct xrt_prober *xp,
46  struct xrt_prober_device **devices,
47  size_t num_devices,
48  size_t index,
49  struct xrt_device **out_xdev);
50 
51 /*!
52  * @dir drivers/vive
53  *
54  * @brief @ref drv_vive files.
55  */
56 
57 
58 #ifdef __cplusplus
59 }
60 #endif
Common interface to probe for devices.
The main prober that probes and manages found but not opened HMD devices that are connected to the sy...
Definition: xrt_prober.h:147
int vive_found(struct xrt_prober *xp, struct xrt_prober_device **devices, size_t num_devices, size_t index, struct xrt_device **out_xdev)
Probing function for Vive devices.
Definition: vive_prober.c:222
A probed device, may or may not be opened.
Definition: xrt_prober.h:121
A single HMD or input device.
Definition: xrt_device.h:203