Monado OpenXR Runtime
rift_s_firmware.h File Reference

Oculus Rift S firmware parsing interface. More...

#include "math/m_mathinclude.h"
#include "math/m_api.h"
Include dependency graph for rift_s_firmware.h:

Go to the source code of this file.

Data Structures

struct  rift_s_imu_calibration
 
struct  rift_s_projection_pinhole
 
struct  rift_s_fisheye62_distortion
 
struct  rift_s_camera_calibration
 
struct  rift_s_camera_calibration_block
 
struct  rift_s_led
 
struct  rift_s_lensing_model
 
struct  rift_s_controller_imu_calibration
 

Enumerations

enum  rift_s_firmware_block {
  RIFT_S_FIRMWARE_BLOCK_SERIAL_NUM = 0x0B , RIFT_S_FIRMWARE_BLOCK_THRESHOLD = 0xD , RIFT_S_FIRMWARE_BLOCK_IMU_CALIB = 0xE , RIFT_S_FIRMWARE_BLOCK_CAMERA_CALIB = 0xF ,
  RIFT_S_FIRMWARE_BLOCK_DISPLAY_COLOR_CALIB = 0x10 , RIFT_S_FIRMWARE_BLOCK_LENS_CALIB = 0x12
}
 
enum  rift_s_camera_id {
  RIFT_S_CAMERA_TOP = 0x0 , RIFT_S_CAMERA_SIDE_LEFT = 0x1 , RIFT_S_CAMERA_FRONT_RIGHT = 0x2 , RIFT_S_CAMERA_FRONT_LEFT = 0x3 ,
  RIFT_S_CAMERA_SIDE_RIGHT = 0x4 , RIFT_S_CAMERA_COUNT
}
 

Functions

int rift_s_parse_proximity_threshold (char *json, int *proximity_threshold)
 
int rift_s_parse_imu_calibration (char *json, struct rift_s_imu_calibration *c)
 
int rift_s_parse_camera_calibration_block (char *json, struct rift_s_camera_calibration_block *c)
 
int rift_s_controller_parse_imu_calibration (char *json, struct rift_s_controller_imu_calibration *c)
 
void rift_s_controller_free_imu_calibration (struct rift_s_controller_imu_calibration *c)
 

Variables

static enum rift_s_camera_id CAM_IDX_TO_ID [RIFT_S_CAMERA_COUNT]
 Order/index of cameras when dealing with multi-camera tracking. More...
 

Detailed Description

Oculus Rift S firmware parsing interface.

Functions for parsing JSON configuration from the HMD and Touch Controller firmware.

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

Variable Documentation

◆ CAM_IDX_TO_ID

enum rift_s_camera_id CAM_IDX_TO_ID[RIFT_S_CAMERA_COUNT]
static
Initial value:
= {
RIFT_S_CAMERA_FRONT_LEFT, RIFT_S_CAMERA_FRONT_RIGHT,
RIFT_S_CAMERA_SIDE_LEFT, RIFT_S_CAMERA_SIDE_RIGHT,
RIFT_S_CAMERA_TOP,
}

Order/index of cameras when dealing with multi-camera tracking.