Solved
STM32F103 USB device get report
Posted on November 03, 2017 at 16:04
Hello everyone,
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 :
- STM32Cube_FW_F1_V1.6.0/Projects/STM3210C_EVAL/Applications/USB_Device/CustomHID_Standalone
- STM32Cube_FW_F1_V1.6.0/Projects/STM3210C_EVAL/Applications/USB_Device/HID_Standalone
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!
#usb-hid-keyboard #stm32f1