pmbus-adapter
Async, no_std PMBus 1.4 protocol adapter built on top of
embedded-hal-async I2C and
smbus-adapter.
Features
- Full PMBus 1.4 command set — typed methods for every standard command (voltage, current, temperature, fan, fault limits, status registers, etc.).
- Data format codecs —
Linear11,ULinear16, andDirectCoefficientsencode/decode helpers. - VOUT_MODE parsing — decode and encode the
VOUT_MODEregister (ULinear16, VID, Direct, IEEE half). - Status bitflags — strongly-typed
StatusByte,StatusWord,StatusVout,StatusIout, and more. no_stdcompatible — zero heap allocations, suitable for bare-metal and RTOS targets.
Usage
Add the crate to your Cargo.toml:
[]
= "0.1"
use ;
use SmbusAdaptor;
async
Minimum Supported Rust Version
This crate requires Rust 1.85.1 or later (edition 2024).
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.