Monado OpenXR Runtime
target_builder_xreal_air.c File Reference

Xreal Air prober code. More...

#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>
#include "os/os_hid.h"
#include "xrt/xrt_config_drivers.h"
#include "xrt/xrt_prober.h"
#include "util/u_builders.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_logging.h"
#include "util/u_system_helpers.h"
#include "util/u_trace_marker.h"
#include "xreal_air/xreal_air_hmd.h"
#include "xreal_air/xreal_air_interface.h"
Include dependency graph for target_builder_xreal_air.c:

Macros

#define XREAL_AIR_WARN(...)   U_LOG_IFL_W(xreal_air_log_level, __VA_ARGS__)
 
#define XREAL_AIR_ERROR(...)   U_LOG_IFL_E(xreal_air_log_level, __VA_ARGS__)
 
#define XREAL_AIR_DRIVER_PRODUCT_IDS   3
 

Functions

static xrt_result_t xreal_air_estimate_system (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_builder_estimate *estimate)
 
static xrt_result_t xreal_air_open_system_impl (struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp, struct xrt_tracking_origin *origin, struct xrt_system_devices *xsysd, struct xrt_frame_context *xfctx, struct u_builder_roles_helper *ubrh)
 
static void xreal_air_destroy (struct xrt_builder *xb)
 
struct xrt_builderxreal_air_builder_create (void)
 Builder setup for Xreal Air glasses. More...
 

Variables

enum u_logging_level xreal_air_log_level
 
static const char * driver_list []
 
static const uint16_t driver_product_ids [3]
 

Detailed Description

Xreal Air prober code.

Author
Tobias Frisch theja.nosp@m.ckim.nosp@m.onste.nosp@m.r@gm.nosp@m.ail.c.nosp@m.om

Variable Documentation

◆ driver_list

const char* driver_list[]
static
Initial value:
= {
"xreal_air",
}

◆ driver_product_ids

const uint16_t driver_product_ids[3]
static
Initial value:
= {
}
#define XREAL_AIR_2_PID
Product id for Xreal Air 2.
Definition: xreal_air_interface.h:42
#define XREAL_AIR_PID
Product id for Xreal Air.
Definition: xreal_air_interface.h:35
#define XREAL_AIR_2_PRO_PID
Product id for Xreal Air 2 Pro.
Definition: xreal_air_interface.h:49