Expand description
This is a platform-agnostic Rust driver for the Texas Instruments BQ40Z50 Battery
fuel/gas gauge based on the embedded-hal traits.
For further details of the device architecture and operation, please refer to one of the official Datasheets:
§BQ40Z50 Rust Device Driver
A #[no_std] platform-agnostic driver for the BQ40Z50 family of lithium-ion battery fuel/gas gauge, capable of managing a 1- to 4-cell battery, using the embedded-hal traits.
A higher level API exposing standard Smart Battery Specification functions is built on top of the lower level register accessor using the embedded-batteries traits.
Four revisions of the chip are currently supported:
Please choose which revision you are using by enabling the appropriate feature.
§MSRV
Currently, rust 1.85 and up is supported.
§License
Licensed under the terms of the MIT license.
§Contribution
Unless you explicitly state otherwise, any contribution submitted for inclusion in the work by you shall be licensed under the terms of the MIT license.
License: MIT
Modules§
Structs§
- Bq40z50
R5 - Charging
Voltage Override - Charging Voltage Override config struct used in MAC command 0x00B0, not used in R1
- Config
- Configurable settings
Enums§
- BQ40
Z50Error - BQ40Z50 Errors