本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}