STM/STM32_LIBRARIES/tm_stm32_usb_device_cdc.c
uint8_t *USBD_VCP_InterfaceStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) {
	if (speed == USBD_SPEED_HIGH)	{
		USBD_GetString((uint8_t *)USBD_INTERFACE_HS_STRING, USBD_StrDesc, length);
	} else {
		USBD_GetString((uint8_t *)USBD_INTERFACE_FS_STRING, USBD_StrDesc, length);
	}
	return USBD_StrDesc;  
}
/**
  * @brief  Returns the interface string descriptor.        
  * @param  speed: Current device speed
  * @param  length: Pointer to data length variable
  * @retval Pointer to descriptor buffer
  */
@brief  Returns the interface string descriptor.
@param  speed: Current device speed
@param  length: Pointer to data length variable
@retval Pointer to descriptor buffer
@brief Returns the interface string descriptor . @param speed : Current device speed @param length : Pointer to data length variable @retval Pointer to descriptor buffer
uint8_t *USBD_VCP_InterfaceStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) {
	if (speed == USBD_SPEED_HIGH)	{
		USBD_GetString((uint8_t *)USBD_INTERFACE_HS_STRING, USBD_StrDesc, length);
	} else {
		USBD_GetString((uint8_t *)USBD_INTERFACE_FS_STRING, USBD_StrDesc, length);
	}
	return USBD_StrDesc;  
}
uint8_t * USBD_VCP_InterfaceStrDescriptor ( USBD_SpeedTypeDef speed , uint16_t * length ) { if ( speed == USBD_SPEED_HIGH ) { USBD_GetString ( ( uint8_t * ) USBD_INTERFACE_HS_STRING , USBD_StrDesc , length ) ; } else { USBD_GetString ( ( uint8_t * ) USBD_INTERFACE_FS_STRING , USBD_StrDesc , length ) ; } return USBD_StrDesc ; }
@brief  Returns the interface string descriptor.
@brief Returns the interface string descriptor .