STM/STM32_LIBRARIES/USB_Host/Core/Src/usbh_conf.c
USBH_SpeedTypeDef USBH_LL_GetSpeed(USBH_HandleTypeDef *phost) {
	USBH_SpeedTypeDef speed = USBH_SPEED_FULL;

	switch (HAL_HCD_GetCurrentSpeed(phost->pData)) {
		case 0: 
			speed = USBH_SPEED_HIGH;
			break;
		case 1: 
			speed = USBH_SPEED_FULL;
			break;
		case 2: 
			speed = USBH_SPEED_LOW;
			break;
		default:
			speed = USBH_SPEED_FULL;
			break;
	}
	return speed;
}
/**
  * @brief  Returns the USB Host Speed from the Low Level Driver.
  * @param  phost: Host handle
  * @retval USBH Speeds
  */
@brief  Returns the USB Host Speed from the Low Level Driver.
@param  phost: Host handle
@retval USBH Speeds
@brief Returns the USB Host Speed from the Low Level Driver . @param phost : Host handle @retval USBH Speeds
USBH_SpeedTypeDef USBH_LL_GetSpeed(USBH_HandleTypeDef *phost) {
	USBH_SpeedTypeDef speed = USBH_SPEED_FULL;
	switch (HAL_HCD_GetCurrentSpeed(phost->pData)) {
		case 0: 
			speed = USBH_SPEED_HIGH;
			break;
		case 1: 
			speed = USBH_SPEED_FULL;
			break;
		case 2: 
			speed = USBH_SPEED_LOW;
			break;
		default:
			speed = USBH_SPEED_FULL;
			break;
	}
	return speed;
}
USBH_SpeedTypeDef USBH_LL_GetSpeed ( USBH_HandleTypeDef * phost ) { USBH_SpeedTypeDef speed = USBH_SPEED_FULL ; switch ( HAL_HCD_GetCurrentSpeed ( phost -> pData ) ) { case 0 : speed = USBH_SPEED_HIGH ; break ; case 1 : speed = USBH_SPEED_FULL ; break ; case 2 : speed = USBH_SPEED_LOW ; break ; default : speed = USBH_SPEED_FULL ; break ; } return speed ; }
@brief  Returns the USB Host Speed from the Low Level Driver.
@brief Returns the USB Host Speed from the Low Level Driver .