Monado OpenXR Runtime
opengloves_serial.h
Go to the documentation of this file.
1
// Copyright 2019-2022, Collabora, Ltd.
2
// SPDX-License-Identifier: BSL-1.0
3
/*!
4
* @file
5
* @brief USB Serial interface for OpenGloves.
6
* @author Daniel Willmott <web@dan-w.com>
7
* @ingroup drv_opengloves
8
*/
9
10
#pragma once
11
#include <stdint.h>
12
#include <stddef.h>
13
14
#include "../opengloves_communication.h"
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
20
struct
opengloves_serial_device
21
{
22
struct
opengloves_communication_device
base;
23
int
fd;
24
};
25
26
int
27
opengloves_serial_open(
const
char
*path,
struct
opengloves_communication_device
**out_comm_dev);
28
29
#ifdef __cplusplus
30
}
31
#endif
opengloves_communication_device
Interface for a communication method.
Definition:
opengloves_communication.h:26
opengloves_serial_device
Definition:
opengloves_serial.h:21
drivers
opengloves
communication
serial
opengloves_serial.h
Generated by
1.9.4