1 /**
2   ******************************************************************************
3   * @file    stm32g4xx_hal_opamp_ex.h
4   * @author  MCD Application Team
5   * @brief   Header file of OPAMP HAL Extended module.
6   ******************************************************************************
7   * @attention
8   *
9   * Copyright (c) 2019 STMicroelectronics.
10   * All rights reserved.
11   *
12   * This software is licensed under terms that can be found in the LICENSE file
13   * in the root directory of this software component.
14   * If no LICENSE file comes with this software, it is provided AS-IS.
15   *
16   ******************************************************************************
17   */
18 
19 /* Define to prevent recursive inclusion -------------------------------------*/
20 #ifndef STM32G4xx_HAL_OPAMP_EX_H
21 #define STM32G4xx_HAL_OPAMP_EX_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 /* Includes ------------------------------------------------------------------*/
28 #include "stm32g4xx_hal_def.h"
29 
30 /** @addtogroup STM32G4xx_HAL_Driver
31   * @{
32   */
33 
34 #if defined (OPAMP1) || defined (OPAMP2) || defined (OPAMP3) || defined (OPAMP4) || defined (OPAMP5) || defined (OPAMP6)
35 
36 /** @addtogroup OPAMPEx OPAMPEx
37   * @{
38   */
39 /* Exported types ------------------------------------------------------------*/
40 /* Exported constants --------------------------------------------------------*/
41 /* Exported macro ------------------------------------------------------------*/
42 /* Exported functions --------------------------------------------------------*/
43 /** @addtogroup OPAMPEx_Exported_Functions OPAMP Extended Exported Functions
44   * @{
45   */
46 
47 /** @addtogroup OPAMPEx_Exported_Functions_Group1 Extended Input and Output operation functions
48   * @{
49   */
50 
51 /* I/O operation functions  *****************************************************/
52 
53 #if defined(STM32G473xx) || defined(STM32G474xx) || defined(STM32G483xx) || defined(STM32G484xx)
54 HAL_StatusTypeDef HAL_OPAMPEx_SelfCalibrateAll(OPAMP_HandleTypeDef *hopamp1, OPAMP_HandleTypeDef *hopamp2,
55                                                OPAMP_HandleTypeDef *hopamp3, OPAMP_HandleTypeDef *hopamp4, OPAMP_HandleTypeDef *hopamp5, OPAMP_HandleTypeDef *hopamp6);
56 #elif defined(STM32GBK1CB) || defined(STM32G431xx) || defined(STM32G441xx) || defined(STM32G471xx)
57 HAL_StatusTypeDef HAL_OPAMPEx_SelfCalibrateAll(OPAMP_HandleTypeDef *hopamp1, OPAMP_HandleTypeDef *hopamp2,
58                                                OPAMP_HandleTypeDef *hopamp3);
59 #elif defined(STM32G491xx) || defined(STM32G4A1xx)
60 HAL_StatusTypeDef HAL_OPAMPEx_SelfCalibrateAll(OPAMP_HandleTypeDef *hopamp1, OPAMP_HandleTypeDef *hopamp2,
61                                                OPAMP_HandleTypeDef *hopamp3, OPAMP_HandleTypeDef *hopamp6);
62 #elif defined(STM32G411xB) || defined(STM32G411xC)
63 HAL_StatusTypeDef HAL_OPAMPEx_SelfCalibrateAll(OPAMP_HandleTypeDef *hopamp1);
64 #endif /* STM32G473xx || STM32G474xx || STM32G483xx || STM32G484xx */
65 
66 /**
67   * @}
68   */
69 
70 /**
71   * @}
72   */
73 
74 /**
75   * @}
76   */
77 
78 #endif /* OPAMP1 || OPAMP2 || OPAMP3 || OPAMP4  || OPAMP5 || OPAMP6 */
79 
80 /**
81   * @}
82   */
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 
89 #endif /* STM32G4xx_HAL_OPAMP_EX_H */
90