aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Clippy.Brian Cully2019-09-091-14/+14
|
* Add some tests around device assignment.Brian Cully2019-08-171-19/+121
| | | | And refactor things to use iterators while I'm at it.
* Documentation.Brian Cully2019-08-111-0/+7
|
* Don't fail enumeration if we can't set the keyboard report.Brian Cully2019-08-101-3/+7
| | | | | Just log a warning and proceed to polling for keyboard reports. This fixes the Model 01, which was failing this transaction.
* Store max packet sizes from device and endpoint descriptors.Brian Cully2019-08-101-22/+45
| | | | | Device's bMaxPacketSize is used for the control endpoint 0, otherwise the endpoint max packet sizes come from the endpoint descriptors.
* Test parser returns None result at end of descriptor.Brian Cully2019-08-101-0/+2
|
* Move descriptor parser to its own type.Brian Cully2019-08-101-71/+77
| | | | Create a parser with `DescriptorParser::from` and iterate with `next`.
* Log endpoint for boot keyboard.Brian Cully2019-08-091-0/+1
|
* Probe for boot keyboard endpoint, instead of hardcoding.Brian Cully2019-08-091-10/+238
| | | | | This adds a rudimentary descriptor parser, so we can go through the full configuration looking for the correct endpoint.
* Pass config_index into SetConfig enum.Brian Cully2019-08-081-7/+7
| | | | Assume we'll figure out which index to use when parsing configurations.
* Add a callback for when a keyboard report is received.Brian Cully2019-08-081-8/+24
|
* Add some docsBrian Cully2019-08-081-0/+2
|
* Initial commitv0.1.0Brian Cully2019-08-041-0/+333