STM32F4 USB Host HID Bar Code Reader.. struggle in Set_Idle.
I am trying to develop a USB Host HID application where using the controller STM32F4, and the USB stack library available on the ST website, we are trying to send data/command to an USB HID device. Get Device Descriptor,Get configuration descriptor both command i got the data and status. I am strggle on in this fuction.
case HID_REQ_SET_IDLE: /* set Idle */
classReqStatus = USBH_Set_Idle (pdev, pphost, 0, 0);
if (classReqStatus == USBH_OK)
HID_Machine.ctl_state = HID_REQ_GET_REPORT_DESC;
else if(classReqStatus == USBH_NOT_SUPPORTED)
HID_Machine.ctl_state = HID_REQ_GET_REPORT_DESC;
break;
USBH_Set_Idle function Always return the USBH_BUSY.
Give me some suggestion..