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§
- Nusb
UsbHost Device Handler - A handler to pass requests to device of a nusb USB device of the host
- Nusb
UsbHost Interface Handler - A handler to pass requests to interface of a nusb USB device of the host
- Setup
Packet - Parse the SETUP packet of control transfers
- Transfer
Flags - UsbDevice
- Represent a USB device
- UsbEndpoint
- Represent a USB endpoint
- UsbInterface
- Represent a USB interface
- UsbIp
Server - Main struct of a USB/IP server
- Version
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
- 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§
- handle_
urb_ for_ device - handle_
urb_ for_ interface - handler
- release_
claim - server
- Spawn a USB/IP server at
addrusing TcpListener - verify_
descriptor - Check validity of a USB descriptor