Question
What is the proper way to send HID key codes to host?
Posted on February 06, 2015 at 06:12
I am using the st32cube HID middle ware library to implement a keyboard device. I am using USBD_HID_SendReport to send key data to the host. But this function will exit without doing anything if the bus is not available. How do I ensure that what I want to send actually gets sent?
I can replicate the code which checks if the bus is available, but that seems crude. Is there a proper way? Thanks