aboutsummaryrefslogtreecommitdiffstats
path: root/usbh/src/usbproto.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename RequestType subfields.Brian Cully2019-07-281-75/+74
| | | | | | | Mostly obvious stuff, but change `USBSetupType` to `RequestKind`, so it doesn't conflict with the `RequestType` in which it lives. This also solves the problem with `typ` and `set_typ` methods (now `kind` and `set_kind`).
* Use TryFrom where possible, instead of panicking.Brian Cully2019-07-281-59/+52
|
* Rename basic USB protocol types.Brian Cully2019-07-281-40/+40
|
* Remove duplicate test code.Brian Cully2019-07-251-57/+28
|
* Add deserialize tests for usbproto as well.Brian Cully2019-07-251-0/+40
|
* Make DataBuf hold a mut pointer.Brian Cully2019-07-251-10/+10
| | | | | Since this is being used by hardware DMA, and the hardware treats it as mutable, lets mark it as such.
* Put packet repr back. Add tests.Brian Cully2019-07-251-14/+130
| | | | | Packed was causing problems for logging, so use derived Debug impl instead. Add tests to make sure serialization works as expected.
* Move USB host stuff to separate crate.Brian Cully2019-07-251-0/+331