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