Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
usbd_cdc_if.h
00001 /** 00002 ****************************************************************************** 00003 * @file : usbd_cdc_if.h 00004 * @brief : Header for usbd_cdc_if file. 00005 ****************************************************************************** 00006 * COPYRIGHT(c) 2016 STMicroelectronics 00007 * 00008 * Redistribution and use in source and binary forms, with or without modification, 00009 * are permitted provided that the following conditions are met: 00010 * 1. Redistributions of source code must retain the above copyright notice, 00011 * this list of conditions and the following disclaimer. 00012 * 2. Redistributions in binary form must reproduce the above copyright notice, 00013 * this list of conditions and the following disclaimer in the documentation 00014 * and/or other materials provided with the distribution. 00015 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00016 * may be used to endorse or promote products derived from this software 00017 * without specific prior written permission. 00018 * 00019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00020 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00021 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00022 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00023 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00024 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00025 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00026 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00027 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00028 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00029 * 00030 ****************************************************************************** 00031 */ 00032 00033 /* Define to prevent recursive inclusion -------------------------------------*/ 00034 #ifndef __USBD_CDC_IF_H 00035 #define __USBD_CDC_IF_H 00036 00037 #ifdef __cplusplus 00038 extern "C" { 00039 #endif 00040 /* Includes ------------------------------------------------------------------*/ 00041 #include "usbd_cdc.h" 00042 /* USER CODE BEGIN INCLUDE */ 00043 /* USER CODE END INCLUDE */ 00044 00045 /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY 00046 * @{ 00047 */ 00048 00049 /** @defgroup USBD_CDC_IF 00050 * @brief header 00051 * @{ 00052 */ 00053 00054 /** @defgroup USBD_CDC_IF_Exported_Defines 00055 * @{ 00056 */ 00057 /* USER CODE BEGIN EXPORTED_DEFINES */ 00058 /* USER CODE END EXPORTED_DEFINES */ 00059 00060 /** 00061 * @} 00062 */ 00063 00064 /** @defgroup USBD_CDC_IF_Exported_Types 00065 * @{ 00066 */ 00067 /* USER CODE BEGIN EXPORTED_TYPES */ 00068 /* USER CODE END EXPORTED_TYPES */ 00069 00070 /** 00071 * @} 00072 */ 00073 00074 /** @defgroup USBD_CDC_IF_Exported_Macros 00075 * @{ 00076 */ 00077 /* USER CODE BEGIN EXPORTED_MACRO */ 00078 /* USER CODE END EXPORTED_MACRO */ 00079 00080 /** 00081 * @} 00082 */ 00083 00084 /** @defgroup USBD_AUDIO_IF_Exported_Variables 00085 * @{ 00086 */ 00087 extern USBD_CDC_ItfTypeDef USBD_Interface_fops_FS; 00088 00089 /* USER CODE BEGIN EXPORTED_VARIABLES */ 00090 /* USER CODE END EXPORTED_VARIABLES */ 00091 00092 /** 00093 * @} 00094 */ 00095 00096 /** @defgroup USBD_CDC_IF_Exported_FunctionsPrototype 00097 * @{ 00098 */ 00099 uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len); 00100 int8_t CDC_Receive_FSP(uint8_t* Buf, uint32_t *Len); 00101 /* USER CODE BEGIN EXPORTED_FUNCTIONS */ 00102 /* USER CODE END EXPORTED_FUNCTIONS */ 00103 /** 00104 * @} 00105 */ 00106 00107 /** 00108 * @} 00109 */ 00110 00111 /** 00112 * @} 00113 */ 00114 00115 #ifdef __cplusplus 00116 } 00117 #endif 00118 00119 #endif /* __USBD_CDC_IF_H */ 00120 00121 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 22:19:21 by
