Monado OpenXR Runtime
Data Structures | Macros | Enumerations | Functions
vive_device.h File Reference

vive device header More...

#include "xrt/xrt_device.h"
#include "math/m_imu_3dof.h"
#include "os/os_threading.h"
Include dependency graph for vive_device.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lh_model
 A lighthouse consisting of sensors. More...
 
struct  lh_sensor
 A single lighthouse senosor point and normal, in IMU space. More...
 
struct  vive_device
 

Macros

#define VIVE_SPEW(p, ...)
 
#define VIVE_DEBUG(p, ...)
 
#define VIVE_ERROR(...)
 

Enumerations

enum  VIVE_VARIANT { VIVE_UNKNOWN = 0, VIVE_VARIANT_VIVE, VIVE_VARIANT_PRO, VIVE_VARIANT_INDEX }
 

Functions

struct vive_devicevive_device_create (struct os_hid_device *mainboard_dev, struct os_hid_device *sensors_dev, enum VIVE_VARIANT variant)
 

Detailed Description

vive device header

Author
Lubosz Sarnecki lubos.nosp@m.z.sa.nosp@m.rneck.nosp@m.i@co.nosp@m.llabo.nosp@m.ra.c.nosp@m.om

Macro Definition Documentation

◆ VIVE_DEBUG

#define VIVE_DEBUG (   p,
  ... 
)
Value:
do { \
if (p->print_debug) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)

Referenced by vive_parse_config().

◆ VIVE_ERROR

#define VIVE_ERROR (   ...)
Value:
do { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} while (false)

Referenced by vive_parse_config().

◆ VIVE_SPEW

#define VIVE_SPEW (   p,
  ... 
)
Value:
do { \
if (p->print_spew) { \
fprintf(stderr, "%s - ", __func__); \
fprintf(stderr, __VA_ARGS__); \
fprintf(stderr, "\n"); \
} \
} while (false)

Enumeration Type Documentation

◆ VIVE_VARIANT

Enumerator
VIVE_UNKNOWN 
VIVE_VARIANT_VIVE 
VIVE_VARIANT_PRO 
VIVE_VARIANT_INDEX 

Function Documentation

◆ vive_device_create()

struct vive_device* vive_device_create ( struct os_hid_device mainboard_dev,
struct os_hid_device sensors_dev,
enum VIVE_VARIANT  variant 
)