Monado OpenXR Runtime
Loading...
Searching...
No Matches
rift_sensor_interface.h File Reference

Interface to Oculus Rift sensor probing/initialization. More...

Include dependency graph for rift_sensor_interface.h:

Go to the source code of this file.

Macros

#define RIFT_SENSOR_CLOCK_FREQ   (40000000)
 
#define RIFT_SENSOR_CLOCK_TO_NS(x)   ((timepoint_ns)(x) * 1000 / 40)
 
#define RIFT_SENSOR_WIDTH   1280
 
#define RIFT_SENSOR_HEIGHT   960
 
#define RIFT_SENSOR_FRAME_SIZE   (RIFT_SENSOR_WIDTH * RIFT_SENSOR_HEIGHT)
 

Enumerations

enum  rift_sensor_variant { RIFT_SENSOR_VARIANT_DK2 , RIFT_SENSOR_VARIANT_CV1 }
 

Functions

void rift_sensor_context_destroy (struct rift_sensor_context *context)
 
int rift_sensor_context_create (struct rift_sensor_context **out_context, struct xrt_frame_context *xfctx)
 
int rift_sensor_context_enable_exposure_sync (struct rift_sensor_context *context, uint8_t radio_id[5])
 
int rift_sensor_context_start (struct rift_sensor_context *context)
 
ssize_t rift_sensor_context_get_sensors (struct rift_sensor_context *context, struct rift_sensor ***out_sensors)
 
struct xrt_fsrift_sensor_get_frame_server (struct rift_sensor *sensor)
 

Detailed Description

Interface to Oculus Rift sensor probing/initialization.

Author
Beyley Cardellio ep1cm.nosp@m.1n10.nosp@m.n123@.nosp@m.gmai.nosp@m.l.com