Skip to content

Initialize device.regs according to HID descriptor #675

@jerrysxie

Description

@jerrysxie

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 #666 (comment)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions