Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libusb_set_option #433

Open
danielhrisca opened this issue Jul 6, 2022 · 2 comments
Open

libusb_set_option #433

danielhrisca opened this issue Jul 6, 2022 · 2 comments

Comments

@danielhrisca
Copy link

I'm trying to set the pipe timout value for a windusb device. libusb-1 set this using the function libusb_set_option which is not available from pyusb. Is there any chance to expose this function?

@jonasmalacofilho
Copy link
Member

jonasmalacofilho commented Jul 6, 2022

Since we generally only have a single LibUSB instance per process, I'm reluctant to simply expose that functionality: one caller (say, in one of your dependencies) could easily break expectations of all other callers.

Still, it's something we should have at a low level (see #381 for another use case). When I looked into it, I got stuck on how to properly support the va_list... do you know how to solve that?


All that said, I'm not sure what you meant by setting a pipe timeout with libusb_set_option. None of the libusb_option variants appears to have anything to do with that... is there another, less obvious, option list I'm not aware of?

@mcuee
Copy link
Member

mcuee commented Jul 9, 2022

There is no libusb_option items related to pipe time out.
https://libusb.sourceforge.io/api-1.0/group__libusb__lib.html#ga07d4ec54cf575d672ba94c72b3c0de7c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants