hidapi
Loading...
Searching...
No Matches
hidapi_winapi.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 2022, 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_WINAPI_H__
27#define HIDAPI_WINAPI_H__
28
29#include <stdint.h>
30
31#include <guiddef.h>
32
33#include "hidapi.h"
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
55
69 int HID_API_EXPORT_CALL hid_winapi_descriptor_reconstruct_pp_data(void *hidp_preparsed_data, unsigned char *buf, size_t buf_size);
70
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif
void HID_API_EXPORT_CALL hid_winapi_set_write_timeout(hid_device *dev, unsigned long timeout)
Sets the timeout for hid_write operation.
int HID_API_EXPORT_CALL hid_winapi_descriptor_reconstruct_pp_data(void *hidp_preparsed_data, unsigned char *buf, size_t buf_size)
Reconstructs a HID Report Descriptor from a Win32 HIDP_PREPARSED_DATA structure. This reconstructed r...
int HID_API_EXPORT_CALL hid_winapi_get_container_id(hid_device *dev, GUID *container_id)
Get the container ID for a HID device.
#define HID_API_EXPORT_CALL
Definition hidapi.h:44
struct hid_device_ hid_device
Definition hidapi.h:116