Monado OpenXR Runtime
Loading...
Searching...
No Matches
vp2_hid.h File Reference

Implementation of the Vive Pro 2 HID interface. More...

#include <assert.h>
Include dependency graph for vp2_hid.h:

Go to the source code of this file.

Macros

#define VP2_VID   0x0bb4
 
#define VP2_PID   0x0342
 

Enumerations

enum  vp2_resolution {
  VP2_RESOLUTION_2448_1224_90_03 = 0 , VP2_RESOLUTION_2448_1224_120_05 = 1 , VP2_RESOLUTION_3264_1632_90_00 = 2 , VP2_RESOLUTION_3680_1836_90_02 = 3 ,
  VP2_RESOLUTION_4896_2448_90_02 = 4 , VP2_RESOLUTION_4896_2448_120_02 = 5
}
 

Functions

static void vp2_resolution_get_extents (enum vp2_resolution res, int *out_w, int *out_h)
 
static double vp2_resolution_get_refresh_rate (enum vp2_resolution res)
 
int vp2_hid_open (struct os_hid_device *hid_dev, struct vp2_hid **out_hid)
 
enum vp2_resolution vp2_get_resolution (struct vp2_hid *vp2)
 
struct vp2_configvp2_get_config (struct vp2_hid *vpd)
 
void vp2_hid_destroy (struct vp2_hid *vp2)
 
const char * vp2_get_serial (struct vp2_hid *vp2)
 
int vp2_set_noise_cancelling (struct vp2_hid *vp2, bool enabled)
 
float vp2_get_brightness (struct vp2_hid *vp2)
 
int vp2_set_brightness (struct vp2_hid *vp2, float brightness)
 

Detailed Description

Implementation of the Vive Pro 2 HID interface.

Author
Beyley Cardellio ep1cm.nosp@m.1n10.nosp@m.n123@.nosp@m.gmai.nosp@m.l.com