1 | /* USER CODE BEGIN Header */
|
---|
2 | /**
|
---|
3 | ******************************************************************************
|
---|
4 | * @file : usbd_cdc_if.h
|
---|
5 | * @version : v1.0_Cube
|
---|
6 | * @brief : Header for usbd_cdc_if.c file.
|
---|
7 | ******************************************************************************
|
---|
8 | * @attention
|
---|
9 | *
|
---|
10 | * <h2><center>© Copyright (c) 2021 STMicroelectronics.
|
---|
11 | * All rights reserved.</center></h2>
|
---|
12 | *
|
---|
13 | * This software component is licensed by ST under Ultimate Liberty license
|
---|
14 | * SLA0044, the "License"; You may not use this file except in compliance with
|
---|
15 | * the License. You may obtain a copy of the License at:
|
---|
16 | * www.st.com/SLA0044
|
---|
17 | *
|
---|
18 | ******************************************************************************
|
---|
19 | */
|
---|
20 | /* USER CODE END Header */
|
---|
21 |
|
---|
22 | /* Define to prevent recursive inclusion -------------------------------------*/
|
---|
23 | #ifndef __USBD_CDC_IF_H__
|
---|
24 | #define __USBD_CDC_IF_H__
|
---|
25 |
|
---|
26 | #ifdef __cplusplus
|
---|
27 | extern "C" {
|
---|
28 | #endif
|
---|
29 |
|
---|
30 | /* Includes ------------------------------------------------------------------*/
|
---|
31 | #include "usbd_cdc.h"
|
---|
32 |
|
---|
33 | /* USER CODE BEGIN INCLUDE */
|
---|
34 |
|
---|
35 | /* USER CODE END INCLUDE */
|
---|
36 |
|
---|
37 | /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
|
---|
38 | * @brief For Usb device.
|
---|
39 | * @{
|
---|
40 | */
|
---|
41 |
|
---|
42 | /** @defgroup USBD_CDC_IF USBD_CDC_IF
|
---|
43 | * @brief Usb VCP device module
|
---|
44 | * @{
|
---|
45 | */
|
---|
46 |
|
---|
47 | /** @defgroup USBD_CDC_IF_Exported_Defines USBD_CDC_IF_Exported_Defines
|
---|
48 | * @brief Defines.
|
---|
49 | * @{
|
---|
50 | */
|
---|
51 | /* USER CODE BEGIN EXPORTED_DEFINES */
|
---|
52 | /* Define size for the receive and transmit buffer over CDC */
|
---|
53 | /* It's up to user to redefine and/or remove those define */
|
---|
54 | #define APP_RX_DATA_SIZE 2048
|
---|
55 | #define APP_TX_DATA_SIZE 2048
|
---|
56 |
|
---|
57 | /* USER CODE END EXPORTED_DEFINES */
|
---|
58 |
|
---|
59 | /**
|
---|
60 | * @}
|
---|
61 | */
|
---|
62 |
|
---|
63 | /** @defgroup USBD_CDC_IF_Exported_Types USBD_CDC_IF_Exported_Types
|
---|
64 | * @brief Types.
|
---|
65 | * @{
|
---|
66 | */
|
---|
67 |
|
---|
68 | /* USER CODE BEGIN EXPORTED_TYPES */
|
---|
69 |
|
---|
70 | /* USER CODE END EXPORTED_TYPES */
|
---|
71 |
|
---|
72 | /**
|
---|
73 | * @}
|
---|
74 | */
|
---|
75 |
|
---|
76 | /** @defgroup USBD_CDC_IF_Exported_Macros USBD_CDC_IF_Exported_Macros
|
---|
77 | * @brief Aliases.
|
---|
78 | * @{
|
---|
79 | */
|
---|
80 |
|
---|
81 | /* USER CODE BEGIN EXPORTED_MACRO */
|
---|
82 |
|
---|
83 | /* USER CODE END EXPORTED_MACRO */
|
---|
84 |
|
---|
85 | /**
|
---|
86 | * @}
|
---|
87 | */
|
---|
88 |
|
---|
89 | /** @defgroup USBD_CDC_IF_Exported_Variables USBD_CDC_IF_Exported_Variables
|
---|
90 | * @brief Public variables.
|
---|
91 | * @{
|
---|
92 | */
|
---|
93 |
|
---|
94 | /** CDC Interface callback. */
|
---|
95 | extern USBD_CDC_ItfTypeDef USBD_Interface_fops_FS;
|
---|
96 |
|
---|
97 | /* USER CODE BEGIN EXPORTED_VARIABLES */
|
---|
98 |
|
---|
99 | /* USER CODE END EXPORTED_VARIABLES */
|
---|
100 |
|
---|
101 | /**
|
---|
102 | * @}
|
---|
103 | */
|
---|
104 |
|
---|
105 | /** @defgroup USBD_CDC_IF_Exported_FunctionsPrototype USBD_CDC_IF_Exported_FunctionsPrototype
|
---|
106 | * @brief Public functions declaration.
|
---|
107 | * @{
|
---|
108 | */
|
---|
109 |
|
---|
110 | uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len);
|
---|
111 |
|
---|
112 | /* USER CODE BEGIN EXPORTED_FUNCTIONS */
|
---|
113 |
|
---|
114 | /* USER CODE END EXPORTED_FUNCTIONS */
|
---|
115 |
|
---|
116 | /**
|
---|
117 | * @}
|
---|
118 | */
|
---|
119 |
|
---|
120 | /**
|
---|
121 | * @}
|
---|
122 | */
|
---|
123 |
|
---|
124 | /**
|
---|
125 | * @}
|
---|
126 | */
|
---|
127 |
|
---|
128 | #ifdef __cplusplus
|
---|
129 | }
|
---|
130 | #endif
|
---|
131 |
|
---|
132 | #endif /* __USBD_CDC_IF_H__ */
|
---|
133 |
|
---|
134 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
---|