Skip to main content

Crate nusbip

Crate nusbip 

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§

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

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

handle_urb_for_device
handle_urb_for_interface
handler
release_claim
server
Spawn a USB/IP server at addr using TcpListener
verify_descriptor
Check validity of a USB descriptor