Monado OpenXR Runtime
PSVR driver

Driver for the Sony PSVR HMD. More...

Collaboration diagram for PSVR driver:

Files

file  psvr_device.c
 PSVR device implementation, imported from OpenHMD.
 
file  psvr_device.h
 PSVR device header, imported from OpenHMD.
 
file  psvr_interface.h
 Interface to PSVR driver.
 
file  psvr_packet.c
 PSVR packet parsing implementation, imported from OpenHMD.
 
file  psvr_prober.c
 PSVR prober code.
 

Data Structures

struct  psvr_device
 Private struct for the PSVR driver device. More...
 
struct  psvr_parsed_sample
 A parsed single gyro, accel and tick sample. More...
 
struct  psvr_parsed_sensor
 Over the wire sensor packet from the headset. More...
 
struct  psvr_parsed_status
 A status packet from the headset in wire format. More...
 
struct  psvr_prober
 PSVR prober struct. More...
 

Macros

#define PSVR_VID   0x054c
 Vendor id for PSVR. More...
 
#define PSVR_PID   0x09af
 Product id for PSVR. More...
 

Functions

static int control_leds (struct psvr_device *psvr, enum psvr_leds adjust, uint8_t power, enum psvr_leds off)
 Control the leds on the headset, allowing you to turn on and off different leds with a single call. More...
 
struct xrt_devicepsvr_device_create (struct xrt_tracked_psvr *tracker)
 Create PSVR device, with a optional tracker. More...
 
struct xrt_auto_proberpsvr_create_auto_prober (void)
 Create a probe for PSVR devices. More...
 

Detailed Description

Driver for the Sony PSVR HMD.

Macro Definition Documentation

◆ PSVR_PID

#define PSVR_PID   0x09af

#include <drivers/psvr/psvr_interface.h>

Product id for PSVR.

◆ PSVR_VID

#define PSVR_VID   0x054c

#include <drivers/psvr/psvr_interface.h>

Vendor id for PSVR.

Function Documentation

◆ control_leds()

static int control_leds ( struct psvr_device psvr,
enum psvr_leds  adjust,
uint8_t  power,
enum psvr_leds  off 
)
static

#include <drivers/psvr/psvr_device.c>

Control the leds on the headset, allowing you to turn on and off different leds with a single call.

Parameters
[in]psvrThe PSVR to control leds on.
[in]adjustThe leds to adjust with power.
[in]powerThe power level to give to adjust leds.
[in]offLeds that should be turned off, adjust has higher priority.

◆ psvr_create_auto_prober()

struct xrt_auto_prober * psvr_create_auto_prober ( void  )
related

Create a probe for PSVR devices.

References xrt_auto_prober::destroy, xrt_auto_prober::lelo_dallas_autoprobe, and U_TYPED_CALLOC.

◆ psvr_device_create()

struct xrt_device * psvr_device_create ( struct xrt_tracked_psvr tracker)

#include <drivers/psvr/psvr_interface.h>

Create PSVR device, with a optional tracker.