cancel
Showing results for 
Search instead for 
Did you mean: 

How to use STM32 to develop a HID power device project

Jlei.1507
Associate

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

1 REPLY 1
Ben K
Senior III

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.