when I use hidapi, how to use 'HidD_SetNumInputBuffers' to set Buffer size ? #154

Closed
opened 2020-03-26 21:20:28 -05:00 by gonboy · 1 comment
gonboy commented 2020-03-26 21:20:28 -05:00 (Migrated from github.com)

when I use hidapi,
how to use 'HidD_SetNumInputBuffers' function to set Buffer size ?

when I use hidapi, how to use 'HidD_SetNumInputBuffers' function to set Buffer size ?
gonboy commented 2020-03-26 22:03:55 -05:00 (Migrated from github.com)

I found the file hidapi/windows/hid.c, include codes

HID_API_EXPORT hid_device * HID_API_CALL hid_open_path(const char *path)
{
....
	/* Set the Input Report buffer size to 64 reports. */
	res = HidD_SetNumInputBuffers(dev->device_handle, 64);
	if (!res) {
		register_error(dev, "HidD_SetNumInputBuffers");
		goto err;
	}
...
}

how to call it HidD_SetNumInputBuffers

I found the file `hidapi/windows/hid.c`, include codes ```cpp HID_API_EXPORT hid_device * HID_API_CALL hid_open_path(const char *path) { .... /* Set the Input Report buffer size to 64 reports. */ res = HidD_SetNumInputBuffers(dev->device_handle, 64); if (!res) { register_error(dev, "HidD_SetNumInputBuffers"); goto err; } ... } ``` how to call it `HidD_SetNumInputBuffers`
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libusb/hidapi#154
No description provided.