Monado OpenXR Runtime
rokid_interface.h
Go to the documentation of this file.
1// Copyright 2020-2021, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Interface to rokid driver.
6 * @author Jakob Bornecrantz <jakob@collabora.com>
7 * @author Rylie Pavlik <rylie.pavlik@collabora.com>
8 * @ingroup drv_rokid
9 */
10
11#pragma once
12
13#include <stddef.h>
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18// NOTE: this is 1234:5679
19#define ROKID_VID 0x04d2
20#define ROKID_PID 0x162f
21
22typedef struct cJSON cJSON;
23struct xrt_prober;
25struct xrt_device;
26
27/*!
28 * Probing function for Rokid devices.
29 *
30 * @ingroup drv_hdk
31 * @see xrt_prober_found_func_t
32 */
33int
34rokid_found(struct xrt_prober *xp,
35 struct xrt_prober_device **devices,
36 size_t device_count,
37 size_t index,
38 cJSON *attached_data,
39 struct xrt_device **out_xdev);
40
41#ifdef __cplusplus
42}
43#endif
int rokid_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 Rokid devices.
Definition: rokid_hmd.c:567
A single HMD or input device.
Definition: xrt_device.h:241
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