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