项目实践
pca9546a-rs
Rust no_std driver crate for PCA9546A 4-channel I2C multiplexer, based on embedded-hal. Evidence: Cargo.toml, src/.
- embedded-hal driver
- I2C
目录
技术栈
运行与交付
- CI 工作流
- build.yml
- release.yml
- 能力标记
- cargo_toml
- github_actions
配置与质量
- 配置文件
- .gitignore
- .markdownlint-cli2.yaml
- Cargo.toml
- lefthook.yml
其他信息
- Cargo
- 开发依赖
- cortex-m
- cortex-m-rt
- embedded-hal-mock
- panic-halt
- tokio
- Deps main
- embedded-hal
- embedded-hal-async
- log
- maybe-async-cfg
- num_enum
JSON
{
"cargo": {
"deps_dev": [
"cortex-m",
"cortex-m-rt",
"embedded-hal-mock",
"panic-halt",
"tokio"
],
"deps_main": [
"embedded-hal",
"embedded-hal-async",
"log",
"maybe-async-cfg",
"num_enum"
]
},
"ci_workflows": [
"build.yml",
"release.yml"
],
"configs_root": [
".gitignore",
".markdownlint-cli2.yaml",
"Cargo.toml",
"lefthook.yml"
],
"markers_present": [
"cargo_toml",
"github_actions"
]
}Basics
Rust no_std driver crate for PCA9546A 4-channel I2C multiplexer, based on embedded-hal. Evidence: Cargo.toml, src/.
Taxonomy
- Tags: embedded-hal driver, I2C
Architecture
- Small library crate: wraps channel selection and bus switching behavior behind embedded-hal abstractions. Evidence:
src/lib.rs,Cargo.toml. - Intended to be embedded as a building block inside larger firmware repos. Evidence:
Cargo.toml.
Conventions
- Uses
no_stdand embedded categories in metadata. Evidence:Cargo.toml. - Standard repo layout with minimal surface area. Evidence:
src/.
Taste notes
These “infrastructure drivers” (muxes/expanders) are best kept tiny and composable; this crate’s scope fits that philosophy.
相关内容
embedded-hal driver
主题embedded-hal driver 表示一个 crate 的主 API 明确建立在 embedded-hal trait 生态之上,目标是被其他 firmware 或 board-support 代码组合进系统,而不是自己成为整机应用。这里的核心不是器件名,而是“驱动 crate 的复用边界”。 这个 Topic 关注的是 crate API 形状、trait 依赖、feature flags、测试方式和下游组合方式。
I2C
主题I2C 表示总线本身就是项目的主要维护边界之一,仓库需要持续处理地址、寄存器读写模式、mux/switch/expander、shared bus ownership 或 async/sync 访问策略。这里的重点是 I2C 作为协议/总线契约,而不是“芯片刚好挂在 I2C 上”。