embassy
embassy copied to clipboard
embassy-usb modifications
BosWriter doesn't write valid attributes, seems like it was just added as an example. BOS needs more data than is currently being passed to the builder, so I don't think it's even really necessary as a builder param until it's more flushed out. Though I've left is as optional for now.
I'm not sure making the BOS descriptor optional is the best approach. While it's not required for USB 2.0 devices it is required in later editions of the spec and it is being used for various extensions. For example, the MSOS descriptors feature needs to write a BOS capability. If the BOS descriptor is optional that could lead to a runtime panic in the case that someone using the msos-descriptor feature tries to write a MSOS descriptor while passing None for the BOS descriptor buffer.
closing due to staleness.
- The HID protocol seems a useful addition, feel free to repoen a PR with just that.
- I'm not sure about the BOS thing.