usb_device.h 2.4 KB

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