Monado OpenXR Runtime
daydream_device.h File Reference

Interface to Daydream driver code. More...

#include "math/m_api.h"
#include "math/m_imu_pre.h"
#include "math/m_imu_3dof.h"
#include "xrt/xrt_device.h"
#include "os/os_threading.h"
#include "os/os_ble.h"
#include "util/u_logging.h"
Include dependency graph for daydream_device.h:

Go to the source code of this file.

Data Structures

struct  daydream_parsed_sample
 A parsed sample of accel and gyro. More...
 
struct  daydream_parsed_input
 
struct  daydream_device
 

Macros

#define DAYDREAM_TRACE(d, ...)   U_LOG_XDEV_IFL_T(&d->base, d->log_level, __VA_ARGS__)
 
#define DAYDREAM_DEBUG(d, ...)   U_LOG_XDEV_IFL_D(&d->base, d->log_level, __VA_ARGS__)
 
#define DAYDREAM_INFO(d, ...)   U_LOG_XDEV_IFL_I(&d->base, d->log_level, __VA_ARGS__)
 
#define DAYDREAM_WARN(d, ...)   U_LOG_XDEV_IFL_W(&d->base, d->log_level, __VA_ARGS__)
 
#define DAYDREAM_ERROR(d, ...)   U_LOG_XDEV_IFL_E(&d->base, d->log_level, __VA_ARGS__)
 

Enumerations

enum  daydream_button_bits {
  DAYDREAM_TOUCHPAD_BUTTON_BIT = 0 , DAYDREAM_CIRCLE_BUTTON_BIT = 1 , DAYDREAM_BAR_BUTTON_BIT = 2 , DAYDREAM_VOLUP_BUTTON_BIT = 3 ,
  DAYDREAM_VOLDN_BUTTON_BIT = 4
}
 
enum  daydream_button_masks {
  DAYDREAM_TOUCHPAD_BUTTON_MASK = 1 << DAYDREAM_TOUCHPAD_BUTTON_BIT , DAYDREAM_CIRCLE_BUTTON_MASK = 1 << DAYDREAM_CIRCLE_BUTTON_BIT , DAYDREAM_BAR_BUTTON_MASK = 1 << DAYDREAM_BAR_BUTTON_BIT , DAYDREAM_VOLUP_BUTTON_MASK = 1 << DAYDREAM_VOLUP_BUTTON_BIT ,
  DAYDREAM_VOLDN_BUTTON_MASK = 1 << DAYDREAM_VOLDN_BUTTON_BIT
}
 

Functions

struct daydream_devicedaydream_device_create (struct os_ble_device *ble)
 

Detailed Description

Interface to Daydream driver code.

Author
Pete Black pete..nosp@m.blac.nosp@m.k@col.nosp@m.labo.nosp@m.ra.co.nosp@m.m