Skip to content

Multiple USB-capable drivers: add ways to tune USB HID config, report, descriptor indexes and in/out endpoints#2331

Merged
jimklimov merged 1 commit intonetworkupstools:masterfrom
jimklimov:issue-2149
Mar 2, 2024
Merged

Multiple USB-capable drivers: add ways to tune USB HID config, report, descriptor indexes and in/out endpoints#2331
jimklimov merged 1 commit intonetworkupstools:masterfrom
jimklimov:issue-2149

Conversation

@jimklimov
Copy link
Copy Markdown
Member

Closes: #2149

Note that this PR only adds support for setting these tunables, but does not revise all of libusb-related codebase that values are not hard-coded but are in fact used from the usb_communication_subdriver_t structure.

A worthy follow-up could be nut-scanner automated discovery of useful interface numbers (e.g. by size).

@AppVeyorBot
Copy link
Copy Markdown

@jimklimov jimklimov force-pushed the issue-2149 branch 2 times, most recently from a5d666b to d9523b8 Compare March 1, 2024 11:17
@AppVeyorBot
Copy link
Copy Markdown

@AppVeyorBot
Copy link
Copy Markdown

…, descriptor indexes and in/out endpoints [networkupstools#2149]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@AppVeyorBot
Copy link
Copy Markdown

@jimklimov jimklimov merged commit 34c8a56 into networkupstools:master Mar 2, 2024
@jimklimov jimklimov deleted the issue-2149 branch March 2, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement USB non-zero interface numbers Most UPSes serve USB interactions on interface 0 which is default. Recent "composite devices" differ USB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libusbX.c: addvar() to let users customize USB config/control/interface descriptor numbers to use with their device

2 participants