Monado OpenXR Runtime
|
PSVR packet parsing implementation, imported from OpenHMD. More...
#include "xrt/xrt_compiler.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "psvr_device.h"
#include <stdio.h>
Functions | |
static void | skip (const uint8_t **buffer, size_t num) |
static void | read_u8 (const uint8_t **buffer, uint8_t *out_value) |
static void | read_u16 (const uint8_t **buffer, uint16_t *out_value) |
static XRT_MAYBE_UNUSED void | read_i16 (const uint8_t **buffer, int16_t *out_value) |
static void | read_i16_to_i32 (const uint8_t **buffer, int32_t *out_value) |
static void | read_u32 (const uint8_t **buffer, uint32_t *out_value) |
static void | read_sample (const uint8_t **buffer, struct psvr_parsed_sample *sample) |
bool | psvr_parse_sensor_packet (struct psvr_parsed_sensor *sensor, const uint8_t *buffer, int size) |
bool | psvr_parse_status_packet (struct psvr_parsed_status *status, const uint8_t *buffer, int size) |
PSVR packet parsing implementation, imported from OpenHMD.