STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
usbd_desc.c File Reference

: This file implements the USB device descriptors. More...

#include "usbd_core.h"
#include "usbd_desc.h"
#include "usbd_conf.h"
Include dependency graph for usbd_desc.c:

Go to the source code of this file.

Macros

#define USBD_VID   1155
#define USBD_LANGID_STRING   1033
#define USBD_MANUFACTURER_STRING   "STMicroelectronics"
#define USBD_PID_HS   22336
#define USBD_PRODUCT_STRING_HS   "STM32 Virtual ComPort"
#define USBD_CONFIGURATION_STRING_HS   "CDC Config"
#define USBD_INTERFACE_STRING_HS   "CDC Interface"
#define USB_SIZ_BOS_DESC   0x0C

Functions

static void Get_SerialNum (void)
 Create the serial number string descriptor.
static void IntToUnicode (uint32_t value, uint8_t *pbuf, uint8_t len)
 Convert Hex 32Bits value into char.
uint8_t * USBD_HS_DeviceDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the device descriptor.
uint8_t * USBD_HS_LangIDStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the LangID string descriptor.
uint8_t * USBD_HS_ManufacturerStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the manufacturer string descriptor.
uint8_t * USBD_HS_ProductStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the product string descriptor.
uint8_t * USBD_HS_SerialStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the serial number string descriptor.
uint8_t * USBD_HS_ConfigStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the configuration string descriptor.
uint8_t * USBD_HS_InterfaceStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length)
 Return the interface string descriptor.

Variables

USBD_DescriptorsTypeDef HS_Desc
 Descriptor for the Usb device.
__ALIGN_BEGIN uint8_t USBD_HS_DeviceDesc[USB_LEN_DEV_DESC] __ALIGN_END
 USB standard device descriptor.

Detailed Description

: This file implements the USB device descriptors.

: Header for usbd_conf.c file.

Version
: v1.0_Cube
Attention

Copyright (c) 2026 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file usbd_desc.c.