Files
ch340-webusb/CHANGELOG.md
T
jiangchen 6c5e647c8a
test / test (push) Canceled after 0s
feat: v1.0.0 收尾 — 五芯片 DTR/RTS、类型声明、示例、CI
- CP210x / FTDI / PL2303 补齐 setSignals()(编码与各自初始化序列一致)
- 新增 index.d.ts(TypeScript 类型声明)、examples/minimal.html(最小接入示例)
- 新增 .gitea/workflows/ci.yml(push 时跑离线单测)、.gitattributes(强制 LF)、CHANGELOG.md
- package.json 补 repository / homepage / bugs / types / engines
- 单测 16 项全部通过:node test/driver.test.mjs
2026-09-23 00:41:29 +08:00

19 lines
1013 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Changelog
## v1.0.0
首个公开版本。
- ch340-webusb.js:WebUSB 上的 USB-Serial 栈
- CH340/CH341(1a86:7523 / 1a86:5523,兼容 5512/7522 克隆)完整初始化序列,对齐 Linux ch341.c
- 波特率分频 calcCh34xBaud();32 深度预排队读 + ReadableStream;4096 分片写 + WritableStream
- DTR/RTS(CH340 用 0xA4 取反写入)、拔插事件、读诊断计数
- 附带 CDC-ACM(CH343/CH9102/CH347)、CP210x、FTDI(含 modem 状态字节剥离)、PL2303(HXN/HX/01/T)
- 五种芯片都实现了 setSignals()(DTR/RTS)
- ch340-serial-shim.js:安卓上补出 navigator.serial,Web Serial 业务代码零改动可用;支持 chain 模式让位给蓝牙垫片
- ch340-test.html:连接 / 收发 / HEX / DTR-RTS / 回环自测 测试台
- examples/minimal.html:最小接入示例
- index.d.ts:TypeScript 类型声明
- docs/ch34x-registers.md:寄存器与控制传输说明
- test/driver.test.mjs:16 项离线断言(mock USBDevice,无需硬件)