NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
usb_prop.h
Go to the documentation of this file.
1 
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __usb_prop_H
30 #define __usb_prop_H
31 
32 /* Includes ------------------------------------------------------------------*/
33 /* Exported types ------------------------------------------------------------*/
34 typedef struct {
35  uint32_t bitrate;
36  uint8_t format;
37  uint8_t paritytype;
38  uint8_t datatype;
39 } LINE_CODING;
40 
41 /* Exported constants --------------------------------------------------------*/
42 /* Exported macro ------------------------------------------------------------*/
43 /* Exported define -----------------------------------------------------------*/
44 
45 #define Virtual_Com_Port_GetConfiguration NOP_Process
46 //#define Virtual_Com_Port_SetConfiguration NOP_Process
47 #define Virtual_Com_Port_GetInterface NOP_Process
48 #define Virtual_Com_Port_SetInterface NOP_Process
49 #define Virtual_Com_Port_GetStatus NOP_Process
50 #define Virtual_Com_Port_ClearFeature NOP_Process
51 #define Virtual_Com_Port_SetEndPointFeature NOP_Process
52 #define Virtual_Com_Port_SetDeviceFeature NOP_Process
53 //#define Virtual_Com_Port_SetDeviceAddress NOP_Process
54 
55 #define SEND_ENCAPSULATED_COMMAND 0x00
56 #define GET_ENCAPSULATED_RESPONSE 0x01
57 #define SET_COMM_FEATURE 0x02
58 #define GET_COMM_FEATURE 0x03
59 #define CLEAR_COMM_FEATURE 0x04
60 #define SET_LINE_CODING 0x20
61 #define GET_LINE_CODING 0x21
62 #define SET_CONTROL_LINE_STATE 0x22
63 #define SEND_BREAK 0x23
64 
65 /* Exported functions ------------------------------------------------------- */
66 void Virtual_Com_Port_init(void);
67 void Virtual_Com_Port_Reset(void);
72 RESULT Virtual_Com_Port_Data_Setup( uint8_t);
73 RESULT Virtual_Com_Port_NoData_Setup( uint8_t);
74 RESULT Virtual_Com_Port_Get_Interface_Setting(uint8_t Interface, uint8_t AlternateSetting);
75 uint8_t *Virtual_Com_Port_GetDeviceDescriptor( uint16_t);
76 uint8_t *Virtual_Com_Port_GetConfigDescriptor( uint16_t);
77 uint8_t *Virtual_Com_Port_GetStringDescriptor( uint16_t);
78 
79 uint8_t *Virtual_Com_Port_GetLineCoding(uint16_t Length);
80 uint8_t *Virtual_Com_Port_SetLineCoding(uint16_t Length);
81 
82 uint32_t Virtual_Com_Port_GetBaudRate(void);
83 #endif /* __usb_prop_H */
84 
85 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
86 
uint32_t Virtual_Com_Port_GetBaudRate(void)
Definition: usb_prop.c:370
uint8_t format
Definition: usb_prop.h:36
uint8_t * Virtual_Com_Port_GetDeviceDescriptor(uint16_t)
Definition: usb_prop.c:278
uint8_t * Virtual_Com_Port_GetConfigDescriptor(uint16_t)
Definition: usb_prop.c:290
uint32_t bitrate
Definition: usb_prop.h:35
uint8_t paritytype
Definition: usb_prop.h:37
Definition: usb_prop.h:34
uint8_t * Virtual_Com_Port_GetLineCoding(uint16_t Length)
Definition: usb_prop.c:338
void Virtual_Com_Port_SetDeviceAddress(void)
Definition: usb_prop.c:186
uint8_t * Virtual_Com_Port_SetLineCoding(uint16_t Length)
Definition: usb_prop.c:354
RESULT Virtual_Com_Port_Data_Setup(uint8_t)
Definition: usb_prop.c:223
void Virtual_Com_Port_Status_In(void)
Definition: usb_prop.c:198
void Virtual_Com_Port_init(void)
Definition: usb_prop.c:90
RESULT Virtual_Com_Port_NoData_Setup(uint8_t)
Definition: usb_prop.c:257
uint8_t datatype
Definition: usb_prop.h:38
uint8_t * Virtual_Com_Port_GetStringDescriptor(uint16_t)
Definition: usb_prop.c:302
void Virtual_Com_Port_SetConfiguration(void)
Definition: usb_prop.c:169
RESULT Virtual_Com_Port_Get_Interface_Setting(uint8_t Interface, uint8_t AlternateSetting)
Definition: usb_prop.c:321
void Virtual_Com_Port_Reset(void)
Definition: usb_prop.c:115
void Virtual_Com_Port_Status_Out(void)
Definition: usb_prop.c:212