/* USBH_SetInterface The command sets the Interface value to the connected device.  */
USBH_Status USBH_SetInterface(USB_OTG_CORE_HANDLE *pdev, USBH_HOST *phost, uint8_t ep_num, uint8_t altSetting)
/* USBH_SetInterface The command sets the Interface value to the connected device.  */
USBH_Status USBH_SetInterface(USB_OTG_CORE_HANDLE *pdev, USBH_HOST *phost, uint8_t ep_num, uint8_t altSetting)
{
  phost->Control.setup.b.bmRequestType = USB_H2D | USB_REQ_RECIPIENT_INTERFACE | \
    USB_REQ_TYPE_STANDARD;
  phost->Control.setup.b.bRequest = USB_REQ_SET_INTERFACE;
  phost->Control.setup.b.wValue.w = altSetting;
  phost->Control.setup.b.wIndex.w = ep_num;
  phost->Control.setup.b.wLength.w = 0;           
  return USBH_CtlReq(pdev, phost, 0 , 0 );     
}