As several people on this forum, I am trying to implement some kind of "USB keyboard" with an STM32F103C8.
I am working with truestudio and cubeMx, and I use the USB library provided.
I have update the descriptor and I have no problem to send keys and modifiers to the computer, reproducing exactly a keyboard behavior. However, in those examples :
I have not seen anyway to read the report provide by the computer about the LED states (Caps Lock, Scroll Lock, Num Lock). My descriptor includes an output report for this information.
In fact, I would like to know how it is possible to implement the same function as "USBD_HID_SendReport" to "receive report". Or more simply, where can I find an example doing that?
Thanks for your help!