MindSDK_MM32F5270/demo_apps/tinyusb/tuh_hid_mouse
Yilin Sun 3977144e90
Initial MM32F527x commit.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2023-03-27 21:54:40 +08:00
..
build Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
board_init.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
board_init.h Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
clock_init.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
clock_init.h Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
main.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
pin_init.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
pin_init.h Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
readme.md Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
tuh_hcd_port.c Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00
tusb_config.h Initial MM32F527x commit. 2023-03-27 21:54:40 +08:00

tuh_hid_mouse

实验过程

  • 初始化TinyUSB使其工作在 Host 模式。
  • 等待 HID Device 插入,当 HID Device 插入后,对其进行枚举,识别出鼠标设备。
  • 活动鼠标,打印鼠标报文。

实验结果

tuh_hid_mouse example. hid device address = 1, instance = 0 is mounted the instance is not a mouse. hid device address = 1, instance = 1 is mounted the instance is a mouse. a device with address 1 is mounted (8 -18 0) (1 -1 0) (13 -27 0) (13 -26 0) (15 -25 0) (17 -25 0) (17 -25 0) (17 -24 0) (17 -22 0) (16 -19 0) (15 -17 0) (14 -14 0) (14 -13 0) (12 -10 0) (10 -9 0) (9 -7 0) (7 -6 0) (2 -1 0) (1 -1 0) (1 -2 0)