Expand description
A simple peripheral-level USB stack designed for luna-soc USB peripherals.
Modules§
- class
- USB device and interface classes
- control
- descriptor
- USB Descriptors
- device
smolusbdevice types- error
- smolusb Error type
- event
- setup
- Types for working with the SETUP packet.
- traits
Constants§
- EP_
MAX_ ENDPOINTS - USB devices can define up to 32 endpoints. 16 IN and 16 OUT.
- EP_
MAX_ PACKET_ SIZE - Maximum packet size for endpoints.
Functions§
- max_
packet_ size - Returns the max packet size for a given device speed and endpoint number.