usb-device icon indicating copy to clipboard operation
usb-device copied to clipboard

Experimental device-side USB framework for microcontrollers in Rust.

Results 34 usb-device issues
Sort by recently updated
recently updated
newest added

Hello everyone! PR #55 implemented describing alternate settings in the `get_descriptor` function. However, handling the respective setup packets was not yet supported. This PR is a proposal to add this...

Heya, I would like to implement USB Audio v1 (specifically, input terminal + AudioStreaming interface) however the spec calls for isochronous endpoints. I _think_ this is possible to implement without...

enhancement

https://github.com/mvirkkunen/usb-device/blob/258ad5b9e44b6ef9b0b7fa55254b12db0a53fc3f/src/device.rs#L413-L417 If `get_configuration_descriptors` throws an error (e.g. because of a buffer overflow), the error will exit the `.accept()` call and then get dropped by the `.ok()` (which will convert errors...

`UsbDevice::poll` currently has a nasty warning: ``` /// Note: The list of classes passed in must be the same for every call while the device is /// configured, or the...

design

I'm interested in implementing high speed support and can make a PR but am not sure how best how to do it. The way I'm thinking is to make these...

Allocating endpoints, validating the configuration, and generating the descriptors is something that could be done at compile time. The result would be a bit of generated code that configures endpoints,...

design

Allow an opt-out for portable atomics, if the platform has atomic load/store then they aren't necessary

This PR updates the traits to allow `poll()` to return `Result` types if needed. I'm unsure if the `UsbClass::poll()` function should return a `Result` or not currently.

Allowing users to free the UsbBus from the UsbAllocator.