AnsweredAssumed Answered

What is the proper way to send HID key codes to host?

Question asked by HenryL on Feb 6, 2015
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?