Module capsules_extra::usb::descriptors
source · Expand description
Platform-independent USB 2.0 protocol library.
Mostly data types for USB descriptors.
Structs§
- The data structure sent in a CDC-ACM Set Line Coding message.
- Buffer for holding the configuration, interface(s), and endpoint(s) descriptors. Also includes class-specific functional descriptors.
- Buffer for holding the device descriptor.
- The data structure sent in a SETUP handshake.
Enums§
Traits§
Functions§
- Transform descriptor structs into descriptor buffers that can be passed into the control endpoint handler. Each endpoint descriptor list corresponds to the matching index in the interface descriptor list. For example, if the interface descriptor list contains
[ID1, ID2, ID3]
, and the endpoint descriptors list is[[ED1, ED2], [ED3, ED4, ED5], [ED6]]
, then the third interface descriptor (ID3
) has one corresponding endpoint descriptor (ED6
).