Files
luban-lite-t3e-pro/packages/third-party/cherryusb/docs/source/tools/index.rst
刘可亮 7bbc029dae v1.0.0
2023-08-30 16:21:18 +08:00

51 lines
1.7 KiB
ReStructuredText
Raw 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.
chryusb_configurator
--------------------------
`chryusb_configurator <https://github.com/CherryUSB/chryusb_configurator/releases/tag/1.0.0>`_ 主要服务在使用设备协议栈时,生成描述符数组,从而调用 `usbd_desc_register` 进行注册。
- 首先我们从 github 下载 chryusb_configurator.exe然后一路安装就可以了。然后双击打开点击 `工程`,并点击 `新建工程`
.. figure:: img/chrytool1.png
- 新建完成以后,会生成默认的描述符配置,包含 **设备描述符****配置描述符****字符串描述符**,并且 **字符串描述符** 默认支持三个
.. figure:: img/chrytool2.png
- 然后我们可以根据需要修改相关描述符的信息,比如 **设备描述符** 中的 vid、pidclass 参数, **配置描述符** 中的 **Power** 等等
- 然后是 class 的添加,需要点击 `文件`,并点击 `新建文件`
.. figure:: img/chrytool3.png
- 然后右侧提供了一些 class 的描述符模板,选择一个进行初始化
.. figure:: img/chrytool4.png
- 如果是多个 class ,则上述两步重复操作就可以了
- 然后我们根据需要修改相关端点的参数比如方向、地址、size、interval
.. figure:: img/chrytool5.png
- 最后点击 `文件` 并保存文件,后缀为 `.chry`
- 切换到工程文件,后缀是 `.chrybase`, 然后点击 `添加分组配置` 导入刚刚配置好的 class 文件
.. figure:: img/chrytool6.png
- 点击 `工程` 并点击 `保存工程`
- 点击 `编译`,生成描述符数组
.. figure:: img/chrytool7.png
- 复制编译后的文件到自己的工程中使用即可
力科 USB Protocol Suite
--------------------------
Wireshark
--------------------------
Audacity
--------------------------