Initialize device.regs according to HID descriptor

Open
#675 0 comments 0 reactions 1 assignee View on GitHub

@razbhe10 is already working on this.

Since Jan 13, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement

Currently, all handlers (input, command, report description) pull addresses directly from the HID descriptor. A better approach might be to initialize device.regs when reading the HID descriptor and then have the handlers use device.regs instead. The only catch is that we’d need to lock device.regs during this process. Right now, get_hid_descriptor takes care of the locking.

@jerrysxie Should we explore this option in a separate thread?

Originally posted by @razbhe10 in https://github.com/OpenDevicePartnership/embedded-services/pull/666#discussion_r2685293023

Dominant language
Rust
Stars
25
Forks
54
Avg merge
3d 9h
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenDevicePartnership/embedded-services

All issues in OpenDevicePartnership/embedded-services

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.