| 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 | * 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 | #ifndef __USB_DEVICE__H__
|
|---|
| 23 | #define __USB_DEVICE__H__
|
|---|
| 24 |
|
|---|
| 25 | #ifdef __cplusplus
|
|---|
| 26 | extern "C" {
|
|---|
| 27 | #endif
|
|---|
| 28 |
|
|---|
| 29 | /* Includes ------------------------------------------------------------------*/
|
|---|
| 30 | #include "stm32g4xx.h"
|
|---|
| 31 | #include "stm32g4xx_hal.h"
|
|---|
| 32 | #include "usbd_def.h"
|
|---|
| 33 |
|
|---|
| 34 | /* USER CODE BEGIN INCLUDE */
|
|---|
| 35 |
|
|---|
| 36 | /* USER CODE END INCLUDE */
|
|---|
| 37 |
|
|---|
| 38 | /** @addtogroup USBD_OTG_DRIVER
|
|---|
| 39 | * @{
|
|---|
| 40 | */
|
|---|
| 41 |
|
|---|
| 42 | /** @defgroup USBD_DEVICE USBD_DEVICE
|
|---|
| 43 | * @brief Device file for Usb otg low level driver.
|
|---|
| 44 | * @{
|
|---|
| 45 | */
|
|---|
| 46 |
|
|---|
| 47 | /** @defgroup USBD_DEVICE_Exported_Variables USBD_DEVICE_Exported_Variables
|
|---|
| 48 | * @brief Public variables.
|
|---|
| 49 | * @{
|
|---|
| 50 | */
|
|---|
| 51 |
|
|---|
| 52 | /* Private variables ---------------------------------------------------------*/
|
|---|
| 53 | /* USER CODE BEGIN PV */
|
|---|
| 54 |
|
|---|
| 55 | /* USER CODE END PV */
|
|---|
| 56 |
|
|---|
| 57 | /* Private function prototypes -----------------------------------------------*/
|
|---|
| 58 | /* USER CODE BEGIN PFP */
|
|---|
| 59 |
|
|---|
| 60 | /* USER CODE END PFP */
|
|---|
| 61 |
|
|---|
| 62 | /*
|
|---|
| 63 | * -- Insert your variables declaration here --
|
|---|
| 64 | */
|
|---|
| 65 | /* USER CODE BEGIN VARIABLES */
|
|---|
| 66 |
|
|---|
| 67 | /* USER CODE END VARIABLES */
|
|---|
| 68 | /**
|
|---|
| 69 | * @}
|
|---|
| 70 | */
|
|---|
| 71 |
|
|---|
| 72 | /** @defgroup USBD_DEVICE_Exported_FunctionsPrototype USBD_DEVICE_Exported_FunctionsPrototype
|
|---|
| 73 | * @brief Declaration of public functions for Usb device.
|
|---|
| 74 | * @{
|
|---|
| 75 | */
|
|---|
| 76 |
|
|---|
| 77 | /** USB Device initialization function. */
|
|---|
| 78 | void MX_USB_Device_Init(void);
|
|---|
| 79 |
|
|---|
| 80 | /*
|
|---|
| 81 | * -- Insert functions declaration here --
|
|---|
| 82 | */
|
|---|
| 83 | /* USER CODE BEGIN FD */
|
|---|
| 84 |
|
|---|
| 85 | /* USER CODE END FD */
|
|---|
| 86 | /**
|
|---|
| 87 | * @}
|
|---|
| 88 | */
|
|---|
| 89 |
|
|---|
| 90 | /**
|
|---|
| 91 | * @}
|
|---|
| 92 | */
|
|---|
| 93 |
|
|---|
| 94 | /**
|
|---|
| 95 | * @}
|
|---|
| 96 | */
|
|---|
| 97 |
|
|---|
| 98 | #ifdef __cplusplus
|
|---|
| 99 | }
|
|---|
| 100 | #endif
|
|---|
| 101 |
|
|---|
| 102 | #endif /* __USB_DEVICE__H__ */
|
|---|
| 103 |
|
|---|