当前位置: 首页>>代码示例>>C++>>正文


C++ USBD_GetString函数代码示例

本文整理汇总了C++中USBD_GetString函数的典型用法代码示例。如果您正苦于以下问题:C++ USBD_GetString函数的具体用法?C++ USBD_GetString怎么用?C++ USBD_GetString使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了USBD_GetString函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: USBD_GetString

/**
  * @brief  Returns the manufacturer string descriptor.
  * @param  speed: Current device speed
  * @param  length: Pointer to data length variable
  * @retval Pointer to descriptor buffer
  */
uint8_t *USBD_MSC_ManufacturerStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
{
  USBD_GetString((uint8_t *)(uint8_t *)USBD_MANUFACTURER_STRING, USBD_StrDesc, length);
  return USBD_StrDesc;
}
开发者ID:Joe-Merten,项目名称:Stm32-Tools-Evaluation,代码行数:11,代码来源:usbd_desc.c

示例2: USBD_USR_ConfigStrDescriptor

/**
 * @brief  USBD_USR_ConfigStrDescriptor
 *         return the configuration string descriptor
 * @param  speed : current device speed
 * @param  length : pointer to data length variable
 * @retval pointer to descriptor buffer
 */
uint8_t * USBD_USR_ConfigStrDescriptor (uint8_t speed, uint16_t *length)
{
        printf ("USBD_USR_ConfigStrDescriptor\r\n");
        USBD_GetString (USBD_CONFIGURATION_FS_STRING, USBD_StrDesc, length);
        return USBD_StrDesc;
}
开发者ID:Ribster,项目名称:iwasz-sandbox,代码行数:13,代码来源:usbd_desc.c

示例3: USBD_USR_InterfaceStrDescriptor

/**
 * @brief  USBD_USR_InterfaceStrDescriptor
 *         return the interface string descriptor
 * @param  speed : current device speed
 * @param  length : pointer to data length variable
 * @retval pointer to descriptor buffer
 */
uint8_t * USBD_USR_InterfaceStrDescriptor (uint8_t speed, uint16_t *length)
{
        printf ("USBD_USR_InterfaceStrDescriptor\r\n");
        USBD_GetString (USBD_INTERFACE_FS_STRING, USBD_StrDesc, length);
        return USBD_StrDesc;
}
开发者ID:Ribster,项目名称:iwasz-sandbox,代码行数:13,代码来源:usbd_desc.c

示例4: USBD_USR_ManufacturerStrDescriptor

/**
 * @brief  USBD_USR_ManufacturerStrDescriptor
 *         return the manufacturer string descriptor
 * @param  speed : current device speed
 * @param  length : pointer to data length variable
 * @retval pointer to descriptor buffer
 */
uint8_t * USBD_USR_ManufacturerStrDescriptor (uint8_t speed, uint16_t *length)
{
        printf ("USBD_USR_ManufacturerStrDescriptor\r\n");
        USBD_GetString (USBD_MANUFACTURER_STRING, USBD_StrDesc, length);
        return USBD_StrDesc;
}
开发者ID:Ribster,项目名称:iwasz-sandbox,代码行数:13,代码来源:usbd_desc.c

示例5: USBD_USR_SerialStrDescriptor

/**
 * @brief  USBD_USR_SerialStrDescriptor
 *         return the serial number string descriptor
 * @param  speed : current device speed
 * @param  length : pointer to data length variable
 * @retval pointer to descriptor buffer
 */
uint8_t * USBD_USR_SerialStrDescriptor (uint8_t speed, uint16_t *length)
{
        printf ("USBD_USR_SerialStrDescriptor\r\n");
        USBD_GetString (USBD_SERIALNUMBER_FS_STRING, USBD_StrDesc, length);
        return USBD_StrDesc;
}
开发者ID:Ribster,项目名称:iwasz-sandbox,代码行数:13,代码来源:usbd_desc.c

示例6: USBD_USR_ManufacturerStrDescriptor

/**
* @brief  USBD_USR_ManufacturerStrDescriptor
*         return the manufacturer string descriptor
* @param  speed : current device speed
* @param  length : pointer to data length variable
* @retval pointer to descriptor buffer
*/
uint8_t *  USBD_USR_ManufacturerStrDescriptor( uint8_t speed , uint16_t *length)
{
    (void)speed;
  USBD_GetString ((uint8_t*)USBD_MANUFACTURER_STRING, USBD_StrDesc, length);
  return USBD_StrDesc;
}
开发者ID:Aeroprobing,项目名称:Betaflight,代码行数:13,代码来源:usbd_desc.c

示例7: USBD_USR_ProductStrDescriptor

/**
 * @brief  USBD_USR_ProductStrDescriptor
 *         return the product string descriptor
 * @param  speed : current device speed
 * @param  length : pointer to data length variable
 * @retval pointer to descriptor buffer
 */
uint8_t * USBD_USR_ProductStrDescriptor (uint8_t speed, uint16_t *length)
{
        printf ("USBD_USR_ProductStrDescriptor\r\n");
        USBD_GetString (USBD_PRODUCT_FS_STRING, USBD_StrDesc, length);
        return USBD_StrDesc;
}
开发者ID:Ribster,项目名称:iwasz-sandbox,代码行数:13,代码来源:usbd_desc.c

示例8: UNUSED

uint8_t *USBD_FS_InterfaceStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
{
	UNUSED(speed);
	USBD_GetString(USBD_INTERFACE_STRING_FS, USBD_StrDesc, length);
	return USBD_StrDesc;
}
开发者ID:HubertD,项目名称:candleLight_fw,代码行数:6,代码来源:usbd_desc.c

示例9: USBD_FS_SerialStrDescriptor

/**
* @brief  USBD_FS_SerialStrDescriptor 
*         return the serial number string descriptor
* @param  speed : current device speed
* @param  length : pointer to data length variable
* @retval pointer to descriptor buffer
*/
uint8_t *  USBD_FS_SerialStrDescriptor( USBD_SpeedTypeDef speed , uint16_t *length)
{
  USBD_GetString ((uint8_t*)USBD_SERIALNUMBER_STRING_FS, USBD_StrDesc, length);
  return USBD_StrDesc;
}
开发者ID:Rescube,项目名称:purethermal1-firmware,代码行数:12,代码来源:usbd_desc.c

示例10: USBD_VCP_InterfaceStrDescriptor

uint8_t *  USBD_VCP_InterfaceStrDescriptor( USBD_SpeedTypeDef speed , uint16_t *length)
{
  USBD_GetString ((uint8_t *)USBD_INTERFACE_STRING, USBD_StrDesc, length);
  return USBD_StrDesc;  
}
开发者ID:IceForgTW,项目名称:aprinter,代码行数:5,代码来源:usbd_desc.c

示例11: USBD_VCP_ConfigStrDescriptor

uint8_t *  USBD_VCP_ConfigStrDescriptor( USBD_SpeedTypeDef speed , uint16_t *length)
{
  USBD_GetString ((uint8_t *)USBD_CONFIGURATION_STRING, USBD_StrDesc, length);
  return USBD_StrDesc;  
}
开发者ID:IceForgTW,项目名称:aprinter,代码行数:5,代码来源:usbd_desc.c

示例12: USBD_VCP_ProductStrDescriptor

uint8_t *  USBD_VCP_ProductStrDescriptor( USBD_SpeedTypeDef speed , uint16_t *length)
{
  USBD_GetString ((uint8_t *)USBD_PRODUCT_STRING, USBD_StrDesc, length);
  return USBD_StrDesc;
}
开发者ID:IceForgTW,项目名称:aprinter,代码行数:5,代码来源:usbd_desc.c

示例13: USBD_USR_ProductStrDescriptor

/**
* @brief  USBD_USR_ProductStrDescriptor 
*         return the product string descriptor
* @param  speed : current device speed
* @param  length : pointer to data length variable
* @retval pointer to descriptor buffer
*/
uint8_t *  USBD_USR_ProductStrDescriptor( uint8_t speed , uint16_t *length)
{
  USBD_GetString ((uint8_t*)USBD_PRODUCT_FS_STRING, USBD_StrDesc, length);
  return USBD_StrDesc;
}
开发者ID:BenZoFly,项目名称:opentx,代码行数:12,代码来源:usbd_desc.c


注:本文中的USBD_GetString函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。