Monado OpenXR Runtime
Xreal Air driver

Driver for the Xreal Air HMD. More...

Collaboration diagram for Xreal Air driver:

Files

file  xreal_air_hmd.c
 Xreal Air packet parsing implementation.
 
file  xreal_air_hmd.h
 Xreal Air packet parsing implementation.
 
file  xreal_air_interface.h
 Xreal Air packet parsing implementation.
 
file  xreal_air_packet.c
 Xreal Air packet parsing implementation.
 
file  target_builder_xreal_air.c
 Xreal Air prober code.
 

Data Structures

struct  xreal_air_hmd
 Private struct for the xreal_air device. More...
 
struct  xreal_air_parsed_sample
 A parsed single gyroscope, accelerometer and magnetometer sample with their corresponding factors for conversion from raw data. More...
 
struct  xreal_air_parsed_sensor
 Over the wire sensor packet from the glasses. More...
 
struct  xreal_air_parsed_sensor_control_data
 Over the wire sensor control data packet from the glasses. More...
 
struct  xreal_air_parsed_control
 A control packet from the glasses in wire format. More...
 

Macros

#define XREAL_AIR_VID   0x3318
 Vendor id for Xreal Air. More...
 
#define XREAL_AIR_PID   0x0424
 Product id for Xreal Air. More...
 
#define XREAL_AIR_2_PID   0x0428
 Product id for Xreal Air 2. More...
 
#define XREAL_AIR_2_PRO_PID   0x0432
 Product id for Xreal Air 2 Pro. More...
 

Functions

struct xrt_devicexreal_air_hmd_create_device (struct os_hid_device *sensor_device, struct os_hid_device *control_device, enum u_logging_level log_level)
 Create Xreal Air glasses. More...
 
struct xrt_builderxreal_air_builder_create (void)
 Builder setup for Xreal Air glasses. More...
 

Detailed Description

Driver for the Xreal Air HMD.

Macro Definition Documentation

◆ XREAL_AIR_2_PID

#define XREAL_AIR_2_PID   0x0428

#include <drivers/xreal_air/xreal_air_interface.h>

Product id for Xreal Air 2.

◆ XREAL_AIR_2_PRO_PID

#define XREAL_AIR_2_PRO_PID   0x0432

#include <drivers/xreal_air/xreal_air_interface.h>

Product id for Xreal Air 2 Pro.

◆ XREAL_AIR_PID

#define XREAL_AIR_PID   0x0424

#include <drivers/xreal_air/xreal_air_interface.h>

Product id for Xreal Air.

◆ XREAL_AIR_VID

#define XREAL_AIR_VID   0x3318

#include <drivers/xreal_air/xreal_air_interface.h>

Vendor id for Xreal Air.

Function Documentation

◆ xreal_air_builder_create()

struct xrt_builder* xreal_air_builder_create ( void  )

#include <drivers/xreal_air/xreal_air_interface.h>

Builder setup for Xreal Air glasses.

References u_builder::base, xrt_builder::estimate_system, and U_TYPED_CALLOC.

◆ xreal_air_hmd_create_device()

struct xrt_device* xreal_air_hmd_create_device ( struct os_hid_device sensor_device,
struct os_hid_device control_device,
enum u_logging_level  log_level 
)

#include <drivers/xreal_air/xreal_air_hmd.h>

Create Xreal Air glasses.