| Crates.io | bq769x0-async-rs |
| lib.rs | bq769x0-async-rs |
| version | 0.1.1 |
| created_at | 2025-08-09 07:48:05.836594+00 |
| updated_at | 2025-08-09 08:11:36.240391+00 |
| description | A BQ769x0 driver based on embedded-hal. Support `async` and `sync` features. |
| homepage | |
| repository | https://github.com/IvanLi-CN/bq769x0-async-rs |
| max_upload_size | |
| id | 1787652 |
| size | 307,357 |
A driver for the BQ769x0 family of battery management system (BMS) ICs, built upon the embedded-hal traits. This crate provides both async and sync APIs, making it suitable for a wide range of embedded applications.
docs/bq76920.pdf), ensuring accurate register mappings and behavior.no-std Compatible: Designed for embedded environments, with no reliance on the standard library.async and sync APIs through the maybe-async-cfg crate, allowing you to choose the concurrency model that best fits your project.embedded-hal Compliant: Seamlessly integrates with the embedded-hal ecosystem, ensuring compatibility with various microcontrollers and hardware abstraction layers.bitflags Integration: Utilizes the bitflags crate for managing register fields and and data types, enhancing readability, maintainability, and type safety when working with hardware registers and status flags.To add the bq769x0-async-rs driver to your project, run one of the following commands:
# For synchronous operation (default)
cargo add bq769x0-async-rs
# For asynchronous operation
cargo add bq769x0-async-rs --features async
You can find example projects demonstrating the use of this driver in the examples/ directory. These examples showcase how to initialize the driver, read battery data, and configure protection features on various embedded platforms.
bq769x0-async-rs is distributed under the terms of both the MIT License and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.