fmckeogh / usb-pd-rs

USB-PD and associated hardware driver libraries in Rust
MIT License
19 stars 4 forks source link

PD3.1 support #17

Open okhsunrog opened 3 months ago

okhsunrog commented 3 months ago

Does this crate support USB-PD 3.1? I want to use 28V in my project. This C++ lib for FUSB302 has full support for PD3.1: https://github.com/Ralim/usb-pd Can we have PD3.1 support too? I'll get a board with FUSB302 and ESP32-C3 in a couple of week and then I'll start tinkering with it. I've never touched USB-PD before but I hope I'll manage to implement PD3.1 support in Rust for my device

fmckeogh commented 3 months ago

It does not currently, but if you want to open a PR that would be great!

I may also work on this as part of the PD source support and state machine refactor I have planned

okhsunrog commented 3 months ago

Glad to hear that! I'll open a new PR as soon as I start working on it. Maybe we can take a look at how the Policy Engine is implemented in the Ralim's lib