aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb/src/control.rs
Commit message (Collapse)AuthorAgeFilesLines
* Apply Pedantic Clippy LintsRafael Bachmann2023-10-151-1/+1
|
* usb: unify ControlHandler+DeviceStateHandler, route all control requests to ↵Dario Nieuwenhuis2023-02-081-58/+0
| | | | | | | | all handlers. - Allows classes to handle vendor requests. - Allows classes to use a single handler for multiple interfaces. - Allows classes to access the other events (previously only `reset` was available).
* usb: docsDario Nieuwenhuis2023-01-311-0/+7
|
* usb: do not allow converting Directon to/from u8Dario Nieuwenhuis2022-09-261-1/+1
|
* usb: split driver trait to separate crate.Dario Nieuwenhuis2022-09-261-2/+3
|
* nRF documentation warning fixesUlf Lilleengen2022-08-221-1/+2
|
* usb: merge Control logic into main code.Dario Nieuwenhuis2022-05-091-123/+0
| | | | | Now that control stuff is called from just one place, there's no need to keep it as a separate struct.
* usb: simplify control in/out handlng, calling response from a single place.Dario Nieuwenhuis2022-05-091-26/+3
|
* usb: add support for custom string descriptors.Dario Nieuwenhuis2022-04-231-0/+14
|
* usb: builtin handling of interface alternate settingsDario Nieuwenhuis2022-04-231-20/+17
| | | | | | | | The stack reads its own descriptors to figure out which endpoints are used in which alt settings, and enables/disables them as needed. The ControlHandler has a callback so it can get notified of alternate setting changes, which is purely informative (it doesn't have to do anything).
* usb: fix wrong logging of CONTROL OUT data.Dario Nieuwenhuis2022-04-151-2/+2
|
* Unify ReadError and WriteError into EndpointErroralexmoon2022-04-091-2/+2
|
* usb: abort control data in/out on reset or when receiving another SETUP.Dario Nieuwenhuis2022-04-061-1/+7
| | | | This removes the horrible timeout hack.
* usb: fix slow enumeration with EP0 max_packet_size of 8 or 16.Dario Nieuwenhuis2022-04-061-1/+1
|
* usb: centralize all control logging in control.rsDario Nieuwenhuis2022-04-061-3/+13
|
* Refactor ControlPipe to use the typestate pattern for safetyalexmoon2022-04-061-0/+121
|
* Add handlers for standard reqs to ControlHandleralexmoon2022-04-061-0/+23
|
* Add a control_buf to UsbDevicealexmoon2022-04-061-1/+1
|
* Switch to ControlHandler owned bufs for control_in()alexmoon2022-04-061-4/+3
|
* usb: update docs on ControlHandler.Dario Nieuwenhuis2022-04-061-17/+4
|
* usb: simplify buffer handling for Control IN transfers.Dario Nieuwenhuis2022-04-061-49/+9
|
* usb: nicer names for control structs.Dario Nieuwenhuis2022-04-061-19/+15
|
* usb: move all control-related stuff to `mod control`.Dario Nieuwenhuis2022-04-061-0/+103
|
* Add support for USB classes handling control requests.alexmoon2022-04-061-13/+4
|
* wip: experimental async usb stackDario Nieuwenhuis2022-04-061-0/+134