Rev 1 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | ingob | 1 | /******************** (C) COPYRIGHT 2006 STMicroelectronics ******************** |
2 | * File Name : usb_prop.h |
||
3 | * Author : MCD Application Team |
||
4 | * Date First Issued : 10/01/2006 : V1.0 |
||
5 | * Description : All processings related to 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_PROP_H |
||
20 | #define __USB_PROP_H |
||
21 | /* Includes ------------------------------------------------------------------*/ |
||
22 | /* Exported types ------------------------------------------------------------*/ |
||
23 | /* Exported constants --------------------------------------------------------*/ |
||
24 | /* Exported macro ------------------------------------------------------------*/ |
||
25 | /* Exported functions ------------------------------------------------------- */ |
||
26 | void Virtual_Com_Port_init(void); |
||
27 | void Virtual_Com_Port_Reset(void); |
||
28 | void Virtual_Com_Port_Status_In (void); |
||
29 | void Virtual_Com_Port_Status_Out (void); |
||
30 | RESULT Virtual_Com_Port_Data_Setup(u8); |
||
31 | RESULT Virtual_Com_Port_NoData_Setup(u8); |
||
32 | RESULT Virtual_Com_Port_Get_Interface_Setting(u8 Interface,u8 AlternateSetting); |
||
33 | u8 *Virtual_Com_Port_GetDeviceDescriptor(u16 ); |
||
34 | u8 *Virtual_Com_Port_GetConfigDescriptor(u16); |
||
35 | u8 *Virtual_Com_Port_GetStringDescriptor(u16); |
||
36 | |||
37 | u8 *Virtual_Com_Port_GetLineCoding(u16 Length); |
||
38 | u8 *Virtual_Com_Port_SetLineCoding(u16 Length); |
||
39 | |||
40 | /* Exported define -----------------------------------------------------------*/ |
||
41 | typedef struct |
||
42 | { |
||
43 | u32 bitrate; |
||
44 | u8 format; |
||
45 | u8 paritytype; |
||
46 | u8 datatype; |
||
47 | } LINE_CODING; |
||
48 | |||
49 | #define Virtual_Com_Port_GetConfiguration NOP_Process |
||
50 | #define Virtual_Com_Port_SetConfiguration NOP_Process |
||
51 | #define Virtual_Com_Port_GetInterface NOP_Process |
||
52 | #define Virtual_Com_Port_SetInterface NOP_Process |
||
53 | #define Virtual_Com_Port_GetStatus NOP_Process |
||
54 | #define Virtual_Com_Port_ClearFeature NOP_Process |
||
55 | #define Virtual_Com_Port_SetEndPointFeature NOP_Process |
||
56 | #define Virtual_Com_Port_SetDeviceFeature NOP_Process |
||
57 | #define Virtual_Com_Port_SetDeviceAddress NOP_Process |
||
58 | |||
59 | #define SEND_ENCAPSULATED_COMMAND 0x00 |
||
60 | #define GET_ENCAPSULATED_RESPONSE 0x01 |
||
61 | #define SET_COMM_FEATURE 0x02 |
||
62 | #define GET_COMM_FEATURE 0x03 |
||
63 | #define CLEAR_COMM_FEATURE 0x04 |
||
64 | #define SET_LINE_CODING 0x20 |
||
65 | #define GET_LINE_CODING 0x21 |
||
66 | #define SET_CONTROL_LINE_STATE 0x22 |
||
67 | #define SEND_BREAK 0x23 |
||
68 | |||
69 | #endif /* __USB_PROP_H */ |
||
70 | |||
71 | /******************* (C) COPYRIGHT 2006 STMicroelectronics *****END OF FILE****/ |