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 Rylie Pavlik <rylie.pavlik@collabora.com>
8 * @ingroup drv_hdk
9 */
10
11#pragma once
12
13#include <stdlib.h>
14
15#ifdef __cplusplus
16extern "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 * @see xrt_prober_found_func_t
35 */
36int
37hdk_found(struct xrt_prober *xp,
38 struct xrt_prober_device **devices,
39 size_t device_count,
40 size_t index,
41 cJSON *attached_data,
42 struct xrt_device **out_xdev);
43
44/*!
45 * @dir drivers/hdk
46 *
47 * @brief @ref drv_hdk files.
48 */
49
50
51#ifdef __cplusplus
52}
53#endif
int hdk_found(struct xrt_prober *xp, struct xrt_prober_device **devices, size_t device_count, size_t index, cJSON *attached_data, struct xrt_device **out_xdev)
Probing function for HDK devices.
Definition: hdk_prober.c:29
A single HMD or input device.
Definition: xrt_device.h:230
A probed device, may or may not be opened.
Definition: xrt_prober.h:85
The main prober that probes and manages found but not opened HMD devices that are connected to the sy...
Definition: xrt_prober.h:132