Monado OpenXR Runtime
|
Driver for the Sony PSVR HMD. More...
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_device * | psvr_device_create (struct xrt_tracked_psvr *tracker) |
Create PSVR device, with a optional tracker. More... | |
struct xrt_auto_prober * | psvr_create_auto_prober (void) |
Create a probe for PSVR devices. More... | |
Driver for the Sony PSVR HMD.
#define PSVR_PID 0x09af |
#include <drivers/psvr/psvr_interface.h>
Product id for PSVR.
#define PSVR_VID 0x054c |
#include <drivers/psvr/psvr_interface.h>
Vendor id for PSVR.
|
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.
[in] | psvr | The PSVR to control leds on. |
[in] | adjust | The leds to adjust with power . |
[in] | power | The power level to give to adjust leds. |
[in] | off | Leds that should be turned off, adjust has higher priority. |
|
related |
Create a probe for PSVR devices.
References xrt_auto_prober::destroy, xrt_auto_prober::lelo_dallas_autoprobe, and U_TYPED_CALLOC.
struct xrt_device * psvr_device_create | ( | struct xrt_tracked_psvr * | tracker | ) |
#include <drivers/psvr/psvr_interface.h>
Create PSVR device, with a optional tracker.