sources/common/libs/STM32Cube_F4/Middlewares/ST/STM32_USB_Device_Library/Class/Printer/Src/usbd_printer.c
/**
  * @brief  USBD_PRNT_GetOtherSpeedCfgDesc
  *         Return configuration descriptor
  * @param  length : pointer data length
  * @retval pointer to descriptor buffer
  */
@brief  USBD_PRNT_GetOtherSpeedCfgDesc
Return configuration descriptor
@param  length : pointer data length
@retval pointer to descriptor buffer
@brief USBD_PRNT_GetOtherSpeedCfgDesc Return configuration descriptor @param length : pointer data length @retval pointer to descriptor buffer
static uint8_t *USBD_PRNT_GetOtherSpeedCfgDesc(uint16_t *length)
{
  USBD_EpDescTypeDef *pEpInDesc = USBD_GetEpDesc(USBD_PRNT_CfgDesc, PRNT_IN_EP);
  USBD_EpDescTypeDef *pEpOutDesc = USBD_GetEpDesc(USBD_PRNT_CfgDesc, PRNT_OUT_EP);
  if (pEpInDesc != NULL)
  {
    pEpInDesc->wMaxPacketSize = PRNT_DATA_FS_IN_PACKET_SIZE;
  }
  if (pEpOutDesc != NULL)
  {
    pEpOutDesc->wMaxPacketSize = PRNT_DATA_FS_OUT_PACKET_SIZE;
  }
  *length = (uint16_t) sizeof(USBD_PRNT_CfgDesc);
  return USBD_PRNT_CfgDesc;
}
static uint8_t * USBD_PRNT_GetOtherSpeedCfgDesc ( uint16_t * length ) { USBD_EpDescTypeDef * pEpInDesc = USBD_GetEpDesc ( USBD_PRNT_CfgDesc , PRNT_IN_EP ) ; USBD_EpDescTypeDef * pEpOutDesc = USBD_GetEpDesc ( USBD_PRNT_CfgDesc , PRNT_OUT_EP ) ; if ( pEpInDesc != NULL ) { pEpInDesc -> wMaxPacketSize = PRNT_DATA_FS_IN_PACKET_SIZE ; } if ( pEpOutDesc != NULL ) { pEpOutDesc -> wMaxPacketSize = PRNT_DATA_FS_OUT_PACKET_SIZE ; } * length = ( uint16_t ) sizeof ( USBD_PRNT_CfgDesc ) ; return USBD_PRNT_CfgDesc ; }
@brief  USBD_PRNT_GetOtherSpeedCfgDesc
         Return configuration descriptor
 @param  length : pointer data length
 @retval pointer to descriptor buffer
@brief USBD_PRNT_GetOtherSpeedCfgDesc Return configuration descriptor @param length : pointer data length @retval pointer to descriptor buffer