aboutsummaryrefslogtreecommitdiffstats
path: root/usbh/src/device.rs
Commit message (Collapse)AuthorAgeFilesLines
* Migrate everything over to separate libraries.Brian Cully2019-08-041-392/+0
| | | | | | | | | | | * `usb-host` is the crate containing the HAL traits. * `bootkbd` is a crate for a bare-bones boot protocol keyboard driver. * `samd21-host` is a crate with an implementation of `usb-host` for a SAMD21 platform, with an example for the trinket-m0 which uses the `bootkbd` driver to print keyboard reports.
* Short-circuit out of NAK on interrupt pipes.Brian Cully2019-08-011-6/+5
| | | | | Don't bother retrying. NAK on an interrupt endpoint means there's no data.
* Refactor so Endpoint controls pipe characteristics.Brian Cully2019-08-011-49/+134
| | | | | | Endpoints know their own address, number, max packet size, and data toggle states. When a pipe is needed, pass in the endpoint its needed for so that configuration can happen according to that endpoint.
* WIP: Holy smokes I read my first keyboard report.Brian Cully2019-07-301-4/+4
| | | | Too bad it's still trfail town after the first, but progress!
* Only make three attempts to get the keyboard report.Brian Cully2019-07-301-2/+11
| | | | I'm tired of the spam, and three should be enough.
* `control_req` -> `control_transfer`.Brian Cully2019-07-281-6/+10
| | | | | Same as in/out transfer functions now, and matches USB spec terminology.
* Add pipe::NO_DATA_STAGE const for convenience.Brian Cully2019-07-281-3/+3
| | | | | For use in `control_req`'s buffer argument if no data stage is required. It was either this or have a separate function.
* Remove DataBuf exposure outside of pipe impl.Brian Cully2019-07-281-15/+14
|
* Rename basic USB protocol types.Brian Cully2019-07-281-18/+18
|
* Post-SetAddress settle delay is actually 2ms.Brian Cully2019-07-281-1/+1
|
* WIP: read keyboard report (doesn't work)Brian Cully2019-07-281-3/+64
|
* Move post-address device config to Device impl.Brian Cully2019-07-271-14/+171
|
* WIP: we have lights on the keyboard!Brian Cully2019-07-271-0/+78