ft6336u-async
Rust driver crate for the FT6336U touch controller, supporting both sync and async usage via feature/config gating. Evidence: Cargo.toml, src/.
- embedded-hal driver
- I2C
- touch controller
目录
技术栈
运行与交付
- 能力标记
- cargo_toml
配置与质量
- 配置文件
- .gitignore
- Cargo.toml
其他信息
- Cargo
- Deps main
- embedded-hal
- embedded-hal-async
- maybe-async-cfg
{
"cargo": {
"deps_main": [
"embedded-hal",
"embedded-hal-async",
"maybe-async-cfg"
]
},
"configs_root": [
".gitignore",
"Cargo.toml"
],
"markers_present": [
"cargo_toml"
]
}Basics
Rust driver crate for the FT6336U touch controller, supporting both sync and async usage via feature/config gating. Evidence: Cargo.toml, src/.
Taxonomy
- Tags: embedded-hal driver, I2C, touch controller
Architecture
- Library crate; API surface is designed to be used from firmware code and integrates with embedded-hal traits. Evidence:
Cargo.toml,src/lib.rs. - Optional async support is implemented via conditional compilation. Evidence:
Cargo.toml.
Conventions
- Targets
no_stdembedded usage patterns. Evidence:Cargo.toml. - Repo conventions rely on standard Rust tooling and (optionally) CI config. Evidence:
.github/workflows/ci.yml,rust-toolchain.toml.
Taste notes
Touch drivers often have timing/IRQ nuance; keeping the crate small and trait-driven makes it easier to embed in UI stacks.
相关内容
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 上”。
Touch controller
主题Touch controller 表示仓库主要维护触摸控制器 IC 的驱动边界,把触点采集、事件语义和总线交互当成独立可复用模式来处理。这里的重点不是“有输入设备”,而是触摸控制器的读数和事件模型本身。