sources/common/libs/STM32Cube_F4/Middlewares/ST/STM32_USB_Device_Library/Class/CompositeBuilder/Src/usbd_composite_builder.c
/**
  * @brief  USBD_CMPSIT_FindFreeIFNbr
  *         Find the first interface available slot
  * @param  pdev: device instance
  * @retval The interface number to be used
  */
@brief  USBD_CMPSIT_FindFreeIFNbr
Find the first interface available slot
@param  pdev: device instance
@retval The interface number to be used
@brief USBD_CMPSIT_FindFreeIFNbr Find the first interface available slot @param pdev : device instance @retval The interface number to be used
static uint8_t USBD_CMPSIT_FindFreeIFNbr(USBD_HandleTypeDef *pdev)
{
  uint32_t idx = 0U;
  for (uint32_t i = 0U; i < pdev->NumClasses; i++)
  {
    for (uint32_t j = 0U; j < pdev->tclasslist[i].NumIf; j++)
    {
      idx++;
    }
  }
  return (uint8_t)idx;
}
static uint8_t USBD_CMPSIT_FindFreeIFNbr ( USBD_HandleTypeDef * pdev ) { uint32_t idx = 0U ; for ( uint32_t i = 0U ; i < pdev -> NumClasses ; i ++ ) { for ( uint32_t j = 0U ; j < pdev -> tclasslist [ i ] . NumIf ; j ++ ) { idx ++ ; } } return ( uint8_t ) idx ; }
@brief  USBD_CMPSIT_FindFreeIFNbr
         Find the first interface available slot
 @param  pdev: device instance
 @retval The interface number to be used
@brief USBD_CMPSIT_FindFreeIFNbr Find the first interface available slot @param pdev : device instance @retval The interface number to be used
/* Unroll all already activated classes */ /* Unroll each class interfaces */ /* Increment the interface counter index */ /* Return the first available interface slot */