Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何配置一个高速HID设备的描述符? #2

Open
ericQiang opened this issue Oct 23, 2022 · 2 comments
Open

如何配置一个高速HID设备的描述符? #2

ericQiang opened this issue Oct 23, 2022 · 2 comments

Comments

@ericQiang
Copy link

你好,请问,我想测试HID高速设备,在ch32v307上测试的,参考的这个例子
但在使用chryusb_configurator进行描述符配置时,发现最大包长只能选64,高速HID设备的最大包长不是可以到1024吗?

我的最终目的是想使用ch32v307来模拟一个高速的HID设备。进行中断传输通讯。想请问一下,我是否走在一个正确的道路上。
谢谢。

@Egahp
Copy link
Collaborator

Egahp commented Oct 23, 2022

@ericQiang 你好,首先你需要创建一个chrybase 工程文件,然后在DEVICE设备描述符配置栏中将版本配置为USB2.0,新建一个chry描述符文件,初始化为HID描述符并保存。关键的一步是在工程文件的Group中添加描述符文件,之后就可以HID描述符Endpoint配置栏中修改端点大小为1024
image

@ericQiang
Copy link
Author

@Egahp 非常感谢您的回复。问题已解决。谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants