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
[COMP Exported Functions]

Functions

ErrorStatus LL_COMP_DeInit (COMP_TypeDef *COMPx)
 De-initialize registers of the selected COMP instance to their default reset values.
ErrorStatus LL_COMP_Init (COMP_TypeDef *COMPx, LL_COMP_InitTypeDef *COMP_InitStruct)
 Initialize some features of COMP instance.
void LL_COMP_StructInit (LL_COMP_InitTypeDef *COMP_InitStruct)
 Set each LL_COMP_InitTypeDef field to default value.

Function Documentation

ErrorStatus LL_COMP_DeInit ( COMP_TypeDef *  COMPx )

De-initialize registers of the selected COMP 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:
COMPxCOMP instance
Return values:
AnErrorStatus enumeration value:

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

Definition at line 173 of file stm32l4xx_ll_comp.c.

ErrorStatus LL_COMP_Init ( COMP_TypeDef *  COMPx,
LL_COMP_InitTypeDef COMP_InitStruct 
)

Initialize some features of COMP instance.

Note:
This function configures features of the selected COMP instance. Some features are also available at scope COMP common instance (common to several COMP instances). Refer to functions having argument "COMPxy_COMMON" as parameter.
Parameters:
COMPxCOMP instance
COMP_InitStructPointer to a LL_COMP_InitTypeDef structure
Return values:
AnErrorStatus enumeration value:

  • SUCCESS: COMP registers are initialized
  • ERROR: COMP registers are not initialized

Definition at line 210 of file stm32l4xx_ll_comp.c.

void LL_COMP_StructInit ( LL_COMP_InitTypeDef COMP_InitStruct )

Set each LL_COMP_InitTypeDef field to default value.

Parameters:
COMP_InitStruct,:pointer to a LL_COMP_InitTypeDef structure whose fields will be set to default values.
Return values:
None

Definition at line 289 of file stm32l4xx_ll_comp.c.