SolarXR pose feeder.
More...
#include "feeder.h"
#include "solarxr_ipc_message.h"
#include "util/u_hashmap.h"
#include "xrt/xrt_device.h"
#include <math.h>
#include <pb.h>
|
|
#define | PROTOBUF_FLOAT(v_) ((uint8_t *)&(v_))[0], ((uint8_t *)&(v_))[1], ((uint8_t *)&(v_))[2], ((uint8_t *)&(v_))[3] |
| |
| #define | PROTOBUF_INT32(v_) |
| |
|
|
bool | feeder_add_device (struct feeder *const feeder, struct xrt_device *const xdev) |
| |
|
static void | feeder_device_unlink (struct feeder_device *const device, struct xrt_device *const xdev, const enum u_logging_level log_level) |
| |
|
void | feeder_remove_device (struct feeder *const feeder, struct xrt_device *const xdev) |
| |
|
static void | feeder_device_remove_cb (const uint64_t key, const void *const value, void *const userptr) |
| |
|
void | feeder_clear_devices (struct feeder *const feeder) |
| |
|
static void | feeder_device_send_feedback_cb (const uint64_t key, const void *const value, void *const userptr) |
| |
|
void | feeder_send_feedback (struct feeder *const feeder) |
| |
|
bool | feeder_init (struct feeder *const feeder, const enum u_logging_level log_level) |
| |
|
static void | feeder_device_free_cb (const uint64_t key, const void *const value, void *const userptr) |
| |
|
void | feeder_fini (struct feeder *const feeder) |
| |
|
|
static const char | manufacturer [] = "Monado" |
| |
◆ PROTOBUF_INT32
| #define PROTOBUF_INT32 |
( |
|
v_ | ) |
|
Value: (uint8_t)(0x80 | (uint32_t)(v_)), (uint8_t)(0x80 | (uint32_t)(v_) >> 7), \
(uint8_t)(0x80 | (uint32_t)(v_) >> 14), (uint8_t)(0x80 | (uint32_t)(v_) >> 21), (uint32_t)(v_) >> 28