TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

Fork of TUKS-COURSE-TIMER by TUKS MCU Introductory course

Embed: (wiki syntax)

« Back to documentation index

Initialization and de-initialization 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.

Parameters:
OPAMPxOPAMP instance
Return values:
AnErrorStatus enumeration value:

  • SUCCESS: OPAMP registers are de-initialized
  • ERROR: OPAMP registers are not de-initialized

Definition at line 123 of file stm32l4xx_ll_opamp.c.

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.
This function configures features of the selected OPAMP instance. Some features are also available at scope OPAMP common instance (common to several OPAMP instances). Refer to functions having argument "OPAMPxy_COMMON" as parameter.
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 151 of file stm32l4xx_ll_opamp.c.

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 214 of file stm32l4xx_ll_opamp.c.