Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tweedegolf/max2034x
No-std Rust driver for the max2034x family of bock-boost converters
https://github.com/tweedegolf/max2034x
Last synced: about 1 month ago
JSON representation
No-std Rust driver for the max2034x family of bock-boost converters
- Host: GitHub
- URL: https://github.com/tweedegolf/max2034x
- Owner: tweedegolf
- Created: 2022-04-04T14:40:08.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-19T08:34:46.000Z (over 1 year ago)
- Last Synced: 2024-11-15T16:31:30.517Z (about 2 months ago)
- Language: Rust
- Size: 43 KB
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MAX2034x
Driver crate for the MAX20343/MAX20344 family of buck/boost converters.
Based on [`device_driver`](https://docs.rs/device-driver).*Documentation cites from and refers to the datasheet, which can be found [here](https://datasheets.maximintegrated.com/en/ds/MAX20343-MAX20344.pdf).*
Uses [typestate](https://docs.rust-embedded.org/book/static-guarantees/typestate-programming.html) to enforce correct usage.
## Example use
```rust,ignore
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();
```