Monado OpenXR Runtime
hdk_interface.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 direct OSVR HDK driver code.
6  * @author Jakob Bornecrantz <jakob@collabora.com>
7  * @author Ryan Pavlik <ryan.pavlik@collabora.com>
8  * @ingroup drv_hdk
9  */
10 
11 #pragma once
12 
13 #include <stdlib.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 
20 /*!
21  * @defgroup drv_hdk HDK driver
22  * @ingroup drv
23  *
24  * @brief Driver for the OSVR HDK series of HMDs.
25  */
26 
27 #define HDK_VID 0x1532
28 #define HDK_PID 0x0b00
29 
30 /*!
31  * Probing function for HDK devices.
32  *
33  * @ingroup drv_hdk
34  */
35 int
36 hdk_found(struct xrt_prober *xp,
37  struct xrt_prober_device **devices,
38  size_t num_devices,
39  size_t index,
40  cJSON *attached_data,
41  struct xrt_device **out_xdev);
42 
43 /*!
44  * @dir drivers/hdk
45  *
46  * @brief @ref drv_hdk files.
47  */
48 
49 
50 #ifdef __cplusplus
51 }
52 #endif
struct cJSON cJSON
Definition: xrt_prober.h:26
The main prober that probes and manages found but not opened HMD devices that are connected to the sy...
Definition: xrt_prober.h:153
int hdk_found(struct xrt_prober *xp, struct xrt_prober_device **devices, size_t num_devices, size_t index, cJSON *attached_data, struct xrt_device **out_xdev)
Probing function for HDK devices.
Definition: hdk_prober.c:32
A probed device, may or may not be opened.
Definition: xrt_prober.h:125
A single HMD or input device.
Definition: xrt_device.h:202