cancel
Showing results for 
Search instead for 
Did you mean: 

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

h500ca
Associate
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
0 REPLIES 0