51 #define USBD_VID 0x0483 53 #ifdef USE_USB_CDC_HID 54 #define USBD_PID_COMPOSITE 0x3256 56 #define USBD_PID 0x5740 61 #define USBD_LANGID_STRING 0x409 62 #define USBD_MANUFACTURER_STRING "JAMES JACKSON" 64 #ifdef USBD_PRODUCT_STRING 65 #define USBD_PRODUCT_HS_STRING USBD_PRODUCT_STRING 66 #define USBD_PRODUCT_FS_STRING USBD_PRODUCT_STRING 68 #define USBD_PRODUCT_HS_STRING "STM32 Virtual ComPort in HS mode" 69 #define USBD_PRODUCT_FS_STRING "STM32 Virtual ComPort in FS Mode" 72 #ifdef USBD_SERIALNUMBER_STRING 73 #define USBD_SERIALNUMBER_HS_STRING USBD_SERIALNUMBER_STRING 74 #define USBD_SERIALNUMBER_FS_STRING USBD_SERIALNUMBER_STRING 77 #define USBD_SERIALNUMBER_HS_STRING "0x8000000" 78 #define USBD_SERIALNUMBER_FS_STRING "0x8000000" 81 #define USBD_CONFIGURATION_HS_STRING "VCP Config" 82 #define USBD_INTERFACE_HS_STRING "VCP Interface" 84 #define USBD_CONFIGURATION_FS_STRING "VCP Config" 85 #define USBD_INTERFACE_FS_STRING "VCP Interface" 115 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 116 #if defined ( __ICCARM__ ) 117 #pragma data_alignment=4 120 #ifdef USE_USB_CDC_HID 132 LOBYTE(USBD_PID_COMPOSITE),
133 HIBYTE(USBD_PID_COMPOSITE),
160 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 161 #if defined ( __ICCARM__ ) 162 #pragma data_alignment=4 180 #ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED 181 #if defined ( __ICCARM__ ) 182 #pragma data_alignment=4 220 #ifdef USE_USB_CDC_HID 221 if (usbDevConfig()->type == COMPOSITE) {
222 *length =
sizeof(USBD_DeviceDesc_Composite);
223 return USBD_DeviceDesc_Composite;
header file for the usbd_req.c file
#define USB_LEN_DEV_QUALIFIER_DESC
void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len)
USBD_GetString Convert Ascii string into unicode one.
uint8_t * USBD_USR_ConfigStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_ConfigStrDescriptor return the configuration string descriptor.
#define USB_DESC_TYPE_DEVICE_QUALIFIER
uint8_t USBD_DeviceDesc[USB_SIZ_DEVICE_DESC]
uint8_t USBD_DeviceQualifierDesc[USB_LEN_DEV_QUALIFIER_DESC]
#define USBD_SERIALNUMBER_FS_STRING
#define USBD_IDX_PRODUCT_STR
#define USBD_IDX_SERIAL_STR
#define USB_OTG_MAX_EP0_SIZE
__ALIGN_BEGIN uint8_t USBD_DeviceDesc[USB_SIZ_DEVICE_DESC] __ALIGN_END
uint8_t USBD_LangIDDesc[USB_SIZ_STRING_LANGID]
#define USB_OTG_SPEED_HIGH
#define USBD_PRODUCT_HS_STRING
uint8_t USBD_StrDesc[USB_MAX_STR_DESC_SIZ]
uint8_t * USBD_USR_DeviceDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_DeviceDescriptor return the device descriptor.
uint8_t * USBD_USR_ManufacturerStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_ManufacturerStrDescriptor return the manufacturer string descriptor.
#define USB_SIZ_DEVICE_DESC
#define USBD_INTERFACE_FS_STRING
#define USBD_CONFIGURATION_FS_STRING
#define USBD_SERIALNUMBER_HS_STRING
#define USBD_CONFIGURATION_HS_STRING
#define USBD_INTERFACE_HS_STRING
uint8_t * USBD_USR_ProductStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_ProductStrDescriptor return the product string descriptor.
#define USBD_LANGID_STRING
#define USBD_PRODUCT_FS_STRING
uint8_t * USBD_USR_InterfaceStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_InterfaceStrDescriptor return the interface string descriptor.
#define USB_DEVICE_DESCRIPTOR_TYPE
#define USB_SIZ_STRING_LANGID
uint8_t * USBD_USR_SerialStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_SerialStrDescriptor return the serial number string descriptor.
USB Device configuration file.
#define USB_DESC_TYPE_STRING
Header file for usbd_core.c.
uint8_t * USBD_USR_LangIDStrDescriptor(uint8_t speed, uint16_t *length)
USBD_USR_LangIDStrDescriptor return the LangID string descriptor.
#define USBD_MANUFACTURER_STRING
header file for the usbd_desc.c file