Skip to content

Runtime descriptor parsing from hidapi #9

Answered by benedekkupper
JunzheFan asked this question in Q&A
Discussion options

You must be logged in to vote

For that the best starting point is here:

constexpr control parse_report_data_field(
const item_type& main_item, const rdf::global_item_store& global_state,
[[maybe_unused]] const items_view_type& main_section, unsigned tlc_count) override
{
using namespace hid::rdf;
report::type rtype = main::tag_to_report_type(main_item.main_tag());
// get report ID (or use 0 if not present)
report::id::type report_id = 0;
const auto* report_id_item = global_state.get_item(global::tag::REPORT_ID);
if (report_id_item != nullptr)
{
report_id = report_id_item->value_unsi…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by benedekkupper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4 on March 11, 2025 12:55.