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

Interface to direct OSVR HDK driver code. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  hdk_device
 

Macros

#define HDK_SPEW(c, ...)
 
#define HDK_DEBUG(c, ...)
 
#define HDK_ERROR(c, ...)
 

Enumerations

enum  HDK_VARIANT { HDK_UNKNOWN = 0, HDK_VARIANT_1_2, HDK_VARIANT_1_3_1_4, HDK_VARIANT_2 }
 

Functions

struct hdk_devicehdk_device_create (struct os_hid_device *dev, enum HDK_VARIANT variant, bool print_spew, bool print_debug)
 

Detailed Description

Interface to direct OSVR HDK driver code.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m
Ryan Pavlik ryan..nosp@m.pavl.nosp@m.ik@co.nosp@m.llab.nosp@m.ora.c.nosp@m.om

Macro Definition Documentation

◆ HDK_DEBUG

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

◆ HDK_ERROR

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

◆ HDK_SPEW

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