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 "tracking/t_imu.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "psvr_device.h"
|
#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) |
|
|
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
} |
|
◆ 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 |
|
) |
| |
- Todo:
- inject this, don't create it