-
Notifications
You must be signed in to change notification settings - Fork 29
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
Display all descriptor types in device view #197
Display all descriptor types in device view #197
Conversation
Could you rebase this? There's just a minor conflict from merging #193 |
These tests have proven hard to maintain, since they depend on items in the device tree appearing at specific indexes which will break as further descriptors are added.
Move DeviceId and DeviceVersion to struct fields, and define a new DeviceItemContent enum which embeds descriptor data where needed.
These methods took references previously because it reduced the number of '*' operators needed when working with DeviceItem variants by reference. With the new DeviceItem type this is no longer an issue.
These previously differed only by their fixed indent.
These were more useful when they were fields on DeviceItem, but now they just complicate things.
5127565
to
6839b9b
Compare
Done! |
I've just realised that one thing in the last commit might need some further thought. I shortened the notation However, in the traffic view we use that same notation to indicate
So perhaps we should go with something else like |
Alternate settings are abbreviated to an "N alt M" format to leave more space for the interface class text.
6839b9b
to
be24322
Compare
I've gone ahead and made the change to |
This PR extends the device view to display additional descriptor types.
usb.ids
data.Example:
A subsequent PR will support saving descriptors to files for further analysis, building on the features in #196.