diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-04-16 01:59:40 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-04-16 01:59:40 +0200 |
| commit | c0de54a341dc40b600574a5009a3d4c54e52d5c8 (patch) | |
| tree | a26059f90bfd8a2a1d204414415951593c6822a2 /docs/modules | |
| parent | 94090e068ec8c56e4fd6676330d87305c5dfee3e (diff) | |
usb-hid: Simplify API.
- Renamed structs to HidReaderWriter, HidReader, HidWriter.
- Removed unused const generics on `State`.
- Simplified generics on `HidReaderWriter`.
The class type previously was `HidClass<D, Driver<'d, USBD>, ReportReader<'d, Driver<'d, USBD>, OUT_N>, IN_N>`
It's now `HidClass<D, Driver<'d, USBD>, IN_N, OUT_N>`. Note that the driver type `Driver<'d, USBD>` is no longer repeated.
- Constructors are now: `HidWriter::new()` for IN-only, `HidReaderWriter::new()` for IN+OUT. No complicated bounds.
- HidReaderWriter has all the methods from HidReader, HidWriter.
Diffstat (limited to 'docs/modules')
0 files changed, 0 insertions, 0 deletions
