STM32L486xx HAL User Manual
Functions
Configuration and operation of OPAMP trimming
OPAMP Exported Functions

Functions

__STATIC_INLINE void LL_OPAMP_SetTrimmingMode (OPAMP_TypeDef *OPAMPx, uint32_t TrimmingMode)
 Set OPAMP trimming mode.
__STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingMode (OPAMP_TypeDef *OPAMPx)
 Get OPAMP trimming mode.
__STATIC_INLINE void LL_OPAMP_SetCalibrationSelection (OPAMP_TypeDef *OPAMPx, uint32_t TransistorsDiffPair)
 Set OPAMP offset to calibrate the selected transistors differential pair NMOS or PMOS.
__STATIC_INLINE uint32_t LL_OPAMP_GetCalibrationSelection (OPAMP_TypeDef *OPAMPx)
 Get OPAMP offset to calibrate the selected transistors differential pair NMOS or PMOS.
__STATIC_INLINE uint32_t LL_OPAMP_IsCalibrationOutputSet (OPAMP_TypeDef *OPAMPx)
 Get OPAMP calibration result of toggling output.
__STATIC_INLINE void LL_OPAMP_SetTrimmingValue (OPAMP_TypeDef *OPAMPx, uint32_t PowerMode, uint32_t TransistorsDiffPair, uint32_t TrimmingValue)
 Set OPAMP trimming factor for the selected transistors differential pair NMOS or PMOS, corresponding to the selected power mode.
__STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingValue (OPAMP_TypeDef *OPAMPx, uint32_t PowerMode, uint32_t TransistorsDiffPair)
 Get OPAMP trimming factor for the selected transistors differential pair NMOS or PMOS, corresponding to the selected power mode.

Function Documentation

__STATIC_INLINE uint32_t LL_OPAMP_GetCalibrationSelection ( OPAMP_TypeDef *  OPAMPx)

Get OPAMP offset to calibrate the selected transistors differential pair NMOS or PMOS.

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

Definition at line 718 of file stm32l4xx_ll_opamp.h.

__STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingMode ( OPAMP_TypeDef *  OPAMPx)

Get OPAMP trimming mode.

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

Definition at line 683 of file stm32l4xx_ll_opamp.h.

__STATIC_INLINE uint32_t LL_OPAMP_GetTrimmingValue ( OPAMP_TypeDef *  OPAMPx,
uint32_t  PowerMode,
uint32_t  TransistorsDiffPair 
)

Get OPAMP trimming factor for the selected transistors differential pair NMOS or PMOS, corresponding to the selected power mode.

Reference Manual to LL API cross reference:
OTR TRIMOFFSETN LL_OPAMP_GetTrimmingValue
OTR TRIMOFFSETP LL_OPAMP_GetTrimmingValue
LPOTR TRIMLPOFFSETN LL_OPAMP_GetTrimmingValue
LPOTR TRIMLPOFFSETP LL_OPAMP_GetTrimmingValue
Parameters:
OPAMPxOPAMP instance
PowerModeThis parameter can be one of the following values:
TransistorsDiffPairThis parameter can be one of the following values:
Return values:
0x0...0x1F

Definition at line 788 of file stm32l4xx_ll_opamp.h.

References __OPAMP_PTR_REG_OFFSET, OPAMP_POWERMODE_OTR_REGOFFSET_MASK, and OPAMP_TRIMMING_VALUE_MASK.

__STATIC_INLINE uint32_t LL_OPAMP_IsCalibrationOutputSet ( OPAMP_TypeDef *  OPAMPx)

Get OPAMP calibration result of toggling output.

Note:
This functions returns: 0 if OPAMP calibration output is reset 1 if OPAMP calibration output is set
Reference Manual to LL API cross reference:
CSR CALOUT LL_OPAMP_IsCalibrationOutputSet
Parameters:
OPAMPxOPAMP instance
Return values:
Stateof bit (1 or 0).

Definition at line 735 of file stm32l4xx_ll_opamp.h.

__STATIC_INLINE void LL_OPAMP_SetCalibrationSelection ( OPAMP_TypeDef *  OPAMPx,
uint32_t  TransistorsDiffPair 
)

Set OPAMP offset to calibrate the selected transistors differential pair NMOS or PMOS.

Note:
Preliminarily, OPAMP must be set in mode calibration using function LL_OPAMP_SetMode().
Reference Manual to LL API cross reference:
CSR CALSEL LL_OPAMP_SetCalibrationSelection
Parameters:
OPAMPxOPAMP instance
TransistorsDiffPairThis parameter can be one of the following values:
Return values:
None

Definition at line 700 of file stm32l4xx_ll_opamp.h.

References OPAMP_TRIMMING_SELECT_MASK.

__STATIC_INLINE void LL_OPAMP_SetTrimmingMode ( OPAMP_TypeDef *  OPAMPx,
uint32_t  TrimmingMode 
)

Set OPAMP trimming mode.

Reference Manual to LL API cross reference:
CSR USERTRIM LL_OPAMP_SetTrimmingMode
Parameters:
OPAMPxOPAMP instance
TrimmingModeThis parameter can be one of the following values:
Return values:
None

Definition at line 670 of file stm32l4xx_ll_opamp.h.

__STATIC_INLINE void LL_OPAMP_SetTrimmingValue ( OPAMP_TypeDef *  OPAMPx,
uint32_t  PowerMode,
uint32_t  TransistorsDiffPair,
uint32_t  TrimmingValue 
)

Set OPAMP trimming factor for the selected transistors differential pair NMOS or PMOS, corresponding to the selected power mode.

Reference Manual to LL API cross reference:
OTR TRIMOFFSETN LL_OPAMP_SetTrimmingValue
OTR TRIMOFFSETP LL_OPAMP_SetTrimmingValue
LPOTR TRIMLPOFFSETN LL_OPAMP_SetTrimmingValue
LPOTR TRIMLPOFFSETP LL_OPAMP_SetTrimmingValue
Parameters:
OPAMPxOPAMP instance
PowerModeThis parameter can be one of the following values:
TransistorsDiffPairThis parameter can be one of the following values:
TrimmingValue0x00...0x1F
Return values:
None

Definition at line 758 of file stm32l4xx_ll_opamp.h.

References __OPAMP_PTR_REG_OFFSET, OPAMP_POWERMODE_OTR_REGOFFSET_MASK, and OPAMP_TRIMMING_VALUE_MASK.