The open source OpenXR runtime

d/blubur_s1: Add u_var for blubur S1 HMD

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2590>

authored by

Beyley Cardellio and committed by
Marge Bot
aeaee438 bfb4735b

+16
+16
src/xrt/drivers/blubur_s1/blubur_s1_hmd.c
··· 18 18 #include "util/u_debug.h" 19 19 #include "util/u_trace_marker.h" 20 20 #include "util/u_linux.h" 21 + #include "util/u_var.h" 21 22 22 23 #include "blubur_s1_interface.h" 23 24 #include "blubur_s1_internal.h" ··· 64 65 } 65 66 66 67 os_mutex_destroy(&hmd->input_mutex); 68 + 69 + u_var_remove_root(hmd); 67 70 68 71 free(hmd); 69 72 } ··· 625 628 blubur_s1_hmd_destroy(&hmd->base); 626 629 return NULL; 627 630 } 631 + 632 + u_var_add_root(hmd, "Blubur S1", true); 633 + u_var_add_log_level(hmd, &hmd->log_level, "Log Level"); 634 + 635 + m_imu_3dof_add_vars(&hmd->fusion_3dof, hmd, "3dof IMU Fusion"); 636 + 637 + u_var_add_ro_u16(hmd, &hmd->last_remote_timestamp_ms, "Last Remote Timestamp (ms)"); 638 + u_var_add_ro_i64_ns(hmd, &hmd->last_remote_timestamp_ns, "Last Remote Timestamp (ns)"); 639 + 640 + u_var_add_ro_i64_ns(hmd, &hmd->hw2mono, "HW to Monotonic (ns)"); 641 + u_var_add_ro_i32(hmd, &hmd->hw2mono_samples, "HW to Monotonic Samples"); 642 + 643 + u_var_add_ro_i32(hmd, (int32_t *)&hmd->input.status, "Status"); 628 644 629 645 return hmd; 630 646 }