max2034x

Crates.iomax2034x
lib.rsmax2034x
version0.1.3
sourcesrc
created_at2022-05-23 11:55:25.399832
updated_at2022-08-01 09:02:20.102038
descriptionDriver crate for the MAX20343/MAX20344 family of buck/boost converters.
homepage
repositoryhttps://github.com/tweedegolf/max2034x
max_upload_size
id591748
size41,706
Dion Dokter (diondokter)

documentation

README

MAX2034x

Driver crate for the MAX20343/MAX20344 family of buck/boost converters. Based on device_driver.

Documentation cites from and refers to the datasheet, which can be found here.

Uses typestate to enforce correct usage.

Example use

use max2034x::devices::Max20343F;
use max2034x::Inductor;
use max2034x::Pins;

let i2c = ...;
let pins = Pins { ... };
// Create high-level interface, passing the inductor used with the device and
// the optional pins.
let mut buck_boost =
    max2034x::Max2034x::new(i2c.acquire(), Max20343F, pins, Inductor::L2_2uH)
        .unwrap();

buck_boost.enable_fast_boost(true).unwrap();
buck_boost.enable_fast_boost_pin(true).unwrap();
Commit count: 20

cargo fmt