You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mu_rust_hid is a general-purpose rust HID Report Descriptor Parser - it's not directly tied to UEFI but it is used by the UEFI hid components (both the older free-standing rust implementation in Mu as well as the patina component used above).
For the use case above, you could extend it with a HID Report Descriptor Generator. The parser that exists today can take a HID Report Descriptor and produce a rust-code representation of that. It'd be a fair amount of work, but you could write something that would take the rust-code representation of a descriptor and convert it back to a report descriptor format. Once you have both the parser and the generator, then a bit of business logic would allow you to parse, manipulate, and then re-generate.
awesome, thanks for the pointers! currently working on getting a single device working, but once I have that working this is next on my list, so I'll definitely take a look at these and see if there are opportunities to leverage/enhance these
Looked into the patina HID stuff, but it looks like that environment has access to a heap that it leverages for some of the HID stuff, and we don't have one on the EC, so we're going to need something a bit different here.
Activity
makubacki commentedon Jun 19, 2026
Patina has some HID support - OpenDevicePartnership/patina-components#8
It's ported from code in https://github.com/microsoft/mu_rust_hid. In the spirit of ODP code sharing, do you or @joschock think there is an opportunity for some layer of common HID support code?
joschock commentedon Jun 19, 2026
mu_rust_hid is a general-purpose rust HID Report Descriptor Parser - it's not directly tied to UEFI but it is used by the UEFI hid components (both the older free-standing rust implementation in Mu as well as the patina component used above).
For the use case above, you could extend it with a HID Report Descriptor Generator. The parser that exists today can take a HID Report Descriptor and produce a rust-code representation of that. It'd be a fair amount of work, but you could write something that would take the rust-code representation of a descriptor and convert it back to a report descriptor format. Once you have both the parser and the generator, then a bit of business logic would allow you to parse, manipulate, and then re-generate.
williampMSFT commentedon Jun 19, 2026
awesome, thanks for the pointers! currently working on getting a single device working, but once I have that working this is next on my list, so I'll definitely take a look at these and see if there are opportunities to leverage/enhance these
williampMSFT commentedon Jul 18, 2026
Looked into the patina HID stuff, but it looks like that environment has access to a heap that it leverages for some of the HID stuff, and we don't have one on the EC, so we're going to need something a bit different here.
I have the pieces I need for the device aggregator implemented in https://github.com/williampMSFT/embedded-services/tree/user/williamp/hid-aggregate-new; however, it depends on https://github.com/williampMSFT/embedded-services/tree/user/williamp/hid-i2c-rework, which is blocked on OpenDevicePartnership/embassy-imxrt#565, which is blocked on a rework of the I2C HAL trait that's necessary because the current one is not correctly implementable on MCXA hardware. Once my chain of dependencies go in, rebase on top of that and get this in.
Implement HID report aggregation (OpenDevicePartnership#933)