33 #define HID_API_EXPORT __declspec(dllexport) 36 #define HID_API_EXPORT 40 #define HID_API_EXPORT_CALL HID_API_EXPORT HID_API_CALL 96 int HID_API_EXPORT HID_API_CALL
hid_init(
void);
109 int HID_API_EXPORT HID_API_CALL
hid_exit(
void);
206 int HID_API_EXPORT HID_API_CALL
hid_write(hid_device *device,
const unsigned char *data,
size_t length);
208 int HID_API_EXPORT HID_API_CALL hid_write_timeout(hid_device *device,
209 const unsigned char *data,
233 int HID_API_EXPORT HID_API_CALL
hid_read_timeout(hid_device *dev,
unsigned char *data,
size_t length,
int milliseconds);
253 int HID_API_EXPORT HID_API_CALL
hid_read(hid_device *device,
unsigned char *data,
size_t length);
301 int HID_API_EXPORT HID_API_CALL
hid_send_feature_report(hid_device *device,
const unsigned char *data,
size_t length);
322 int HID_API_EXPORT HID_API_CALL
hid_get_feature_report(hid_device *device,
unsigned char *data,
size_t length);
329 void HID_API_EXPORT HID_API_CALL
hid_close(hid_device *device);
378 int HID_API_EXPORT_CALL
hid_get_indexed_string(hid_device *device,
int string_index,
wchar_t *
string,
size_t maxlen);
389 HID_API_EXPORT
const wchar_t *HID_API_CALL
hid_error(hid_device *device);
HID_API_EXPORT const wchar_t *HID_API_CALL hid_error(hid_device *device)
Get a string describing the last error which occurred.
Definition: hid-linux.c:808
int interface_number
Definition: hidapi.h:76
void HID_API_EXPORT HID_API_CALL hid_free_enumeration(struct hid_device_info *devs)
Free an enumeration Linked List.
Definition: hid-linux.c:583
wchar_t * manufacturer_string
Definition: hidapi.h:63
char * path
Definition: hidapi.h:52
int HID_API_EXPORT HID_API_CALL hid_write(hid_device *device, const unsigned char *data, size_t length)
Write an Output report to a HID device.
Definition: hid-linux.c:686
int HID_API_EXPORT_CALL hid_get_indexed_string(hid_device *device, int string_index, wchar_t *string, size_t maxlen)
Get a string from a HID device, based on its string index.
Definition: hid-linux.c:803
struct hid_device_info * next
Definition: hidapi.h:79
int HID_API_EXPORT HID_API_CALL hid_set_nonblocking(hid_device *device, int nonblock)
Set the device handle to be non-blocking.
Definition: hid-linux.c:748
void HID_API_EXPORT HID_API_CALL hid_close(hid_device *device)
Close a HID device.
Definition: hid-linux.c:780
int HID_API_EXPORT_CALL hid_get_product_string(hid_device *device, wchar_t *string, size_t maxlen)
Get The Product String from a HID device.
Definition: hid-linux.c:793
Definition: hid-linux.c:72
unsigned short product_id
Definition: hidapi.h:56
wchar_t * serial_number
Definition: hidapi.h:58
int HID_API_EXPORT HID_API_CALL hid_exit(void)
Finalize the HIDAPI library.
Definition: hid-linux.c:390
int HID_API_EXPORT HID_API_CALL hid_read_timeout(hid_device *dev, unsigned char *data, size_t length, int milliseconds)
Read an Input report from a HID device with timeout.
Definition: hid-linux.c:695
unsigned short vendor_id
Definition: hidapi.h:54
HID_API_EXPORT hid_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...
Definition: hid-linux.c:598
int HID_API_EXPORT HID_API_CALL hid_get_feature_report(hid_device *device, unsigned char *data, size_t length)
Get a feature report from a HID device.
Definition: hid-linux.c:769
wchar_t * product_string
Definition: hidapi.h:65
unsigned short usage
Definition: hidapi.h:71
int HID_API_EXPORT_CALL hid_get_serial_number_string(hid_device *device, wchar_t *string, size_t maxlen)
Get The Serial Number String from a HID device.
Definition: hid-linux.c:798
int HID_API_EXPORT HID_API_CALL hid_init(void)
Initialize the HIDAPI library.
Definition: hid-linux.c:376
unsigned short usage_page
Definition: hidapi.h:68
int HID_API_EXPORT HID_API_CALL hid_send_feature_report(hid_device *device, const unsigned char *data, size_t length)
Send a Feature report to the device.
Definition: hid-linux.c:758
int HID_API_EXPORT_CALL hid_get_manufacturer_string(hid_device *device, wchar_t *string, size_t maxlen)
Get The Manufacturer String from a HID device.
Definition: hid-linux.c:788
HID_API_EXPORT hid_device *HID_API_CALL hid_open_path(const char *path)
Open a HID device by its path name.
Definition: hid-linux.c:638
struct hid_device_info HID_API_EXPORT *HID_API_CALL hid_enumerate(unsigned short vendor_id, unsigned short product_id)
Enumerate the HID Devices.
Definition: hid-linux.c:396
unsigned short release_number
Definition: hidapi.h:61
int HID_API_EXPORT HID_API_CALL hid_read(hid_device *device, unsigned char *data, size_t length)
Read an Input report from a HID device.
Definition: hid-linux.c:743