Crate usbip

Source
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§

SetupPacket
Parse the SETUP packet of control transfers
UsbDevice
Represent a USB device
UsbEndpoint
Represent a USB endpoint
UsbHostDeviceHandler
A handler to pass requests to a USB device of the host
UsbHostInterfaceHandler
A handler to pass requests to a USB device of the host
UsbInterface
Represent a USB interface
UsbIpServer
Main struct of a USB/IP server

Enums§

ClassCode
A list of defined USB class codes
DescriptorType
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.
EndpointAttributes
A list of defined USB endpoint attributes
StandardRequest
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§

UsbDeviceHandler
A handler for URB targeting the device
UsbInterfaceHandler
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