2019-11-22 05:37 AM
Hi
The development of HID using STM32, such as mouse class and user-defined class, is very smooth, but the latest project uses hid power devices, which is a subclass protocol under hid, so I don't know how to deal with the report descriptors, so I need the support for it
The function to be realized is that the battery power information extracted by MCU is sent to PC through USB HID protocol, and windows can recognize and support it directly, which is equivalent to that we can directly check the battery power and other states in notebook through device manager
Who can provide a reference code?
Coho
2019-11-27 09:14 AM
You might want to take a look at this project: https://github.com/IntergatedCircuits/DebugDongleFW/blob/master/Charger/chrg_if.c
The HID report descriptor creation cannot get much easier than this if you ask me.