The open source OpenXR runtime
at main 53 lines 902 B view raw
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