Classes | Macros | Typedefs | Functions
hidapi.h File Reference
#include <wchar.h>
Include dependency graph for hidapi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hidapi_device_info
 

Macros

#define HID_API_CALL
 
#define HID_API_EXPORT
 
#define HID_API_EXPORT_CALL   HID_API_EXPORT HID_API_CALL
 

Typedefs

typedef struct hid_device_ hidapi_device
 

Functions

void HID_API_EXPORT HID_API_CALL hid_close (hidapi_device *device)
 Close a HID device. More...
 
struct hidapi_device_info HID_API_EXPORT *HID_API_CALL hid_enumerate (unsigned short vendor_id, unsigned short product_id)
 Enumerate the HID Devices. More...
 
HID_API_EXPORT const wchar_t *HID_API_CALL hid_error (hidapi_device *device)
 Get a string describing the last error which occurred. More...
 
int HID_API_EXPORT HID_API_CALL hid_exit (void)
 Finalize the HIDAPI library. More...
 
void HID_API_EXPORT HID_API_CALL hid_free_enumeration (struct hidapi_device_info *devs)
 Free an enumeration Linked List. More...
 
int HID_API_EXPORT HID_API_CALL hid_get_feature_report (hidapi_device *device, unsigned char *data, size_t length)
 Get a feature report from a HID device. More...
 
int HID_API_EXPORT_CALL hid_get_indexed_string (hidapi_device *device, int string_index, wchar_t *string, size_t maxlen)
 Get a string from a HID device, based on its string index. More...
 
int HID_API_EXPORT_CALL hid_get_manufacturer_string (hidapi_device *device, wchar_t *string, size_t maxlen)
 Get The Manufacturer String from a HID device. More...
 
int HID_API_EXPORT_CALL hid_get_product_string (hidapi_device *device, wchar_t *string, size_t maxlen)
 Get The Product String from a HID device. More...
 
int HID_API_EXPORT_CALL hid_get_serial_number_string (hidapi_device *device, wchar_t *string, size_t maxlen)
 Get The Serial Number String from a HID device. More...
 
int HID_API_EXPORT HID_API_CALL hid_init (void)
 Initialize the HIDAPI library. More...
 
HID_API_EXPORT hidapi_device *HID_API_CALL hid_open (unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number)
 Open a HID device using a Vendor ID (VID), Product ID (PID) and optionally a serial number. More...
 
HID_API_EXPORT hidapi_device *HID_API_CALL hid_open_path (const char *path)
 Open a HID device by its path name. More...
 
int HID_API_EXPORT HID_API_CALL hid_read (hidapi_device *device, unsigned char *data, size_t length)
 Read an Input report from a HID device. More...
 
int HID_API_EXPORT HID_API_CALL hid_read_timeout (hidapi_device *dev, unsigned char *data, size_t length, int milliseconds)
 Read an Input report from a HID device with timeout. More...
 
int HID_API_EXPORT HID_API_CALL hid_send_feature_report (hidapi_device *device, const unsigned char *data, size_t length)
 Send a Feature report to the device. More...
 
int HID_API_EXPORT HID_API_CALL hid_set_nonblocking (hidapi_device *device, int nonblock)
 Set the device handle to be non-blocking. More...
 
int HID_API_EXPORT HID_API_CALL hid_write (hidapi_device *device, const unsigned char *data, size_t length)
 Write an Output report to a HID device. More...
 

Macro Definition Documentation

#define HID_API_CALL

API call macro

Definition at line 37 of file hidapi.h.

#define HID_API_EXPORT

API export macro

Definition at line 36 of file hidapi.h.

#define HID_API_EXPORT_CALL   HID_API_EXPORT HID_API_CALL

API export and call macro

Definition at line 40 of file hidapi.h.

Typedef Documentation

typedef struct hid_device_ hidapi_device

opaque hidapi structure

Definition at line 46 of file hidapi.h.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:26