aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Bump max device to 32.Brian Cully2019-09-261-1/+1
|
* Add tests for the KeyboardIO Model 01.Brian Cully2019-09-261-1/+320
| | | | Requires a bump in the config buffer size, as the Model 01 uses 150 bytes.
* Add the boot keyboard interface number to the `EP` struct.Brian Cully2019-09-261-28/+45
| | | | Some setup packets (SetReport/SetProtocol) require this.
* Use MaybeUninit for device list.Brian Cully2019-09-261-4/+10
| | | | | This allows us to use `MAX_DEVICES` of any size and doesn't require Rust's limited array initialization hacks.
* 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