hidapi
Loading...
Searching...
No Matches
hidapi_libusb.h
Go to the documentation of this file.
1/*******************************************************
2 HIDAPI - Multi-Platform library for
3 communication with HID devices.
4
5 libusb/hidapi Team
6
7 Copyright 2021, All Rights Reserved.
8
9 At the discretion of the user of this library,
10 this software may be licensed under the terms of the
11 GNU General Public License v3, a BSD-Style license, or the
12 original HIDAPI license as outlined in the LICENSE.txt,
13 LICENSE-gpl3.txt, LICENSE-bsd.txt, and LICENSE-orig.txt
14 files located at the root of the source distribution.
15 These files may also be found in the public source
16 code repository located at:
17 https://github.com/libusb/hidapi .
18********************************************************/
19
25
26#ifndef HIDAPI_LIBUSB_H__
27#define HIDAPI_LIBUSB_H__
28
29#include <stdint.h>
30
31#include "hidapi.h"
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
50 HID_API_EXPORT hid_device * HID_API_CALL hid_libusb_wrap_sys_device(intptr_t sys_dev, int interface_num);
51
68
88
108
128
129
130#ifdef __cplusplus
131}
132#endif
133
134#endif
HID_API_EXPORT hid_device *HID_API_CALL hid_libusb_wrap_sys_device(intptr_t sys_dev, int interface_num)
Open a HID device using libusb_wrap_sys_device. See https://libusb.sourceforge.io/api-1....
HID_API_EXPORT void HID_API_CALL hid_libusb_set_send_output_report_timeout(hid_device *dev, unsigned int timeout)
Sets the timeout for hid_send_output_report operation.
HID_API_EXPORT void HID_API_CALL hid_libusb_set_write_timeout(hid_device *dev, unsigned int timeout)
Sets the timeout for hid_write operation.
HID_API_EXPORT void HID_API_CALL hid_libusb_set_send_feature_report_timeout(hid_device *dev, unsigned int timeout)
Sets the timeout for hid_send_feature_report operation.
HID_API_EXPORT int HID_API_CALL hid_libusb_error(hid_device *dev)
Similar to hid_error but gives a libusb error code.
#define HID_API_EXPORT
Definition hidapi.h:39
struct hid_device_ hid_device
Definition hidapi.h:116
#define HID_API_CALL
Definition hidapi.h:42