Monado OpenXR Runtime
psvr_packet.c File Reference

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>
Include dependency graph for psvr_packet.c:

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)
 

Detailed Description

PSVR packet parsing implementation, imported from OpenHMD.

Author
Joey Ferwerda joeyf.nosp@m.erwe.nosp@m.da@gm.nosp@m.ail..nosp@m.com
Philipp Zabel phili.nosp@m.pp.z.nosp@m.abel@.nosp@m.gmai.nosp@m.l.com
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m