Commit Graph

10 Commits

Author SHA1 Message Date
e2ed974596 Add documentation to usb_hid_item 2022-09-09 14:38:04 +02:00
2175e1ed74 Split usb_report_descriptor into usb_hid_{item,usage}
This is cleaner IMO.

* usb_hid_item deals with parsing the report descriptor.
* usb_hid_usage has tables that define each usage.
2022-09-09 02:42:00 +02:00
7f6eb97569 Make Request constants public
Manually constructing a RawRequest is more convenient sometimes.
2022-09-08 23:58:15 +02:00
c7f80c5737 Remove Report descriptor structure
Report descriptors lack the 2 byte header other descriptors have and
can't be parsed like the rest.
2022-09-08 18:55:07 +02:00
82626f0075 Add usb_request crate
It has structures for representing requests & descriptors.
2022-09-08 18:46:56 +02:00
86d8fc6880 Prefix crate name with "usb_" 2022-09-08 13:56:47 +02:00
b63e9308b5 Rename repository from usb_hid to usb 2022-09-08 13:47:27 +02:00
2bf5a9979b Add LICENSE, README 2022-09-08 13:17:12 +02:00
20909cdfd6 Remove usage page stack
Apparently the whole stack thing only applies to Push/Pop items.
2022-09-08 13:09:49 +02:00
c77700a9ea Report descriptor parser prototype 2022-09-08 01:40:40 +02:00