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
15
extern
"C"
{
16
#endif
17
18
// NOTE: this is 1234:5679
19
#define ROKID_VID 0x04d2
20
#define ROKID_PID 0x162f
21
22
typedef
struct
cJSON cJSON;
23
struct
xrt_prober
;
24
struct
xrt_prober_device
;
25
struct
xrt_device
;
26
27
/*!
28
* Probing function for Rokid devices.
29
*
30
* @ingroup drv_hdk
31
* @see xrt_prober_found_func_t
32
*/
33
int
34
rokid_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
rokid_found
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
xrt_device
A single HMD or input device.
Definition:
xrt_device.h:241
xrt_prober_device
A probed device, may or may not be opened.
Definition:
xrt_prober.h:85
xrt_prober
The main prober that probes and manages found but not opened HMD devices that are connected to the sy...
Definition:
xrt_prober.h:132
drivers
rokid
rokid_interface.h
Generated by
1.9.4