Monado OpenXR Runtime
blubur_s1_protocol.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 Blubur S1 protocol definitions.
6 * @author Beyley Cardellio <ep1cm1n10n123@gmail.com>
7 * @ingroup drv_blubur_s1
8 */
9
10#pragma once
11
12#include "xrt/xrt_defines.h"
13
14
15#pragma pack(push, 1)
16
18{
19 uint8_t id;
20};
21
23{
24 uint8_t data[0x20];
25};
26
27enum blubur_s1_status_bits
28{
29 BLUBUR_S1_STATUS_DISPLAY_CONNECTION = 0x01,
30 BLUBUR_S1_STATUS_DISPLAY_ON = 0x04,
31 BLUBUR_S1_STATUS_BUTTON = 0x20,
32 BLUBUR_S1_STATUS_PRESENCE = 0x80,
33};
34
36{
37 uint8_t status; //< blubur_s1_status_bits
38 uint16_t timestamp; //< in milliseconds
39 uint16_t unk;
40 uint8_t unk2;
41 int8_t unk3; //< float, ((int32_t)unk3 + 570) / 10.0f
42 int32_t unkValues[4];
43 struct blubur_s1_report_sensor_data sensor;
44 uint8_t padding[8];
45};
46
47#pragma pack(pop)
Definition: blubur_s1_protocol.h:36
Definition: blubur_s1_protocol.h:18
Definition: blubur_s1_protocol.h:23
Common defines and enums for XRT.