bq25730-rs
Rust no_std driver crate for TI BQ25730 (battery/charger management), built on embedded-hal with async/sync support. Evidence: Cargo.toml, src/.
- Embedded Rust
- embedded-hal driver
- Async embedded
- I2C
- Battery management
目录
技术栈
运行与交付
- CI 工作流
- build.yml
- release.yml
- 能力标记
- cargo_toml
- github_actions
配置与质量
- 配置文件
- .gitignore
- Cargo.toml
- alembic.ini
- lefthook.yml
其他信息
- Cargo
- 开发依赖
- bq25730-async-rs
- embedded-hal-mock
- Deps main
- binrw
- bitflags
- defmt
- embedded-hal
- embedded-hal-async
- heapless
- maybe-async-cfg
{
"cargo": {
"deps_dev": [
"bq25730-async-rs",
"embedded-hal-mock"
],
"deps_main": [
"binrw",
"bitflags",
"defmt",
"embedded-hal",
"embedded-hal-async",
"heapless",
"maybe-async-cfg"
]
},
"ci_workflows": [
"build.yml",
"release.yml"
],
"configs_root": [
".gitignore",
"Cargo.toml",
"alembic.ini",
"lefthook.yml"
],
"markers_present": [
"cargo_toml",
"github_actions"
]
}Basics
Rust no_std driver crate for TI BQ25730 (battery/charger management), built on embedded-hal with async/sync support. Evidence: Cargo.toml, src/.
Taxonomy
- Tags: Embedded Rust, embedded-hal driver, Async embedded, I2C, Battery management
- Why / evidence:
Cargo.toml(description + features/keywords),src/lib.rs.
Architecture
- Library crate with a feature-based API surface for sync/async usage patterns. Evidence:
Cargo.toml,src/lib.rs. - Example/tests (if present) typically live under
examples//tests/for validating protocol behavior. Evidence:Cargo.toml,tests/.
Conventions
no_std-oriented crate metadata and embedded keywords. Evidence:Cargo.toml.- Common embedded repo hygiene via toolchain/hook config when present. Evidence:
rust-toolchain.toml,lefthook.yml.
Taste notes
The “sync + async” feature strategy is a solid default for embedded drivers: it keeps the core API stable while allowing async adopters to opt in.
相关内容
Async embedded
主题Async embedded 表示嵌入式 Rust 代码把 async 当成正式 API surface 或正式 runtime contract 来维护,而不是只在某个样例里顺手用了异步。
Battery management
主题Battery management 表示仓库主要处理充电、监测、保护或电池状态管理相关 IC/固件边界,并把这些语义当成长期维护契约,而不是普通传感器读写。这里的主语是电池系统安全和电源行为,不只是某个 I2C 设备。 这个 Topic 的关键是把“配置一个寄存器”与“改变充放电/保护语义”区分开。
embedded-hal driver
主题embedded-hal driver 表示一个 crate 的主 API 明确建立在 embedded-hal trait 生态之上,目标是被其他 firmware 或 board-support 代码组合进系统,而不是自己成为整机应用。这里的核心不是器件名,而是“驱动 crate 的复用边界”。 这个 Topic 关注的是 crate API 形状、trait 依赖、feature flags、测试方式和下游组合方式。
Embedded Rust
主题Embedded Rust 表示 Rust 代码运行在 MCU、driver、firmware 或硬件 bring-up 环境中,通常涉及 no_std、Embassy、esp-hal、STM32/ESP32、probe-rs、espflash 或 embedded-hal。它不是所有 Rust 项目的泛化标签。
I2C
主题I2C 表示总线本身就是项目的主要维护边界之一,仓库需要持续处理地址、寄存器读写模式、mux/switch/expander、shared bus ownership 或 async/sync 访问策略。这里的重点是 I2C 作为协议/总线契约,而不是“芯片刚好挂在 I2C 上”。