Monado OpenXR Runtime
blubur_s1_interface.h
Go to the documentation of this file.
1// Copyright 2025, Beyley Cardellio
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Interface to Blubur S1 driver code.
6 * @author Beyley Cardellio <ep1cm1n10n123@gmail.com>
7 * @ingroup drv_blubur_s1
8 */
9
10#pragma once
11
12#include "xrt/xrt_device.h"
13#include "xrt/xrt_prober.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19
20#define BLUBUR_S1_VID 0x2b1c
21#define BLUBUR_S1_PID 0x0001
22
23struct blubur_s1_hmd;
24
25/*!
26 * Probing function for Blubur S1 devices.
27 *
28 * @ingroup drv_blubur_s1
29 * @see xrt_prober_found_func_t
30 */
31int
33 struct xrt_prober_device **devices,
34 size_t device_count,
35 size_t index,
36 cJSON *attached_data,
37 struct xrt_device **out_xdev);
38
39/*!
40 * Creates a Blubur S1 HMD device from an opened HID handle.
41 *
42 * @ingroup drv_blubur_s1
43 */
44struct blubur_s1_hmd *
45blubur_s1_hmd_create(struct os_hid_device *dev, const char *serial);
46
47
48/*!
49 * @dir drivers/blubur_s1
50 *
51 * @brief @ref drv_blubur_s1 files.
52 */
53
54#ifdef __cplusplus
55}
56#endif
int blubur_s1_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 Blubur S1 devices.
Definition: blubur_s1_prober.c:15
struct blubur_s1_hmd * blubur_s1_hmd_create(struct os_hid_device *dev, const char *serial)
Creates a Blubur S1 HMD device from an opened HID handle.
Definition: blubur_s1_hmd.c:519
Definition: blubur_s1_internal.h:26
Representing a single hid interface on a device.
Definition: os_hid.h:29
A single HMD or input device.
Definition: xrt_device.h:282
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
Header defining an xrt display or controller device.
Common interface to probe for devices.