source: trunk/fw_g473rct/USB_Device/App/usbd_desc.h@ 69

Last change on this file since 69 was 61, checked in by f.jahn, 5 weeks ago

Added more USB Device stack files.

File size: 2.9 KB
Line 
1/* USER CODE BEGIN Header */
2/**
3 ******************************************************************************
4 * @file : usbd_desc.c
5 * @version : v3.0_Cube
6 * @brief : Header for usbd_conf.c file.
7 ******************************************************************************
8 * @attention
9 *
10 * Copyright (c) 2026 STMicroelectronics.
11 * All rights reserved.
12 *
13 * This software is licensed under terms that can be found in the LICENSE file
14 * in the root directory of this software component.
15 * If no LICENSE file comes with this software, it is provided AS-IS.
16 *
17 ******************************************************************************
18 */
19/* USER CODE END Header */
20
21/* Define to prevent recursive inclusion -------------------------------------*/
22#ifndef __USBD_DESC__C__
23#define __USBD_DESC__C__
24
25#ifdef __cplusplus
26 extern "C" {
27#endif
28
29/* Includes ------------------------------------------------------------------*/
30#include "usbd_def.h"
31
32/* USER CODE BEGIN INCLUDE */
33
34/* USER CODE END INCLUDE */
35
36/** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
37 * @{
38 */
39
40/** @defgroup USBD_DESC USBD_DESC
41 * @brief Usb device descriptors module.
42 * @{
43 */
44
45/** @defgroup USBD_DESC_Exported_Constants USBD_DESC_Exported_Constants
46 * @brief Constants.
47 * @{
48 */
49#define DEVICE_ID1 (UID_BASE)
50#define DEVICE_ID2 (UID_BASE + 0x4)
51#define DEVICE_ID3 (UID_BASE + 0x8)
52
53#define USB_SIZ_STRING_SERIAL 0x1A
54
55/* USER CODE BEGIN EXPORTED_CONSTANTS */
56
57/* USER CODE END EXPORTED_CONSTANTS */
58
59/**
60 * @}
61 */
62
63/** @defgroup USBD_DESC_Exported_Defines USBD_DESC_Exported_Defines
64 * @brief Defines.
65 * @{
66 */
67
68/* USER CODE BEGIN EXPORTED_DEFINES */
69
70/* USER CODE END EXPORTED_DEFINES */
71
72/**
73 * @}
74 */
75
76/** @defgroup USBD_DESC_Exported_TypesDefinitions USBD_DESC_Exported_TypesDefinitions
77 * @brief Types.
78 * @{
79 */
80
81/* USER CODE BEGIN EXPORTED_TYPES */
82
83/* USER CODE END EXPORTED_TYPES */
84
85/**
86 * @}
87 */
88
89/** @defgroup USBD_DESC_Exported_Macros USBD_DESC_Exported_Macros
90 * @brief Aliases.
91 * @{
92 */
93
94/* USER CODE BEGIN EXPORTED_MACRO */
95
96/* USER CODE END EXPORTED_MACRO */
97
98/**
99 * @}
100 */
101
102/** @defgroup USBD_DESC_Exported_Variables USBD_DESC_Exported_Variables
103 * @brief Public variables.
104 * @{
105 */
106
107extern USBD_DescriptorsTypeDef CDC_Desc;
108
109/* USER CODE BEGIN EXPORTED_VARIABLES */
110
111/* USER CODE END EXPORTED_VARIABLES */
112
113/**
114 * @}
115 */
116
117/** @defgroup USBD_DESC_Exported_FunctionsPrototype USBD_DESC_Exported_FunctionsPrototype
118 * @brief Public functions declaration.
119 * @{
120 */
121
122/* USER CODE BEGIN EXPORTED_FUNCTIONS */
123
124/* USER CODE END EXPORTED_FUNCTIONS */
125
126/**
127 * @}
128 */
129
130/**
131 * @}
132 */
133
134/**
135 * @}
136 */
137
138#ifdef __cplusplus
139}
140#endif
141
142#endif /* __USBD_DESC__C__ */
143
Note: See TracBrowser for help on using the repository browser.