Monado OpenXR Runtime
rift_s.h File Reference

Oculus Rift S Driver Internal Interface. More...

#include "os/os_threading.h"
#include "util/u_logging.h"
#include "xrt/xrt_defines.h"
#include "xrt/xrt_frame.h"
#include "xrt/xrt_frameserver.h"
#include "xrt/xrt_prober.h"
#include "xrt/xrt_tracking.h"
#include "rift_s_firmware.h"
#include "rift_s_protocol.h"
#include "rift_s_radio.h"
#include "rift_s_tracker.h"
Include dependency graph for rift_s.h:

Go to the source code of this file.

Data Structures

struct  rift_s_hmd_config
 
struct  rift_s_tracked_device
 
struct  rift_s_system
 

Macros

#define RIFT_S_H
 
#define RIFT_S_TRACE(...)   U_LOG_IFL_T(rift_s_log_level, __VA_ARGS__)
 
#define RIFT_S_DEBUG(...)   U_LOG_IFL_D(rift_s_log_level, __VA_ARGS__)
 
#define RIFT_S_INFO(...)   U_LOG_IFL_I(rift_s_log_level, __VA_ARGS__)
 
#define RIFT_S_WARN(...)   U_LOG_IFL_W(rift_s_log_level, __VA_ARGS__)
 
#define RIFT_S_ERROR(...)   U_LOG_IFL_E(rift_s_log_level, __VA_ARGS__)
 
#define MAX_TRACKED_DEVICES   2
 
#define HMD_HID   0
 
#define STATUS_HID   1
 
#define CONTROLLER_HID   2
 

Functions

struct rift_s_systemrift_s_system_create (struct xrt_prober *xp, const unsigned char *hmd_serial_no, struct os_hid_device *hid_hmd, struct os_hid_device *hid_status, struct os_hid_device *hid_controllers)
 
struct os_hid_devicerift_s_system_hid_handle (struct rift_s_system *sys)
 
rift_s_radio_staterift_s_system_radio (struct rift_s_system *sys)
 
struct rift_s_trackerrift_s_system_get_tracker (struct rift_s_system *sys)
 
struct xrt_devicerift_s_system_get_hmd (struct rift_s_system *sys)
 
void rift_s_system_remove_hmd (struct rift_s_system *sys)
 
struct xrt_devicerift_s_system_get_controller (struct rift_s_system *sys, int index)
 
void rift_s_system_remove_controller (struct rift_s_system *sys, struct rift_s_controller *ctrl)
 
struct xrt_devicerift_s_system_get_hand_tracking_device (struct rift_s_system *sys)
 
void rift_s_system_reference (struct rift_s_system **dst, struct rift_s_system *src)
 

Variables

enum u_logging_level rift_s_log_level
 

Detailed Description

Oculus Rift S Driver Internal Interface.

Author
Jan Schmidt jan@c.nosp@m.entr.nosp@m.icula.nosp@m.r.co.nosp@m.m