STM32L486xx HAL User Manual
Functions
Extended Input and Output operation functions
OPAMPEx Exported Functions

Functions

HAL_StatusTypeDef HAL_OPAMPEx_SelfCalibrateAll (OPAMP_HandleTypeDef *hopamp1, OPAMP_HandleTypeDef *hopamp2)
 Run the self calibration of the 2 OPAMPs in parallel.

Function Documentation

HAL_StatusTypeDef HAL_OPAMPEx_SelfCalibrateAll ( OPAMP_HandleTypeDef hopamp1,
OPAMP_HandleTypeDef hopamp2 
)

Run the self calibration of the 2 OPAMPs in parallel.

Note:
Trimming values (PMOS & NMOS) are updated and user trimming is enabled is calibration is successful.
Calibration is performed in the mode specified in OPAMP init structure (mode normal or low-power). To perform calibration for both modes, repeat this function twice after OPAMP init structure accordingly updated.
Calibration runs about 10 ms (5 dichotomy steps, repeated for P and N transistors: 10 steps with 1 ms for each step).
Parameters:
hopamp1handle
hopamp2handle
Return values:
HALstatus

Definition at line 105 of file stm32l4xx_hal_opamp_ex.c.

References assert_param, HAL_Delay(), HAL_OPAMP_STATE_BUSYLOCKED, HAL_OPAMP_STATE_READY, __OPAMP_HandleTypeDef::Init, __OPAMP_HandleTypeDef::Instance, IS_OPAMP_POWERMODE, OPAMP_INPUT_NONINVERTING, OPAMP_POWERMODE_LOWPOWER, OPAMP_POWERMODE_NORMAL, OPAMP_STANDALONE_MODE, OPAMP_TRIMMING_DELAY, OPAMP_TRIMMING_USER, OPAMP_InitTypeDef::PowerMode, __OPAMP_HandleTypeDef::State, OPAMP_InitTypeDef::TrimmingValueN, OPAMP_InitTypeDef::TrimmingValueNLowPower, OPAMP_InitTypeDef::TrimmingValueP, OPAMP_InitTypeDef::TrimmingValuePLowPower, and OPAMP_InitTypeDef::UserTrimming.