# usbh_hid_raw

## 实验过程

+ 初始化 usb ，将512字节对齐的缓冲区描述符地址传给 usb 。
+ 使能中断，打开 USB_INT_ATTACH中断。
+ 通过中断进入并处理相应的中断，并在中断中实现数据传输，完成枚举过程，包括读取设备描述符，设置设备地址，读取设备字符串描述符。
+ 完成对 Device 的枚举后，读取端点 1 的原始数据，并将其打印出来。

由于部分 HID 设备需要进行额外的配置过程，而本样例仅能进行有限的配置，因此本样例不保证能够读取到所有 HID 设备的数据。

以下设备经过测试，可以读取到原始数据：

- (keyboard) MindSDK/application/demo_apps/tinyusb/tud_hid_keyboard
- (keyboard) Dell KB216p
- (keyboard) HP KU-0316
- (keyboard) Dareu DK100

- (mouse) MindSDK/application/demo_apps/tinyusb/tud_hid_mouse
- (mouse) Dell MS116c

## 实验结果

usbh_hid_raw example.
attached.
recv: 00 00 19 00 00 00 00 00
recv: 00 00 19 2C 00 00 00 00
recv: 00 00 19 00 00 00 00 00
recv: 00 00 00 00 00 00 00 00
recv: 00 00 05 11 00 00 00 00
recv: 00 00 11 00 00 00 00 00
recv: 00 00 11 10 00 00 00 00
recv: 00 00 11 10 2C 00 00 00
recv: 00 00 2C 06 19 00 00 00
recv: 00 00 06 19 00 00 00 00
recv: 00 00 19 00 00 00 00 00
recv: 00 00 00 00 00 00 00 00
detached.
