|
Monado OpenXR Runtime
|
Interface to Oculus Rift driver code. More...
#include "xrt/xrt_device.h"#include "xrt/xrt_defines.h"#include "xrt/xrt_prober.h"#include "os/os_hid.h"#include "os/os_threading.h"#include "util/u_device.h"#include "util/u_logging.h"#include "math/m_imu_3dof.h"#include "math/m_api.h"#include "math/m_mathinclude.h"#include <stdlib.h>#include <stdio.h>
Go to the source code of this file.
Data Structures | |
| struct | rift_config_report |
| struct | rift_display_info_report |
| struct | rift_catmull_rom_distortion_report_data |
| struct | rift_lens_distortion_report |
| struct | dk2_report_keepalive_mux |
| struct | rift_display_report |
| struct | dk2_sensor_sample |
| struct | dk2_sample_pack |
| struct | dk2_in_report |
| struct | rift_catmull_rom_distortion_data |
| struct | rift_lens_distortion |
| struct | rift_scale_and_offset |
| struct | rift_viewport_fov_tan |
| struct | rift_extra_display_info |
| struct | rift_hmd |
| A rift HMD device. More... | |
Macros | |
| #define | REPORT_MAX_SIZE 69 |
| #define | KEEPALIVE_INTERVAL_NS 10000000000 |
| #define | KEEPALIVE_SEND_RATE_NS ((KEEPALIVE_INTERVAL_NS * 19) / 20) |
| #define | IMU_SAMPLE_RATE (1000) |
| #define | NS_PER_SAMPLE (1000 * 1000) |
| #define | MICROMETERS_TO_METERS(microns) (float)microns / 1000000.0f |
| #define | DEFAULT_EXTRA_EYE_ROTATION DEG_TO_RAD(30.0f) |
| #define | IN_REPORT_DK2 11 |
| #define | CATMULL_COEFFICIENTS 11 |
| #define | CHROMATIC_ABBERATION_COEFFEICENT_COUNT 4 |
| #define | RIFT_PACKED |
| #define | DK2_MAX_SAMPLES 2 |
| #define | OCULUS_VR_VID 0x2833 |
| #define | OCULUS_DK2_PID 0x0021 |
Functions | |
| int | rift_found (struct xrt_prober *xp, struct xrt_prober_device **devices, size_t device_count, size_t index, cJSON *attached_data, struct xrt_device **out_xdev) |
| Probing function for Oculus Rift devices. More... | |
| static struct rift_hmd * | rift_hmd (struct xrt_device *xdev) |
| Casting helper function. More... | |
| struct rift_hmd * | rift_hmd_create (struct os_hid_device *dev, enum rift_variant variant, char *device_name, char *serial_number) |
Interface to Oculus Rift driver code.
| int rift_found | ( | struct xrt_prober * | xp, |
| struct xrt_prober_device ** | devices, | ||
| size_t | device_count, | ||
| size_t | index, | ||
| cJSON * | attached_data, | ||
| struct xrt_device ** | out_xdev | ||
| ) |
Probing function for Oculus Rift devices.
References xrt_prober::xrt_prober_get_string_descriptor().
|
inlinestatic |
Casting helper function.