34#define PSVR_HANDLE_IFACE 4
35#define PSVR_CONTROL_IFACE 5
40 PSVR_STATUS_BIT_POWER = (1 << 0),
41 PSVR_STATUS_BIT_HMD_WORN = (1 << 1),
42 PSVR_STATUS_BIT_CINEMATIC_MODE = (1 << 2),
43 PSVR_STATUS_BIT_UNKNOWN_BIT_3 = (1 << 3),
44 PSVR_STATUS_BIT_HEADPHONES_CONNECTED = (1 << 4),
45 PSVR_STATUS_BIT_MUTE_ENABLED = (1 << 5),
46 PSVR_STATUS_BIT_UNKNOWN_BIT_6 = (1 << 6),
47 PSVR_STATUS_BIT_UNKNOWN_BIT_7 = (1 << 7),
51#define PSVR_STATUS_VR_MODE_OFF 0
52#define PSVR_STATUS_VR_MODE_ON 1
54#define PSVR_TICKS_PER_SECOND (1000000.0)
55#define PSVR_NS_PER_TICK (1000)
57#define PSVR_PKG_STATUS 0xF0
58#define PSVR_PKG_DEVICE_NAME 0x80
59#define PSVR_PKG_CALIBRATION 0x86
60#define PSVR_PKG_0xA0 0xA0
61#define PSVR_PKG_0x82 0x82
63#define PSVR_GET_DATA_ID_DEVICE_NAME 0x80
64#define PSVR_GET_DATA_ID_CALIBRATION 0x86
65#define PSVR_GET_DATA_ID_0x82 0x82
114 uint8_t display_time;
126psvr_device_create_auto_prober(
struct hid_device_info *sensor_hid_info,
127 struct hid_device_info *control_hid_info,
132psvr_parse_sensor_packet(
struct psvr_parsed_sensor *sensor,
const uint8_t *buffer,
int size);
135psvr_parse_status_packet(
struct psvr_parsed_status *status,
const uint8_t *buffer,
int size);
u_logging_level
Logging level enum.
Definition: u_logging.h:43
A parsed single gyro, accel and tick sample.
Definition: psvr_device.h:82
Over the wire sensor packet from the headset.
Definition: psvr_device.h:94
A status packet from the headset in wire format.
Definition: psvr_device.h:111
A single HMD or input device.
Definition: xrt_device.h:241
A tracked PSVR headset.
Definition: xrt_tracking.h:260
A 3 element vector with 32 bit integers.
Definition: xrt_defines.h:336
Basic logging functionality.
Header defining an xrt display or controller device.
Common interface to probe for devices.