Skip to content

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

Closed

Description

@gonboy

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

Activity

  1. gonboy commented on Mar 27, 2020

    @gonboy
    Author

    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

  2. added
    question
    on Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions