Monado OpenXR Runtime
Data Structures | Macros | Enumerations | Functions
psvr_device.c File Reference

PSVR device implementation, imported from OpenHMD. More...

#include "xrt/xrt_compiler.h"
#include "xrt/xrt_tracking.h"
#include "os/os_time.h"
#include "math/m_api.h"
#include "util/u_var.h"
#include "util/u_misc.h"
#include "util/u_time.h"
#include "util/u_debug.h"
#include "util/u_device.h"
#include "util/u_distortion_mesh.h"
#include "math/m_imu_3dof.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "psvr_device.h"
Include dependency graph for psvr_device.c:

Data Structures

struct  psvr_device
 Private struct for the PSVR driver device. More...
 

Macros

#define FEATURE_BUFFER_SIZE   256
 
#define PSVR_LED_POWER_OFF   ((uint8_t)0x00)
 
#define PSVR_LED_POWER_MAX   ((uint8_t)0xff)
 
#define PSVR_LED_POWER_WIRE_OFF   ((uint8_t)0)
 
#define PSVR_LED_POWER_WIRE_MAX   ((uint8_t)100)
 

Enumerations

enum  psvr_leds {
  PSVR_LED_A = (1 << 0), PSVR_LED_B = (1 << 1), PSVR_LED_C = (1 << 2), PSVR_LED_D = (1 << 3),
  PSVR_LED_E = (1 << 4), PSVR_LED_F = (1 << 5), PSVR_LED_G = (1 << 6), PSVR_LED_H = (1 << 7),
  PSVR_LED_I = (1 << 8), PSVR_LED_FRONT, PSVR_LED_BACK = PSVR_LED_H | PSVR_LED_I, PSVR_LED_ALL = PSVR_LED_FRONT | PSVR_LED_BACK
}
 

Functions

struct xrt_devicepsvr_device_create (struct hid_device_info *hmd_handle_info, struct hid_device_info *hmd_control_info, struct xrt_prober *xp, bool print_spew, bool print_debug)
 

Detailed Description

PSVR device implementation, imported from OpenHMD.

Author
Joey Ferwerda joeyf.nosp@m.erwe.nosp@m.da@gm.nosp@m.ail..nosp@m.com
Philipp Zabel phili.nosp@m.pp.z.nosp@m.abel@.nosp@m.gmai.nosp@m.l.com
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

◆ FEATURE_BUFFER_SIZE

#define FEATURE_BUFFER_SIZE   256

◆ PSVR_LED_POWER_MAX

#define PSVR_LED_POWER_MAX   ((uint8_t)0xff)

◆ PSVR_LED_POWER_OFF

#define PSVR_LED_POWER_OFF   ((uint8_t)0x00)

◆ PSVR_LED_POWER_WIRE_MAX

#define PSVR_LED_POWER_WIRE_MAX   ((uint8_t)100)

◆ PSVR_LED_POWER_WIRE_OFF

#define PSVR_LED_POWER_WIRE_OFF   ((uint8_t)0)

Enumeration Type Documentation

◆ psvr_leds

enum psvr_leds
Enumerator
PSVR_LED_A 
PSVR_LED_B 
PSVR_LED_C 
PSVR_LED_D 
PSVR_LED_E 
PSVR_LED_F 
PSVR_LED_G 
PSVR_LED_H 
PSVR_LED_I 
PSVR_LED_FRONT 
PSVR_LED_BACK 
PSVR_LED_ALL 

Function Documentation

◆ psvr_device_create()

struct xrt_device* psvr_device_create ( struct hid_device_info *  hmd_handle_info,
struct hid_device_info *  hmd_control_info,
struct xrt_prober xp,
bool  print_spew,
bool  print_debug 
)