Rev 1 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 273 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /******************** (C) COPYRIGHT 2006 STMicroelectronics ******************** |
1 | /******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** |
2 | * File Name : usb_prop.h |
2 | * File Name : usb_prop.h |
3 | * Author : MCD Application Team |
3 | * Author : MCD Application Team |
- | 4 | * Version : V2.0.0 |
|
4 | * Date First Issued : 10/01/2006 : V1.0 |
5 | * Date : 09/29/2008 |
5 | * Description : All processings related to Virtual Com Port Demo |
6 | * Description : All processings related to Virtual Com Port Demo |
6 | ******************************************************************************** |
7 | ******************************************************************************** |
7 | * History: |
- | |
8 | * 10/01/2006 : V1.0 |
- | |
9 | ******************************************************************************** |
- | |
10 | * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
8 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
11 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. |
9 | * 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, |
10 | * 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 |
11 | * 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 |
12 | * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING |
15 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
13 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
16 | *******************************************************************************/ |
14 | *******************************************************************************/ |
Line -... | Line 15... | ||
- | 15 | ||
17 | 16 | ||
18 | /* Define to prevent recursive inclusion -------------------------------------*/ |
17 | /* Define to prevent recursive inclusion -------------------------------------*/ |
19 | #ifndef __USB_PROP_H |
18 | #ifndef __USB_PROP_H |
20 | #define __USB_PROP_H |
19 | #define __USB_PROP_H |
21 | /* Includes ------------------------------------------------------------------*/ |
20 | /* Includes ------------------------------------------------------------------*/ |
22 | /* Exported types ------------------------------------------------------------*/ |
21 | /* Exported types ------------------------------------------------------------*/ |
23 | /* Exported constants --------------------------------------------------------*/ |
22 | /* Exported constants --------------------------------------------------------*/ |
24 | /* Exported macro ------------------------------------------------------------*/ |
23 | /* Exported macro ------------------------------------------------------------*/ |
25 | /* Exported functions ------------------------------------------------------- */ |
24 | /* Exported functions ------------------------------------------------------- */ |
26 | void Virtual_Com_Port_init(void); |
25 | void Virtual_Com_Port_init(void); |
- | 26 | void Virtual_Com_Port_Reset(void); |
|
- | 27 | void Virtual_Com_Port_SetConfiguration(void); |
|
27 | void Virtual_Com_Port_Reset(void); |
28 | void Virtual_Com_Port_SetDeviceAddress (void); |
28 | void Virtual_Com_Port_Status_In (void); |
29 | void Virtual_Com_Port_Status_In (void); |
29 | void Virtual_Com_Port_Status_Out (void); |
30 | void Virtual_Com_Port_Status_Out (void); |
30 | RESULT Virtual_Com_Port_Data_Setup(u8); |
31 | RESULT Virtual_Com_Port_Data_Setup(u8); |
31 | RESULT Virtual_Com_Port_NoData_Setup(u8); |
32 | RESULT Virtual_Com_Port_NoData_Setup(u8); |
32 | RESULT Virtual_Com_Port_Get_Interface_Setting(u8 Interface,u8 AlternateSetting); |
33 | RESULT Virtual_Com_Port_Get_Interface_Setting(u8 Interface, u8 AlternateSetting); |
33 | u8 *Virtual_Com_Port_GetDeviceDescriptor(u16 ); |
34 | u8 *Virtual_Com_Port_GetDeviceDescriptor(u16 ); |
34 | u8 *Virtual_Com_Port_GetConfigDescriptor(u16); |
35 | u8 *Virtual_Com_Port_GetConfigDescriptor(u16); |
Line 35... | Line 36... | ||
35 | u8 *Virtual_Com_Port_GetStringDescriptor(u16); |
36 | u8 *Virtual_Com_Port_GetStringDescriptor(u16); |
36 | 37 | ||
Line 37... | Line 38... | ||
37 | u8 *Virtual_Com_Port_GetLineCoding(u16 Length); |
38 | u8 *Virtual_Com_Port_GetLineCoding(u16 Length); |
38 | u8 *Virtual_Com_Port_SetLineCoding(u16 Length); |
39 | u8 *Virtual_Com_Port_SetLineCoding(u16 Length); |
39 | 40 | ||
40 | /* Exported define -----------------------------------------------------------*/ |
41 | /* Exported define -----------------------------------------------------------*/ |
41 | typedef struct |
42 | typedef struct |
42 | { |
43 | { |
43 | u32 bitrate; |
44 | u32 bitrate; |
- | 45 | u8 format; |
|
44 | u8 format; |
46 | u8 paritytype; |
Line 45... | Line 47... | ||
45 | u8 paritytype; |
47 | u8 datatype; |
46 | u8 datatype; |
48 | } |
47 | } LINE_CODING; |
49 | LINE_CODING; |
48 | 50 | ||
49 | #define Virtual_Com_Port_GetConfiguration NOP_Process |
51 | #define Virtual_Com_Port_GetConfiguration NOP_Process |
50 | #define Virtual_Com_Port_SetConfiguration NOP_Process |
52 | //#define Virtual_Com_Port_SetConfiguration NOP_Process |
51 | #define Virtual_Com_Port_GetInterface NOP_Process |
53 | #define Virtual_Com_Port_GetInterface NOP_Process |
52 | #define Virtual_Com_Port_SetInterface NOP_Process |
54 | #define Virtual_Com_Port_SetInterface NOP_Process |
53 | #define Virtual_Com_Port_GetStatus NOP_Process |
55 | #define Virtual_Com_Port_GetStatus NOP_Process |
Line 54... | Line 56... | ||
54 | #define Virtual_Com_Port_ClearFeature NOP_Process |
56 | #define Virtual_Com_Port_ClearFeature NOP_Process |
55 | #define Virtual_Com_Port_SetEndPointFeature NOP_Process |
57 | #define Virtual_Com_Port_SetEndPointFeature NOP_Process |
56 | #define Virtual_Com_Port_SetDeviceFeature NOP_Process |
58 | #define Virtual_Com_Port_SetDeviceFeature NOP_Process |
57 | #define Virtual_Com_Port_SetDeviceAddress NOP_Process |
59 | //#define Virtual_Com_Port_SetDeviceAddress NOP_Process |
Line 66... | Line 68... | ||
66 | #define SET_CONTROL_LINE_STATE 0x22 |
68 | #define SET_CONTROL_LINE_STATE 0x22 |
67 | #define SEND_BREAK 0x23 |
69 | #define SEND_BREAK 0x23 |
Line 68... | Line 70... | ||
68 | 70 | ||
Line 69... | Line 71... | ||
69 | #endif /* __USB_PROP_H */ |
71 | #endif /* __USB_PROP_H */ |