17 releases (8 stable)

Uses new Rust 2024

1.1.3 Aug 14, 2025
1.0.3 Jul 3, 2025
0.2.1 Mar 20, 2025

#400 in Embedded development

Download history 86/week @ 2025-08-21 2/week @ 2025-08-28 10/week @ 2025-09-04 4/week @ 2025-09-25 5/week @ 2025-10-02 5/week @ 2025-10-16 18/week @ 2025-10-23

984 downloads per month

MIT license

130KB
3K SLoC

Library for USB PD

Modeled after the Universal Serial Bus Power Delivery Specification: USB PD R3.2 v1.1 (2024/10).

The library implements:

  • A policy engine for each supported mode,
  • the protocol layer, and
  • the DevicePolicyManager trait, which allows a device user application to talk to the policy engine, and control it.

The library depends on the crate usbpd-traits, which provides traits for supporting USB PD PHYs.

Currently supported modes

  • SPR Sink with helpers for requesting
    • A fixed supply
    • A Programmable Power Supply (PPS)

Credit

Inherits message parsing code from usb-pd-rs.

Dependencies

~2.3–3MB
~64K SLoC