Hi everyone,
I'm currently working on an application that uses the USBD HID Keyboard class. However for this particular application I need to know when the USBD is done with the configuration and addressing so that keypresses can be transferred. If I look at the events that passes through the USBD event handler it looks like this (with power detection enabled):
1. USBD Power Detected
2. USBD Ready
3. USBD State Change
4. USBD Started
5. USBD Suspended
6. USBD Resume
7. USBD State change (APP_USBD_STATE_Default)
8. USBD State change (APP_USBD_STATE_Addressed)
9. USBD State change (APP_USBD_STATE_Configured)
The issue is that if I try to send keys immediately after the APP_USBD_STATE_Configured event none of the keys are transfered. Are there any other flags or event handlers that can be useful to detect when the USBD is ready to transmit?
Additional Notes:
I'm SDK V15