Monado OpenXR Runtime
oh_device.h File Reference

Interface to OpenHMD driver code. More...

#include "xrt/xrt_device.h"
#include "math/m_api.h"
#include "openhmd.h"
Include dependency graph for oh_device.h:

Go to the source code of this file.

Macros

#define OHMD_TRACE(d, ...)   U_LOG_XDEV_IFL_T(&d->base, d->log_level, __VA_ARGS__)
 
#define OHMD_DEBUG(d, ...)   U_LOG_XDEV_IFL_D(&d->base, d->log_level, __VA_ARGS__)
 
#define OHMD_INFO(d, ...)   U_LOG_XDEV_IFL_I(&d->base, d->log_level, __VA_ARGS__)
 
#define OHMD_WARN(d, ...)   U_LOG_XDEV_IFL_W(&d->base, d->log_level, __VA_ARGS__)
 
#define OHMD_ERROR(d, ...)   U_LOG_XDEV_IFL_E(&d->base, d->log_level, __VA_ARGS__)
 

Functions

int oh_device_create (ohmd_context *ctx, bool no_hmds, struct xrt_device **out_xdevs)
 

Detailed Description

Interface to OpenHMD driver code.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Function Documentation

◆ oh_device_create()

int oh_device_create ( ohmd_context *  ctx,
bool  no_hmds,
struct xrt_device **  out_xdevs 
)
Todo:
: support mix of 3dof and 6dof OpenHMD devices

References xrt_tracking_origin::type, U_LOG_D, U_LOG_W, U_TYPED_CALLOC, and XRT_MAX_DEVICES_PER_PROBE.