#driver #buck-boost #max20344 #max20343

no-std max2034x

Driver crate for the MAX20343/MAX20344 family of buck/boost converters

2 releases

0.1.3 Aug 1, 2022
0.1.1 May 23, 2022
0.1.0 May 23, 2022

#758 in Embedded development

Download history 1/week @ 2024-02-14 11/week @ 2024-02-21 11/week @ 2024-02-28 2/week @ 2024-03-06 5/week @ 2024-03-13 32/week @ 2024-03-20 20/week @ 2024-03-27 34/week @ 2024-04-03

92 downloads per month

MIT/Apache

42KB
765 lines

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();

lib.rs:

Device state definitions, used for typestate setup.

Dependencies

~2.5MB
~59K SLoC