usbpd

Crates.iousbpd
lib.rsusbpd
version1.1.3
created_at2025-01-25 22:13:21.170608+00
updated_at2025-08-14 20:59:41.389734+00
descriptionUSB-PD library for `[no_std]`.
homepagehttps://github.com/elagil/usbpd
repositoryhttps://github.com/elagil/usbpd
max_upload_size
id1530902
size138,679
Adrian Figueroa (elagil)

documentation

https://docs.rs/usbpd

README

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.

Commit count: 85

cargo fmt