STM32H735xx HAL User Manual
Functions
Initialization and de-initialization functions
OPAMP Exported Functions

Functions

ErrorStatus LL_OPAMP_DeInit (OPAMP_TypeDef *OPAMPx)
 De-initialize registers of the selected OPAMP instance to their default reset values.
ErrorStatus LL_OPAMP_Init (OPAMP_TypeDef *OPAMPx, LL_OPAMP_InitTypeDef *OPAMP_InitStruct)
 Initialize some features of OPAMP instance.
void LL_OPAMP_StructInit (LL_OPAMP_InitTypeDef *OPAMP_InitStruct)
 Set each LL_OPAMP_InitTypeDef field to default value.

Function Documentation

ErrorStatus LL_OPAMP_DeInit ( OPAMP_TypeDef *  OPAMPx)

De-initialize registers of the selected OPAMP instance to their default reset values.

Note:
If comparator is locked, de-initialization by software is not possible. The only way to unlock the comparator is a device hardware reset.
Parameters:
OPAMPxOPAMP instance
Return values:
AnErrorStatus enumeration value:
  • SUCCESS: OPAMP registers are de-initialized
  • ERROR: OPAMP registers are not de-initialized

Definition at line 110 of file stm32h7xx_ll_opamp.c.

References assert_param, and LL_OPAMP_WriteReg.

ErrorStatus LL_OPAMP_Init ( OPAMP_TypeDef *  OPAMPx,
LL_OPAMP_InitTypeDef OPAMP_InitStruct 
)

Initialize some features of OPAMP instance.

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.
Parameters:
OPAMPxOPAMP instance
OPAMP_InitStructPointer to a LL_OPAMP_InitTypeDef structure
Return values:
AnErrorStatus enumeration value:
  • SUCCESS: OPAMP registers are initialized
  • ERROR: OPAMP registers are not initialized

Definition at line 134 of file stm32h7xx_ll_opamp.c.

References assert_param, LL_OPAMP_InitTypeDef::FunctionalMode, LL_OPAMP_InitTypeDef::InputInverting, LL_OPAMP_InitTypeDef::InputNonInverting, IS_LL_OPAMP_FUNCTIONAL_MODE, IS_LL_OPAMP_INPUT_INVERTING, IS_LL_OPAMP_INPUT_NONINVERTING, IS_LL_OPAMP_POWER_MODE, LL_OPAMP_MODE_FOLLOWER, OPAMP_POWERMODE_CSR_BIT_MASK, and LL_OPAMP_InitTypeDef::PowerMode.

void LL_OPAMP_StructInit ( LL_OPAMP_InitTypeDef OPAMP_InitStruct)

Set each LL_OPAMP_InitTypeDef field to default value.

Parameters:
OPAMP_InitStructpointer to a LL_OPAMP_InitTypeDef structure whose fields will be set to default values.
Return values:
None

Definition at line 198 of file stm32h7xx_ll_opamp.c.

References LL_OPAMP_InitTypeDef::FunctionalMode, LL_OPAMP_InitTypeDef::InputInverting, LL_OPAMP_InitTypeDef::InputNonInverting, LL_OPAMP_INPUT_INVERT_CONNECT_NO, LL_OPAMP_INPUT_NONINVERT_IO0, LL_OPAMP_MODE_FOLLOWER, LL_OPAMP_POWERMODE_NORMAL, and LL_OPAMP_InitTypeDef::PowerMode.