Custom HID on STM32F103C8
Hello Everyone,
Mechanical engineer at heart, I'm still a noob when it comes to STM32 coding.
I'm trying to create a macropad (later this work might lead to a joystick) for a game I use (Starcitizen).
So far, i've managed to get the input for encoders, Hal effect sensors and switches, but i struggle on the main part, the communication with the computer (Windows PC) using custom HID.
I understand at least parts of the issue,
I get the decalration of the elements i sue as input, i understood that i have to declare a descriptor and a report for usb, but that is where i lack, too much files and data which are not easily comprehensible.
What I understood :
- the usbd_desc.c file contains the device descriptrt
- the usbd_customhid.c containes the interface, the config and the descriptor.
But that is almost all i can find.
I've used the ressources on the community and on the web, i'm almost sure all informations are inside but still i'm not able to find beginner level informations which could help on my specific needs, USB norms is quite low level coding and informations available are more on genral level and i don't know how to apply them to my needs.
do you have any hint on how to create the descriptor and report ?
thanks for your help.
