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"
|
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
} |
|
◆ 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) |
◆ 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 | |
◆ 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 |
|
) |
| |