/* USBH_GetNextDesc This function return the next descriptor header.  */
USBH_DescHeader_t* USBH_GetNextDesc(uint8_t *pbuf, uint16_t *ptr)
/* USBH_GetNextDesc This function return the next descriptor header.  */
USBH_DescHeader_t* USBH_GetNextDesc(uint8_t *pbuf, uint16_t *ptr)
{
  USBH_DescHeader_t  *pnext;
  *ptr += ((USBH_DescHeader_t *)pbuf)->bLength;  
  pnext = (USBH_DescHeader_t *)((uint8_t *)pbuf + \
         ((USBH_DescHeader_t *)pbuf)->bLength);
  return(pnext);
}