Expand description
A library for running a USB/IP server
Modules§
- cdc
- Implement CDC(Communications) device
- hid
- Implement HID device
- usbip_
protocol - USB/IP protocol structs
Structs§
- Setup
Packet - Parse the SETUP packet of control transfers
- UsbDevice
- Represent a USB device
- UsbEndpoint
- Represent a USB endpoint
- UsbHost
Device Handler - A handler to pass requests to a USB device of the host
- UsbHost
Interface Handler - A handler to pass requests to a USB device of the host
- UsbInterface
- Represent a USB interface
- UsbIp
Server - Main struct of a USB/IP server
Enums§
- Class
Code - A list of defined USB class codes
- Descriptor
Type - A list of defined USB descriptor types from USB 2.0 standard Table 9.5. Descriptor Types
- Direction
- USB endpoint direction: IN or OUT Already exists in rusb crate Transfer and endpoint directions.
- Endpoint
Attributes - A list of defined USB endpoint attributes
- Standard
Request - A list of defined USB standard requests from USB 2.0 standard Table 9.4. Standard Request Codes
- UsbSpeed
- A list of known USB speeds
Constants§
- EP0_
MAX_ PACKET_ SIZE - Emulated max packet size of EP0
Traits§
- UsbDevice
Handler - A handler for URB targeting the device
- UsbInterface
Handler - A handler of a custom usb interface
Functions§
- handler
- server
- Spawn a USB/IP server at
addr
using TcpListener - verify_
descriptor - Check validity of a USB descriptor