STM32L486xx HAL User Manual
Functions
Configuration of OPAMP hierarchical scope: OPAMP instance
OPAMP Exported Functions

Functions

__STATIC_INLINE void LL_OPAMP_SetPowerMode (OPAMP_TypeDef *OPAMPx, uint32_t PowerMode)
 Set OPAMP power mode.
__STATIC_INLINE uint32_t LL_OPAMP_GetPowerMode (OPAMP_TypeDef *OPAMPx)
 Get OPAMP power mode.
__STATIC_INLINE void LL_OPAMP_SetMode (OPAMP_TypeDef *OPAMPx, uint32_t Mode)
 Set OPAMP mode calibration or functional.
__STATIC_INLINE uint32_t LL_OPAMP_GetMode (OPAMP_TypeDef *OPAMPx)
 Get OPAMP mode calibration or functional.
__STATIC_INLINE void LL_OPAMP_SetFunctionalMode (OPAMP_TypeDef *OPAMPx, uint32_t FunctionalMode)
 Set OPAMP functional mode by setting internal connections.
__STATIC_INLINE uint32_t LL_OPAMP_GetFunctionalMode (OPAMP_TypeDef *OPAMPx)
 Get OPAMP functional mode from setting of internal connections.
__STATIC_INLINE void LL_OPAMP_SetPGAGain (OPAMP_TypeDef *OPAMPx, uint32_t PGAGain)
 Set OPAMP PGA gain.
__STATIC_INLINE uint32_t LL_OPAMP_GetPGAGain (OPAMP_TypeDef *OPAMPx)
 Get OPAMP PGA gain.

Function Documentation

__STATIC_INLINE uint32_t LL_OPAMP_GetFunctionalMode ( OPAMP_TypeDef *  OPAMPx)

Get OPAMP functional mode from setting of internal connections.

OPAMP operation in standalone, follower, ...

Reference Manual to LL API cross reference:
CSR OPAMODE LL_OPAMP_GetFunctionalMode
Parameters:
OPAMPxOPAMP instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 526 of file stm32l4xx_ll_opamp.h.

__STATIC_INLINE uint32_t LL_OPAMP_GetMode ( OPAMP_TypeDef *  OPAMPx)

Get OPAMP mode calibration or functional.

Note:
OPAMP mode corresponds to functional or calibration mode:
  • functional mode: OPAMP operation in standalone, follower, ... Set functional mode using function LL_OPAMP_SetFunctionalMode().
  • calibration mode: offset calibration of the selected transistors differential pair NMOS or PMOS.
Reference Manual to LL API cross reference:
CSR CALON LL_OPAMP_GetMode
Parameters:
OPAMPxOPAMP instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 490 of file stm32l4xx_ll_opamp.h.

__STATIC_INLINE uint32_t LL_OPAMP_GetPGAGain ( OPAMP_TypeDef *  OPAMPx)

Get OPAMP PGA gain.

Note:
Preliminarily, OPAMP must be set in mode PGA using function LL_OPAMP_SetFunctionalMode().
Reference Manual to LL API cross reference:
CSR PGGAIN LL_OPAMP_GetPGAGain
Parameters:
OPAMPxOPAMP instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 561 of file stm32l4xx_ll_opamp.h.

__STATIC_INLINE uint32_t LL_OPAMP_GetPowerMode ( OPAMP_TypeDef *  OPAMPx)

Get OPAMP power mode.

Reference Manual to LL API cross reference:
CSR OPALPM LL_OPAMP_GetPowerMode
Parameters:
OPAMPxOPAMP instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 444 of file stm32l4xx_ll_opamp.h.

__STATIC_INLINE void LL_OPAMP_SetFunctionalMode ( OPAMP_TypeDef *  OPAMPx,
uint32_t  FunctionalMode 
)

Set OPAMP functional mode by setting internal connections.

OPAMP operation in standalone, follower, ...

Note:
This function reset bit of calibration mode to ensure to be in functional mode, in order to have OPAMP parameters (inputs selection, ...) set with the corresponding OPAMP mode to be effective.
Reference Manual to LL API cross reference:
CSR OPAMODE LL_OPAMP_SetFunctionalMode
Parameters:
OPAMPxOPAMP instance
FunctionalModeThis parameter can be one of the following values:
Return values:
None

Definition at line 510 of file stm32l4xx_ll_opamp.h.

__STATIC_INLINE void LL_OPAMP_SetMode ( OPAMP_TypeDef *  OPAMPx,
uint32_t  Mode 
)

Set OPAMP mode calibration or functional.

Note:
OPAMP mode corresponds to functional or calibration mode:
  • functional mode: OPAMP operation in standalone, follower, ... Set functional mode using function LL_OPAMP_SetFunctionalMode().
  • calibration mode: offset calibration of the selected transistors differential pair NMOS or PMOS.
On this STM32 serie, during calibration, OPAMP functional mode must be set to standalone or follower mode (in order to open internal connections to resistors of PGA mode). Refer to function LL_OPAMP_SetFunctionalMode().
Reference Manual to LL API cross reference:
CSR CALON LL_OPAMP_SetMode
Parameters:
OPAMPxOPAMP instance
ModeThis parameter can be one of the following values:
Return values:
None

Definition at line 471 of file stm32l4xx_ll_opamp.h.

__STATIC_INLINE void LL_OPAMP_SetPGAGain ( OPAMP_TypeDef *  OPAMPx,
uint32_t  PGAGain 
)

Set OPAMP PGA gain.

Note:
Preliminarily, OPAMP must be set in mode PGA using function LL_OPAMP_SetFunctionalMode().
Reference Manual to LL API cross reference:
CSR PGGAIN LL_OPAMP_SetPGAGain
Parameters:
OPAMPxOPAMP instance
PGAGainThis parameter can be one of the following values:
Return values:
None

Definition at line 544 of file stm32l4xx_ll_opamp.h.

__STATIC_INLINE void LL_OPAMP_SetPowerMode ( OPAMP_TypeDef *  OPAMPx,
uint32_t  PowerMode 
)

Set OPAMP power mode.

Note:
The OPAMP must be disabled to change this configuration.
Reference Manual to LL API cross reference:
CSR OPALPM LL_OPAMP_SetPowerMode
Parameters:
OPAMPxOPAMP instance
PowerModeThis parameter can be one of the following values:
Return values:
None

Definition at line 431 of file stm32l4xx_ll_opamp.h.

References OPAMP_POWERMODE_CSR_BIT_MASK.