Create release.yml
[betaflight.git] / src / main / vcpf4 / usbd_desc.h
blob90aa0a87f0a3233e1d75525f65eaf76f8339b1ed
1 /**
2 ******************************************************************************
3 * @file usbd_desc.h
4 * @author MCD Application Team
5 * @version V1.0.0
6 * @date 19-September-2011
7 * @brief header file for the usbd_desc.c file
8 ******************************************************************************
9 * @attention
11 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
19 ******************************************************************************
22 /* Define to prevent recursive inclusion -------------------------------------*/
24 #ifndef __USB_DESC_H
25 #define __USB_DESC_H
27 /* Includes ------------------------------------------------------------------*/
28 #include "usbd_def.h"
30 /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
31 * @{
34 /** @defgroup USB_DESC
35 * @brief general defines for the usb device library file
36 * @{
39 /** @defgroup USB_DESC_Exported_Defines
40 * @{
42 #define USB_DEVICE_DESCRIPTOR_TYPE 0x01
43 #define USB_CONFIGURATION_DESCRIPTOR_TYPE 0x02
44 #define USB_STRING_DESCRIPTOR_TYPE 0x03
45 #define USB_INTERFACE_DESCRIPTOR_TYPE 0x04
46 #define USB_ENDPOINT_DESCRIPTOR_TYPE 0x05
47 #define USB_SIZ_DEVICE_DESC 18
48 #define USB_SIZ_STRING_LANGID 4
50 /**
51 * @}
55 /** @defgroup USBD_DESC_Exported_TypesDefinitions
56 * @{
58 /**
59 * @}
64 /** @defgroup USBD_DESC_Exported_Macros
65 * @{
67 /**
68 * @}
71 /** @defgroup USBD_DESC_Exported_Variables
72 * @{
74 extern uint8_t USBD_DeviceDesc [USB_SIZ_DEVICE_DESC];
75 extern uint8_t USBD_StrDesc[USB_MAX_STR_DESC_SIZ];
76 extern uint8_t USBD_OtherSpeedCfgDesc[USB_LEN_CFG_DESC];
77 extern uint8_t USBD_DeviceQualifierDesc[USB_LEN_DEV_QUALIFIER_DESC];
78 extern uint8_t USBD_LangIDDesc[USB_SIZ_STRING_LANGID];
79 extern USBD_DEVICE USR_desc;
81 extern uint8_t USBD_DeviceDesc_MSC [USB_SIZ_DEVICE_DESC];
82 extern uint8_t USBD_StrDesc_MSC[USB_MAX_STR_DESC_SIZ];
83 extern uint8_t USBD_OtherSpeedCfgDesc_MSC[USB_LEN_CFG_DESC];
84 extern uint8_t USBD_DeviceQualifierDesc_MSC[USB_LEN_DEV_QUALIFIER_DESC];
85 extern uint8_t USBD_LangIDDesc_MSC[USB_SIZ_STRING_LANGID];
86 extern USBD_DEVICE MSC_desc;
87 /**
88 * @}
91 /** @defgroup USBD_DESC_Exported_FunctionsPrototype
92 * @{
96 uint8_t * USBD_USR_DeviceDescriptor( uint8_t speed , uint16_t *length);
97 uint8_t * USBD_USR_LangIDStrDescriptor( uint8_t speed , uint16_t *length);
98 uint8_t * USBD_USR_ManufacturerStrDescriptor ( uint8_t speed , uint16_t *length);
99 uint8_t * USBD_USR_ProductStrDescriptor ( uint8_t speed , uint16_t *length);
100 uint8_t * USBD_USR_SerialStrDescriptor( uint8_t speed , uint16_t *length);
101 uint8_t * USBD_USR_ConfigStrDescriptor( uint8_t speed , uint16_t *length);
102 uint8_t * USBD_USR_InterfaceStrDescriptor( uint8_t speed , uint16_t *length);
104 uint8_t * USBD_MSC_DeviceDescriptor( uint8_t speed , uint16_t *length);
105 uint8_t * USBD_MSC_LangIDStrDescriptor( uint8_t speed , uint16_t *length);
106 uint8_t * USBD_MSC_ManufacturerStrDescriptor ( uint8_t speed , uint16_t *length);
107 uint8_t * USBD_MSC_ProductStrDescriptor ( uint8_t speed , uint16_t *length);
108 uint8_t * USBD_MSC_SerialStrDescriptor( uint8_t speed , uint16_t *length);
109 uint8_t * USBD_MSC_ConfigStrDescriptor( uint8_t speed , uint16_t *length);
110 uint8_t * USBD_MSC_InterfaceStrDescriptor( uint8_t speed , uint16_t *length);
112 #ifdef USB_SUPPORT_USER_STRING_DESC
113 uint8_t * USBD_USR_USRStringDesc (uint8_t speed, uint8_t idx , uint16_t *length);
114 #endif /* USB_SUPPORT_USER_STRING_DESC */
117 * @}
120 #endif /* __USBD_DESC_H */
123 * @}
127 * @}
129 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/