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  struct xrt_device **out_xdev);
41 
42 /*!
43  * @dir drivers/hdk
44  *
45  * @brief @ref drv_hdk files.
46  */
47 
48 
49 #ifdef __cplusplus
50 }
51 #endif
int hdk_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 HDK devices.
Definition: hdk_prober.c:32
The main prober that probes and manages found but not opened HMD devices that are connected to the sy...
Definition: xrt_prober.h:147
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