Monado OpenXR Runtime
opengloves_prober_serial.c File Reference

OpenGloves serial prober implementation. More...

#include <libudev.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "util/u_debug.h"
#include "xrt/xrt_defines.h"
#include "opengloves_prober_serial.h"
#include "opengloves_serial.h"
Include dependency graph for opengloves_prober_serial.c:

Macros

#define OPENGLOVES_PROBER_LOG_LEVEL   U_LOGGING_TRACE
 
#define OPENGLOVES_ERROR(...)   U_LOG_IFL_E(OPENGLOVES_PROBER_LOG_LEVEL, __VA_ARGS__)
 
#define OPENGLOVES_INFO(...)   U_LOG_IFL_I(OPENGLOVES_PROBER_LOG_LEVEL, __VA_ARGS__)
 
#define OPENGLOVES_TTY_PATH_SIZE   14
 

Functions

static int opengloves_udev_get_sysattr_u16_base16 (struct udev_device *dev, const char *name, uint16_t *out_value)
 
static int opengloves_serial_device_found (const char *sysfs_path, struct opengloves_communication_device **ocdev)
 
int opengloves_get_serial_devices (uint16_t vid, uint16_t pid, struct opengloves_communication_device **out_ocd)
 

Detailed Description

OpenGloves serial prober implementation.

Author
Daniel Willmott web@d.nosp@m.an-w.nosp@m..com