39enum daydream_button_bits
41 DAYDREAM_TOUCHPAD_BUTTON_BIT = 0,
42 DAYDREAM_CIRCLE_BUTTON_BIT = 1,
43 DAYDREAM_BAR_BUTTON_BIT = 2,
44 DAYDREAM_VOLUP_BUTTON_BIT = 3,
45 DAYDREAM_VOLDN_BUTTON_BIT = 4,
48enum daydream_button_masks
50 DAYDREAM_TOUCHPAD_BUTTON_MASK = 1 << DAYDREAM_TOUCHPAD_BUTTON_BIT,
51 DAYDREAM_CIRCLE_BUTTON_MASK = 1 << DAYDREAM_CIRCLE_BUTTON_BIT,
52 DAYDREAM_BAR_BUTTON_MASK = 1 << DAYDREAM_BAR_BUTTON_BIT,
53 DAYDREAM_VOLUP_BUTTON_MASK = 1 << DAYDREAM_VOLUP_BUTTON_BIT,
54 DAYDREAM_VOLDN_BUTTON_MASK = 1 << DAYDREAM_VOLDN_BUTTON_BIT,
61 uint16_t timestamp_last;
102#define DAYDREAM_TRACE(d, ...) U_LOG_XDEV_IFL_T(&d->base, d->log_level, __VA_ARGS__)
103#define DAYDREAM_DEBUG(d, ...) U_LOG_XDEV_IFL_D(&d->base, d->log_level, __VA_ARGS__)
104#define DAYDREAM_INFO(d, ...) U_LOG_XDEV_IFL_I(&d->base, d->log_level, __VA_ARGS__)
105#define DAYDREAM_WARN(d, ...) U_LOG_XDEV_IFL_W(&d->base, d->log_level, __VA_ARGS__)
106#define DAYDREAM_ERROR(d, ...) U_LOG_XDEV_IFL_E(&d->base, d->log_level, __VA_ARGS__)
u_logging_level
Logging level enum.
Definition: u_logging.h:43
C interface to math library.
A IMU fusion specially made for 3dof devices.
Wrapper around OS native BLE functions.
Wrapper around OS threading native functions.
Definition: daydream_device.h:70
struct os_mutex lock
Lock for last and fusion.
Definition: daydream_device.h:80
struct daydream_parsed_input last
Last sensor read.
Definition: daydream_device.h:83
A parsed sample of accel and gyro.
Definition: daydream_device.h:33
Definition: m_imu_3dof.h:35
This is a common IMU pre-filter which takes raw 'ticks' from an IMU measurement and converts it into ...
Definition: m_imu_pre.h:48
Representing a single ble notify attribute on a device.
Definition: os_ble.h:29
A wrapper around a native mutex.
Definition: os_threading.h:55
All in one helper that handles locking, waiting for change and starting a thread.
Definition: os_threading.h:453
A single HMD or input device.
Definition: xrt_device.h:241
A 2 element vector with 32 bit integers.
Definition: xrt_defines.h:348
A 3 element vector with 32 bit integers.
Definition: xrt_defines.h:336
Basic logging functionality.
Header defining an xrt display or controller device.