usbd_desc.h
Go to the documentation of this file.
1 
22 /* Define to prevent recursive inclusion -------------------------------------*/
23 
24 #ifndef __USB_DESC_H
25 #define __USB_DESC_H
26 
27 /* Includes ------------------------------------------------------------------*/
28 #include "usbd_def.h"
29 
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
49 
74 extern uint8_t USBD_DeviceDesc [USB_SIZ_DEVICE_DESC];
75 extern uint8_t USBD_StrDesc[USB_MAX_STR_DESC_SIZ];
79 extern USBD_DEVICE USR_desc;
80 
86 extern USBD_DEVICE MSC_desc;
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);
103 
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);
111 
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 */
115 
120 #endif /* __USBD_DESC_H */
121 
129 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
uint8_t USBD_DeviceDesc[USB_SIZ_DEVICE_DESC]
uint8_t * USBD_USR_DeviceDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_DeviceDescriptor return the device descriptor.
Definition: usbd_desc.c:217
#define USB_LEN_DEV_QUALIFIER_DESC
Definition: usbd_def.h:53
uint8_t * USBD_USR_InterfaceStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_InterfaceStrDescriptor return the interface string descriptor.
Definition: usbd_desc.c:320
uint8_t * USBD_MSC_LangIDStrDescriptor(uint8_t speed, uint16_t *length)
uint8_t USBD_DeviceQualifierDesc[USB_LEN_DEV_QUALIFIER_DESC]
Definition: usbd_desc.c:166
USBD_DEVICE MSC_desc
uint8_t USBD_LangIDDesc_MSC[USB_SIZ_STRING_LANGID]
uint8_t * USBD_USR_ConfigStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_ConfigStrDescriptor return the configuration string descriptor.
Definition: usbd_desc.c:302
uint8_t USBD_LangIDDesc[USB_SIZ_STRING_LANGID]
Definition: usbd_desc.c:186
USBD_DEVICE USR_desc
Definition: usbd_desc.c:103
uint8_t USBD_OtherSpeedCfgDesc[USB_LEN_CFG_DESC]
uint8_t * USBD_USR_LangIDStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_LangIDStrDescriptor return the LangID string descriptor.
Definition: usbd_desc.c:237
uint8_t USBD_StrDesc_MSC[USB_MAX_STR_DESC_SIZ]
uint8_t USBD_StrDesc[USB_MAX_STR_DESC_SIZ]
Definition: usbd_req.c:95
#define USB_MAX_STR_DESC_SIZ
#define USB_SIZ_DEVICE_DESC
Definition: usbd_desc.h:47
uint8_t * USBD_MSC_InterfaceStrDescriptor(uint8_t speed, uint16_t *length)
uint8_t * USBD_MSC_ConfigStrDescriptor(uint8_t speed, uint16_t *length)
uint8_t USBD_OtherSpeedCfgDesc_MSC[USB_LEN_CFG_DESC]
uint8_t * USBD_MSC_SerialStrDescriptor(uint8_t speed, uint16_t *length)
uint8_t * USBD_MSC_ManufacturerStrDescriptor(uint8_t speed, uint16_t *length)
uint8_t * USBD_USR_ProductStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_ProductStrDescriptor return the product string descriptor.
Definition: usbd_desc.c:252
uint8_t USBD_DeviceQualifierDesc_MSC[USB_LEN_DEV_QUALIFIER_DESC]
#define USB_SIZ_STRING_LANGID
Definition: usbd_desc.h:48
uint8_t * USBD_USR_SerialStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_SerialStrDescriptor return the serial number string descriptor.
Definition: usbd_desc.c:285
#define USB_LEN_CFG_DESC
Definition: usbd_def.h:55
uint8_t * USBD_MSC_ProductStrDescriptor(uint8_t speed, uint16_t *length)
uint8_t * USBD_MSC_DeviceDescriptor(uint8_t speed, uint16_t *length)
general defines for the usb device library
uint8_t USBD_DeviceDesc_MSC[USB_SIZ_DEVICE_DESC]
uint8_t * USBD_USR_ManufacturerStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_ManufacturerStrDescriptor return the manufacturer string descriptor.
Definition: usbd_desc.c:271


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:26