#usb #usb-device #packet #channel #gadget #async

upc

USB packet channel (UPC): provides a reliable, packet-based transport over USB

10 releases (4 breaking)

0.5.0 Apr 29, 2024
0.4.0 Nov 11, 2023
0.3.2 Nov 11, 2023
0.2.4 Nov 3, 2023
0.1.0 Oct 13, 2023

#803 in Hardware support

Download history 31/week @ 2024-02-02 1/week @ 2024-02-09 9/week @ 2024-02-16 10/week @ 2024-02-23 5/week @ 2024-03-01 17/week @ 2024-03-08 6/week @ 2024-03-15 17/week @ 2024-03-22 13/week @ 2024-03-29 3/week @ 2024-04-05 164/week @ 2024-04-26 14/week @ 2024-05-03

178 downloads per month
Used in aggligator-util

Apache-2.0

42KB
827 lines

USB packet channel (UPC)

crates.io page docs.rs page Apache 2.0 license

This library provides a reliable, packet-based transport over a physical USB connection with an asynchronous API.

Features

This crate provides the following main features:

  • host enables the host-side part,
  • device enables the device-side part.

To be useful, at least one of these features must be enabled.

Additionally, the feature trace-packets can be enabled to log USB packets at log level trace.

Requirements

The minimum support Rust version (MSRV) is 1.73.

The host-side part supports any operating system supported by libusb.

The device-side part requires Linux and a USB device controller (UDC).

License

upc is licensed under the Apache 2.0 license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in upc by you, shall be licensed as Apache 2.0, without any additional terms or conditions.

Dependencies

~4–13MB
~143K SLoC