Subversion Repositories DashDisplay

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /**
  2.   ******************************************************************************
  3.   * @file           : usbd_cdc_if.h
  4.   * @brief          : Header for usbd_cdc_if file.
  5.   ******************************************************************************
  6.   * COPYRIGHT(c) 2016 STMicroelectronics
  7.   *
  8.   * Redistribution and use in source and binary forms, with or without modification,
  9.   * are permitted provided that the following conditions are met:
  10.   * 1. Redistributions of source code must retain the above copyright notice,
  11.   * this list of conditions and the following disclaimer.
  12.   * 2. Redistributions in binary form must reproduce the above copyright notice,
  13.   * this list of conditions and the following disclaimer in the documentation
  14.   * and/or other materials provided with the distribution.
  15.   * 3. Neither the name of STMicroelectronics nor the names of its contributors
  16.   * may be used to endorse or promote products derived from this software
  17.   * without specific prior written permission.
  18.   *
  19.   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  20.   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21.   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  22.   * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  23.   * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  24.   * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  25.   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  26.   * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  27.   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28.   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29.   *
  30.   ******************************************************************************
  31. */
  32.  
  33. /* Define to prevent recursive inclusion -------------------------------------*/
  34. #ifndef __USBD_CDC_IF_H
  35. #define __USBD_CDC_IF_H
  36.  
  37. #ifdef __cplusplus
  38.  extern "C" {
  39. #endif
  40. /* Includes ------------------------------------------------------------------*/
  41. #include "usbd_cdc.h"
  42. /* USER CODE BEGIN INCLUDE */
  43. /* USER CODE END INCLUDE */
  44.  
  45. /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
  46.   * @{
  47.   */
  48.  
  49. /** @defgroup USBD_CDC_IF
  50.   * @brief header
  51.   * @{
  52.   */
  53.  
  54. /** @defgroup USBD_CDC_IF_Exported_Defines
  55.   * @{
  56.   */
  57. /* USER CODE BEGIN EXPORTED_DEFINES */
  58. /* USER CODE END EXPORTED_DEFINES */
  59.  
  60. /**
  61.   * @}
  62.   */
  63.  
  64. /** @defgroup USBD_CDC_IF_Exported_Types
  65.   * @{
  66.   */  
  67. /* USER CODE BEGIN EXPORTED_TYPES */
  68. /* USER CODE END EXPORTED_TYPES */
  69.  
  70. /**
  71.   * @}
  72.   */
  73.  
  74. /** @defgroup USBD_CDC_IF_Exported_Macros
  75.   * @{
  76.   */
  77. /* USER CODE BEGIN EXPORTED_MACRO */
  78. /* USER CODE END EXPORTED_MACRO */
  79.  
  80. /**
  81.   * @}
  82.   */
  83.  
  84. /** @defgroup USBD_AUDIO_IF_Exported_Variables
  85.   * @{
  86.   */
  87. extern USBD_CDC_ItfTypeDef  USBD_Interface_fops_FS;
  88.  
  89. /* USER CODE BEGIN EXPORTED_VARIABLES */
  90. extern IRDA_HandleTypeDef hirda3;
  91. /* USER CODE END EXPORTED_VARIABLES */
  92.  
  93. /**
  94.   * @}
  95.   */
  96.  
  97. /** @defgroup USBD_CDC_IF_Exported_FunctionsPrototype
  98.   * @{
  99.   */
  100. uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len);
  101.  
  102. /* USER CODE BEGIN EXPORTED_FUNCTIONS */
  103.  
  104. int16_t CDC_Poll_UART(void);
  105.  
  106. /* USER CODE END EXPORTED_FUNCTIONS */
  107. /**
  108.   * @}
  109.   */
  110.  
  111. /**
  112.   * @}
  113.   */
  114.  
  115. /**
  116.   * @}
  117.   */
  118.  
  119. #ifdef __cplusplus
  120. }
  121. #endif
  122.  
  123. #endif /* __USBD_CDC_IF_H */
  124.  
  125. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
  126.