|
static struct psvr_device * | psvr_device (struct xrt_device *p) |
|
static int | open_hid (struct psvr_device *p, struct hid_device_info *dev_info, hid_device **out_dev) |
|
static int | send_to_control (struct psvr_device *psvr, const uint8_t *data, size_t size) |
|
static int | send_request_data (struct psvr_device *psvr, uint8_t id, uint8_t num) |
|
static uint8_t | scale_led_power (uint8_t power) |
|
static void | read_sample_and_apply_calibration (struct psvr_device *psvr, struct psvr_parsed_sample *sample, struct xrt_vec3 *out_accel, struct xrt_vec3 *out_gyro) |
|
static void | update_fusion_locked (struct psvr_device *psvr, struct psvr_parsed_sample *sample, uint64_t timestamp_ns) |
|
static void | update_fusion (struct psvr_device *psvr, struct psvr_parsed_sample *sample, uint64_t timestamp_ns) |
|
static uint32_t | calc_delta_and_handle_rollover (uint32_t next, uint32_t last) |
|
static timepoint_ns | ensure_forward_progress_timestamps (struct psvr_device *psvr, timepoint_ns timestamp_ns) |
|
static void | handle_tracker_sensor_msg (struct psvr_device *psvr, unsigned char *buffer, int size) |
|
static void | sensor_clear_queue (struct psvr_device *psvr) |
|
static int | sensor_read_one_packet (struct psvr_device *psvr) |
|
static void * | sensor_thread (void *ptr) |
|
static void | handle_control_status_msg (struct psvr_device *psvr, unsigned char *buffer, int size) |
|
static void | handle_device_name_msg (struct psvr_device *psvr, unsigned char *buffer, int size) |
|
static void | handle_calibration_msg (struct psvr_device *psvr, const unsigned char *buffer, size_t size) |
|
static void | handle_control_0x82 (struct psvr_device *psvr, unsigned char *buffer, int size) |
|
static void | handle_control_0xA0 (struct psvr_device *psvr, unsigned char *buffer, int size) |
|
static int | read_control_packets (struct psvr_device *psvr) |
|
static int | read_calibration_data (struct psvr_device *psvr) |
| Get the device name data and calibration data, see link below for info. More...
|
|
static int | wait_for_power (struct psvr_device *psvr, bool on) |
|
static int | wait_for_vr_mode (struct psvr_device *psvr, bool on) |
|
static int | control_power_and_wait (struct psvr_device *psvr, bool on) |
|
static int | control_vrmode_and_wait (struct psvr_device *psvr, bool on) |
|
static int | update_leds_if_changed (struct psvr_device *psvr) |
|
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...
|
|
static int | disco_leds (struct psvr_device *psvr) |
|
static void | teardown (struct psvr_device *psvr) |
|
static xrt_result_t | psvr_device_update_inputs (struct xrt_device *xdev) |
|
static xrt_result_t | psvr_device_get_tracked_pose (struct xrt_device *xdev, enum xrt_input_name name, int64_t at_timestamp_ns, struct xrt_space_relation *out_relation) |
|
static void | psvr_device_destroy (struct xrt_device *xdev) |
|
static bool | psvr_compute_distortion (struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *result) |
|
struct xrt_device * | psvr_device_create_auto_prober (struct hid_device_info *sensor_hid_info, struct hid_device_info *control_hid_info, struct xrt_tracked_psvr *tracker, enum u_logging_level log_level) |
|