/* USBH_MSC_GetMaxLUN The function return the Max LUN supported.  */
int8_t USBH_MSC_GetMaxLUN(USBH_HandleTypeDef *phost)
/* USBH_MSC_GetMaxLUN The function return the Max LUN supported.  */
int8_t USBH_MSC_GetMaxLUN(USBH_HandleTypeDef *phost)
{
  MSC_HandleTypeDef *MSC_Handle =  phost->pActiveClass->pData;    
  if ((phost->gState != HOST_CLASS) && (MSC_Handle->state == MSC_IDLE))
  {
    return  MSC_Handle->max_lun;
  }  
  return 0xFF;
}