OpenDevicePartnership / OpenDevicePartnership/embedded-services
Initialize device.regs according to HID descriptor
@razbhe10 is already working on this.
Since Jan 13, 2026.
- Dominant language
- Rust
- Stars
- 23
- Forks
- 53
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 13
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.