usb_device.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * @file : usb_device.h
  5. * @version : v2.0_Cube
  6. * @brief : Header for usb_device.c file.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * Copyright (c) 2024 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. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef __USB_DEVICE__H__
  22. #define __USB_DEVICE__H__
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Includes ------------------------------------------------------------------*/
  27. #include "stm32f1xx.h"
  28. #include "stm32f1xx_hal.h"
  29. #include "usbd_def.h"
  30. /* USER CODE BEGIN INCLUDE */
  31. /* USER CODE END INCLUDE */
  32. /** @addtogroup USBD_OTG_DRIVER
  33. * @{
  34. */
  35. /** @defgroup USBD_DEVICE USBD_DEVICE
  36. * @brief Device file for Usb otg low level driver.
  37. * @{
  38. */
  39. /** @defgroup USBD_DEVICE_Exported_Variables USBD_DEVICE_Exported_Variables
  40. * @brief Public variables.
  41. * @{
  42. */
  43. /* Private variables ---------------------------------------------------------*/
  44. /* USER CODE BEGIN PV */
  45. /* USER CODE END PV */
  46. /* Private function prototypes -----------------------------------------------*/
  47. /* USER CODE BEGIN PFP */
  48. /* USER CODE END PFP */
  49. /*
  50. * -- Insert your variables declaration here --
  51. */
  52. /* USER CODE BEGIN VARIABLES */
  53. /* USER CODE END VARIABLES */
  54. /**
  55. * @}
  56. */
  57. /** @defgroup USBD_DEVICE_Exported_FunctionsPrototype USBD_DEVICE_Exported_FunctionsPrototype
  58. * @brief Declaration of public functions for Usb device.
  59. * @{
  60. */
  61. /** USB Device initialization function. */
  62. void MX_USB_DEVICE_Init(void);
  63. /*
  64. * -- Insert functions declaration here --
  65. */
  66. /* USER CODE BEGIN FD */
  67. /* USER CODE END FD */
  68. /**
  69. * @}
  70. */
  71. /**
  72. * @}
  73. */
  74. /**
  75. * @}
  76. */
  77. #ifdef __cplusplus
  78. }
  79. #endif
  80. #endif /* __USB_DEVICE__H__ */