-
Notifications
You must be signed in to change notification settings - Fork 40
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
Win10 compatibility. #28
Comments
I think the wrapping usage is meant to be inherited right? #8 seems similar. If we can work out what Windows is doing, I'm happy to implement a workaround like what we did for |
My understanding is the wrapping usage should be inherited (and that's the behavior of Linux/OSX). To make the generated descriptor work cross platform I can see two ways. Either add explicit syntax in the macro so that you can annotate the wrapped |
I think a new quirks mode that emits the usage before each input/output element in the report would work? Not sure how i feel about this as it might make the descriptor huge, but worth a try? wdyt? |
Hmm, I worked around the problem by manually coding the descriptor, so I don't have a full picture on where its actually required for it to work cross platform. When data is later streamed, does the descriptor size make much difference you think? |
If you make that change to the descriptor and use it in Windows, does it still work in Linux? |
Hi. Since its been a while, I assume the ecosystem including the usbdevice have progressed a bit, so maybe less of a hack is needed nowadays. /Per |
There seems to be some compatibility issue with Win10 and the generated descriptor(s).
The generated descriptor looks like this.
This works well under Linux (tested under arch) and OSX. Hower under Win10 the device is not properly detected/configured (
USB Device Viewer
shows the descriptors correctly but claims the devic to be in low power state.Adding a
usage
beforeInput
solves the issue.Either MS is out of specs (the wrapping usage should be inherited) or Linux/OSX just playing nice guessing, not sure.
Maybe there is already some workaround for this problem that I missed. If not, perhaps a syntax extension to the
#[item_settings usage = 0x01, ...]
would be possible. Or maybe let the proc macro always emit inheritedusage
from the wrapping collection (in this case).Admittedly I'm a USB novice, so not sure what's best here.
/Per
The text was updated successfully, but these errors were encountered: