Set blackbox file handler to NULL after closing file
[inav.git] / src / main / vcp / usb_prop.h
blobf8e1d2024970212c88283ab4dfd690b1c2b49994
1 /**
2 ******************************************************************************
3 * @file usb_prop.h
4 * @author MCD Application Team
5 * @version V4.0.0
6 * @date 21-January-2013
7 * @brief All processing related to Virtual COM Port Demo (Endpoint 0)
8 ******************************************************************************
9 * @attention
11 * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 * You may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at:
17 * http://www.st.com/software_license_agreement_liberty_v2
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
25 ******************************************************************************
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef __usb_prop_H
30 #define __usb_prop_H
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;
41 /* Exported constants --------------------------------------------------------*/
42 /* Exported macro ------------------------------------------------------------*/
43 /* Exported define -----------------------------------------------------------*/
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
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
65 /* Exported functions ------------------------------------------------------- */
66 void Virtual_Com_Port_init(void);
67 void Virtual_Com_Port_Reset(void);
68 void Virtual_Com_Port_SetConfiguration(void);
69 void Virtual_Com_Port_SetDeviceAddress(void);
70 void Virtual_Com_Port_Status_In(void);
71 void Virtual_Com_Port_Status_Out(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);
79 uint8_t *Virtual_Com_Port_GetLineCoding(uint16_t Length);
80 uint8_t *Virtual_Com_Port_SetLineCoding(uint16_t Length);
82 uint32_t Virtual_Com_Port_GetBaudRate(void);
83 #endif /* __usb_prop_H */
85 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/