source: trunk/fw_g473rct/USB_Device/App/usbd_cdc_if.h

Last change on this file was 61, checked in by f.jahn, 5 weeks ago

Added more USB Device stack files.

File size: 2.7 KB
Line 
1/* USER CODE BEGIN Header */
2/**
3 ******************************************************************************
4 * @file : usbd_cdc_if.h
5 * @version : v3.0_Cube
6 * @brief : Header for usbd_cdc_if.c file.
7 ******************************************************************************
8 * @attention
9 *
10 * Copyright (c) 2026 STMicroelectronics.
11 * All rights reserved.
12 *
13 * This software is licensed under terms that can be found in the LICENSE file
14 * in the root directory of this software component.
15 * If no LICENSE file comes with this software, it is provided AS-IS.
16 *
17 ******************************************************************************
18 */
19/* USER CODE END Header */
20
21/* Define to prevent recursive inclusion -------------------------------------*/
22
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/* Define size for the receive and transmit buffer over CDC */
52#define APP_RX_DATA_SIZE 2048
53#define APP_TX_DATA_SIZE 2048
54/* USER CODE BEGIN EXPORTED_DEFINES */
55
56/* USER CODE END EXPORTED_DEFINES */
57
58/**
59 * @}
60 */
61
62/** @defgroup USBD_CDC_IF_Exported_Types USBD_CDC_IF_Exported_Types
63 * @brief Types.
64 * @{
65 */
66
67/* USER CODE BEGIN EXPORTED_TYPES */
68
69/* USER CODE END EXPORTED_TYPES */
70
71/**
72 * @}
73 */
74
75/** @defgroup USBD_CDC_IF_Exported_Macros USBD_CDC_IF_Exported_Macros
76 * @brief Aliases.
77 * @{
78 */
79
80/* USER CODE BEGIN EXPORTED_MACRO */
81
82/* USER CODE END EXPORTED_MACRO */
83
84/**
85 * @}
86 */
87
88/** @defgroup USBD_CDC_IF_Exported_Variables USBD_CDC_IF_Exported_Variables
89 * @brief Public variables.
90 * @{
91 */
92
93/** CDC Interface callback. */
94extern USBD_CDC_ItfTypeDef USBD_Interface_fops_FS;
95
96/* USER CODE BEGIN EXPORTED_VARIABLES */
97
98/* USER CODE END EXPORTED_VARIABLES */
99
100/**
101 * @}
102 */
103
104/** @defgroup USBD_CDC_IF_Exported_FunctionsPrototype USBD_CDC_IF_Exported_FunctionsPrototype
105 * @brief Public functions declaration.
106 * @{
107 */
108
109uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len);
110
111/* USER CODE BEGIN EXPORTED_FUNCTIONS */
112
113/* USER CODE END EXPORTED_FUNCTIONS */
114
115/**
116 * @}
117 */
118
119/**
120 * @}
121 */
122
123/**
124 * @}
125 */
126
127#ifdef __cplusplus
128}
129#endif
130
131#endif /* __USBD_CDC_IF_H__ */
132
Note: See TracBrowser for help on using the repository browser.