Crate smolusb

Crate smolusb 

Source
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
smolusb device 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.