/* USBH_MSC_IsReady The function check if the MSC function is ready.  */
uint8_t USBH_MSC_IsReady(USBH_HandleTypeDef *phost)
/* USBH_MSC_IsReady The function check if the MSC function is ready.  */
uint8_t USBH_MSC_IsReady(USBH_HandleTypeDef *phost)
{
    MSC_HandleTypeDef *MSC_Handle =  (MSC_HandleTypeDef *) phost->pActiveClass->pData;  
  if(phost->gState == HOST_CLASS)
  {
    return (MSC_Handle->state == MSC_IDLE);
  }
  else
  {
    return 0;
  }
}