Rev 308 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
273 | killagreg | 1 | /******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** |
1 | ingob | 2 | * File Name : usb_desc.h |
3 | * Author : MCD Application Team |
||
273 | killagreg | 4 | * Version : V2.0.0 |
5 | * Date : 09/29/2008 |
||
1 | ingob | 6 | * Description : Descriptor Header for Virtual Com Port Demo |
7 | ******************************************************************************** |
||
273 | killagreg | 8 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
1 | ingob | 9 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. |
10 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, |
||
11 | * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE |
||
12 | * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING |
||
13 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
||
14 | *******************************************************************************/ |
||
15 | |||
273 | killagreg | 16 | |
1 | ingob | 17 | /* Define to prevent recursive inclusion -------------------------------------*/ |
18 | #ifndef __USB_DESC_H |
||
19 | #define __USB_DESC_H |
||
20 | /* Includes ------------------------------------------------------------------*/ |
||
21 | /* Exported types ------------------------------------------------------------*/ |
||
22 | /* Exported constants --------------------------------------------------------*/ |
||
23 | /* Exported macro ------------------------------------------------------------*/ |
||
24 | /* Exported define -----------------------------------------------------------*/ |
||
25 | #define USB_DEVICE_DESCRIPTOR_TYPE 0x01 |
||
26 | #define USB_CONFIGURATION_DESCRIPTOR_TYPE 0x02 |
||
27 | #define USB_STRING_DESCRIPTOR_TYPE 0x03 |
||
28 | #define USB_INTERFACE_DESCRIPTOR_TYPE 0x04 |
||
29 | #define USB_ENDPOINT_DESCRIPTOR_TYPE 0x05 |
||
30 | |||
273 | killagreg | 31 | #define VIRTUAL_COM_PORT_DATA_SIZE 64 |
32 | #define VIRTUAL_COM_PORT_INT_SIZE 8 |
||
1 | ingob | 33 | |
34 | #define VIRTUAL_COM_PORT_SIZ_DEVICE_DESC 18 |
||
273 | killagreg | 35 | #define VIRTUAL_COM_PORT_SIZ_CONFIG_DESC 67 |
36 | #define VIRTUAL_COM_PORT_SIZ_STRING_LANGID 4 |
||
1 | ingob | 37 | #define VIRTUAL_COM_PORT_SIZ_STRING_VENDOR 38 |
38 | #define VIRTUAL_COM_PORT_SIZ_STRING_PRODUCT 60 |
||
39 | #define VIRTUAL_COM_PORT_SIZ_STRING_SERIAL 22 |
||
40 | |||
41 | |||
42 | #define STANDARD_ENDPOINT_DESC_SIZE 0x09 |
||
43 | |||
44 | /* Exported functions ------------------------------------------------------- */ |
||
45 | extern const u8 Virtual_Com_Port_DeviceDescriptor[VIRTUAL_COM_PORT_SIZ_DEVICE_DESC]; |
||
46 | extern const u8 Virtual_Com_Port_ConfigDescriptor[VIRTUAL_COM_PORT_SIZ_CONFIG_DESC]; |
||
47 | |||
48 | extern const u8 Virtual_Com_Port_StringLangID[VIRTUAL_COM_PORT_SIZ_STRING_LANGID]; |
||
49 | extern const u8 Virtual_Com_Port_StringVendor[VIRTUAL_COM_PORT_SIZ_STRING_VENDOR]; |
||
50 | extern const u8 Virtual_Com_Port_StringProduct[VIRTUAL_COM_PORT_SIZ_STRING_PRODUCT]; |
||
51 | extern const u8 Virtual_Com_Port_StringSerial[VIRTUAL_COM_PORT_SIZ_STRING_SERIAL]; |
||
52 | |||
53 | #endif /* __USB_DESC_H */ |
||
54 | |||
273 | killagreg | 55 | /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/ |