Monado OpenXR Runtime
vive_prober.c File Reference

drv_vive prober code. More...

#include <stdio.h>
#include "util/u_debug.h"
#include "util/u_prober.h"
#include "util/u_trace_marker.h"
#include "vive/vive_common.h"
#include "vive_device.h"
#include "vive_controller.h"
#include "vive_prober.h"
#include "xrt/xrt_config_drivers.h"
Include dependency graph for vive_prober.c:

Functions

static int log_vive_string (struct xrt_prober *xp, struct xrt_prober_device *dev, enum xrt_prober_string type)
 
static void log_vive_device (enum u_logging_level log_level, struct xrt_prober *xp, struct xrt_prober_device *dev)
 
static void init_vive1 (struct xrt_prober *xp, struct xrt_prober_device *dev, struct xrt_prober_device **devices, size_t device_count, enum u_logging_level log_level, struct vive_tracking_status tstatus, struct vive_source *vs, struct vive_device **out_vdev)
 
static void init_vive_pro (struct xrt_prober *xp, struct xrt_prober_device *dev, struct xrt_prober_device **devices, size_t device_count, enum u_logging_level log_level, struct vive_tracking_status tstatus, struct vive_source *vs, struct vive_device **out_vdev)
 
static void init_vive_pro2 (struct xrt_prober *xp, struct xrt_prober_device *dev, struct xrt_prober_device **devices, size_t device_count, enum u_logging_level log_level, struct vive_tracking_status tstatus, struct vive_source *vs, struct vive_device **out_vdev)
 
static void init_valve_index (struct xrt_prober *xp, struct xrt_prober_device *dev, struct xrt_prober_device **devices, size_t device_count, enum u_logging_level log_level, struct vive_tracking_status tstatus, struct vive_source *vs, struct vive_device **out_vdev)
 
int vive_found (struct xrt_prober *xp, struct xrt_prober_device **devices, size_t device_count, size_t index, cJSON *attached_data, struct vive_tracking_status tstatus, struct vive_source *vs, struct vive_config **out_vive_config, struct xrt_device **out_xdev)
 Probing function for Vive devices. More...
 
int vive_controller_found (struct xrt_prober *xp, struct xrt_prober_device **devices, size_t device_count, size_t index, cJSON *attached_data, struct xrt_device **out_xdevs)
 Probing function for HTC Vive and Valve Index controllers. More...
 

Variables

static const char VIVE_PRODUCT_STRING [] = "HTC Vive"
 
static const char VIVE_PRO_PRODUCT_STRING [] = "VIVE Pro"
 
static const char VIVE_PRO2_PRODUCT_STRING [] = "VIVE Pro 2"
 
static const char VALVE_INDEX_PRODUCT_STRING [] = "Index HMD"
 
static const char VALVE_INDEX_MANUFACTURER_STRING [] = "Valve"
 
static const char VIVE_MANUFACTURER_STRING [] = "HTC"
 

Detailed Description