STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_hal_opamp.h File Reference

Header file of OPAMP HAL module. More...

Go to the source code of this file.

Data Structures

struct  endif
 ADC handle Structure definition. More...
 

Typedefs

typedef struct __OPAMP_HandleTypeDef else typedef struct endif OPAMP_HandleTypeDef
 OPAMP Handle Structure definition. More...
 
typedef uint32_t HAL_OPAMP_TrimmingValueTypeDef
 HAl_OPAMP_TrimmingValueTypeDef definition. More...
 
typedef void(* pOPAMP_CallbackTypeDef) (OPAMP_HandleTypeDef *hopamp)
 HAL OPAMP Callback pointer definition. More...
 

Enumerations

enum  HAL_OPAMP_StateTypeDef {
  HAL_OPAMP_STATE_RESET = 0x00000000, HAL_OPAMP_STATE_READY = 0x00000001, HAL_OPAMP_STATE_CALIBBUSY = 0x00000002, HAL_OPAMP_STATE_BUSY = 0x00000004,
  HAL_OPAMP_STATE_BUSYLOCKED = 0x00000005
}
 HAL State structures definition. More...
 
enum  HAL_OPAMP_CallbackIDTypeDef { HAL_OPAMP_MSPINIT_CB_ID = 0x01U, HAL_OPAMP_MSPDEINIT_CB_ID = 0x02U, HAL_OPAMP_ALL_CB_ID = 0x03U }
 HAL OPAMP Callback ID enumeration definition. More...
 

Functions

HAL_StatusTypeDef HAL_OPAMP_Init (OPAMP_HandleTypeDef *hopamp)
 Initializes the OPAMP according to the specified parameters in the OPAMP_InitTypeDef and initialize the associated handle. More...
 
HAL_StatusTypeDef HAL_OPAMP_DeInit (OPAMP_HandleTypeDef *hopamp)
 DeInitialize the OPAMP peripheral. More...
 
void HAL_OPAMP_MspInit (OPAMP_HandleTypeDef *hopamp)
 Initialize the OPAMP MSP. More...
 
void HAL_OPAMP_MspDeInit (OPAMP_HandleTypeDef *hopamp)
 DeInitialize OPAMP MSP. More...
 
HAL_StatusTypeDef HAL_OPAMP_Start (OPAMP_HandleTypeDef *hopamp)
 Start the OPAMP. More...
 
HAL_StatusTypeDef HAL_OPAMP_Stop (OPAMP_HandleTypeDef *hopamp)
 Stop the OPAMP. More...
 
HAL_StatusTypeDef HAL_OPAMP_SelfCalibrate (OPAMP_HandleTypeDef *hopamp)
 Run the self calibration of one OPAMP. More...
 
HAL_StatusTypeDef HAL_OPAMP_RegisterCallback (OPAMP_HandleTypeDef *hopamp, HAL_OPAMP_CallbackIDTypeDef CallbackID, pOPAMP_CallbackTypeDef pCallback)
 Register a User OPAMP Callback To be used instead of the weak (surcharged) predefined callback. More...
 
HAL_StatusTypeDef HAL_OPAMP_UnRegisterCallback (OPAMP_HandleTypeDef *hopamp, HAL_OPAMP_CallbackIDTypeDef CallbackID)
 Unregister a User OPAMP Callback OPAMP Callback is redirected to the weak (surcharged) predefined callback. More...
 
HAL_StatusTypeDef HAL_OPAMP_Lock (OPAMP_HandleTypeDef *hopamp)
 Lock the selected OPAMP configuration. More...
 
HAL_OPAMP_TrimmingValueTypeDef HAL_OPAMP_GetTrimOffset (OPAMP_HandleTypeDef *hopamp, uint32_t trimmingoffset)
 Return the OPAMP factory trimming value. More...
 
HAL_OPAMP_StateTypeDef HAL_OPAMP_GetState (OPAMP_HandleTypeDef *hopamp)
 Return the OPAMP handle state. More...
 

Variables

 C
 

Detailed Description

Header file of OPAMP HAL module.

Author
MCD Application Team
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_hal_opamp.h.

Typedef Documentation

◆ HAL_OPAMP_TrimmingValueTypeDef

HAl_OPAMP_TrimmingValueTypeDef definition.

Definition at line 146 of file stm32l4xx_hal_opamp.h.

◆ OPAMP_HandleTypeDef

typedef struct __OPAMP_HandleTypeDef else typedef struct endif OPAMP_HandleTypeDef

OPAMP Handle Structure definition.

◆ pOPAMP_CallbackTypeDef

typedef void(* pOPAMP_CallbackTypeDef) (OPAMP_HandleTypeDef *hopamp)

HAL OPAMP Callback pointer definition.

Definition at line 166 of file stm32l4xx_hal_opamp.h.

Enumeration Type Documentation

◆ HAL_OPAMP_CallbackIDTypeDef

HAL OPAMP Callback ID enumeration definition.

Enumerator
HAL_OPAMP_MSPINIT_CB_ID 

OPAMP MspInit Callback ID

HAL_OPAMP_MSPDEINIT_CB_ID 

OPAMP MspDeInit Callback ID

HAL_OPAMP_ALL_CB_ID 

OPAMP All ID

Definition at line 156 of file stm32l4xx_hal_opamp.h.

◆ HAL_OPAMP_StateTypeDef

HAL State structures definition.

Enumerator
HAL_OPAMP_STATE_RESET 

OPAMP is not yet Initialized

HAL_OPAMP_STATE_READY 

OPAMP is initialized and ready for use

HAL_OPAMP_STATE_CALIBBUSY 

OPAMP is enabled in auto calibration mode

HAL_OPAMP_STATE_BUSY 

OPAMP is enabled and running in normal mode

HAL_OPAMP_STATE_BUSYLOCKED 

OPAMP is locked only system reset allows reconfiguring the opamp.

Definition at line 106 of file stm32l4xx_hal_opamp.h.

Variable Documentation

◆ C

C