Replies: 6 comments 1 reply
|
Hi! Please first take a look at #9 and take the time to grasp the parsing logic. You can build your parser that understands the layout of the reports, and stores the conversion values for each item. This functionality is something I intended to build myself at some point, but it is shelved until customer demand. |
|
Overriding Just need to parse LOCAL In parser.hpp |
|
I have changes to print this, which is enough logic to create a decoding map. I just needed to make this change |
|
Okay cool. This is where I'm at without the patch: https://github.com/jwinarske/sdbus-cpp-examples/blob/main/src/bluez/ps5_dual_sense/report_parser.hpp |
|
Having the page headers include a function to return the type would be nice. Possibly ToString as well. e.g. |
|
As a heads up, I have now implemented usage value to string conversion, you can see some examples in tests/formatter.cpp |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm looking to dynamically parse a value from report id 1 based on the report descriptor.
What would be the suggested pattern using your library?
Examples for these basic scenarios would be helpful
nThe Linux kernel driver parses with some "helper functions":
https://github.com/torvalds/linux/blob/master/drivers/hid/hid-playstation.c#L1315
I'm working on user space drivers.
Again I appreciate your work and time. Thanks!
All reactions