TUKS MCU Introductory course / TUKS-COURSE-2-LED
Embed: (wiki syntax)

« Back to documentation index

Initialization/de-initialization functions

Initialization/de-initialization functions
[COMP Exported Functions]

Initialization and de-initialization functions. More...

Functions

HAL_StatusTypeDef HAL_COMP_Init (COMP_HandleTypeDef *hcomp)
 Initialize the COMP according to the specified parameters in the COMP_InitTypeDef and initialize the associated handle.
HAL_StatusTypeDef HAL_COMP_DeInit (COMP_HandleTypeDef *hcomp)
 DeInitialize the COMP peripheral.
__weak void HAL_COMP_MspInit (COMP_HandleTypeDef *hcomp)
 Initialize the COMP MSP.
__weak void HAL_COMP_MspDeInit (COMP_HandleTypeDef *hcomp)
 DeInitialize the COMP MSP.

Detailed Description

Initialization and de-initialization functions.

 ===============================================================================
              ##### Initialization and de-initialization functions #####
 ===============================================================================
    [..]  This section provides functions to initialize and de-initialize comparators 


Function Documentation

HAL_StatusTypeDef HAL_COMP_DeInit ( COMP_HandleTypeDef *  hcomp )

DeInitialize the COMP peripheral.

Note:
Deinitialization cannot be performed if the COMP configuration is locked. To unlock the configuration, perform a system reset.
Parameters:
hcompCOMP handle
Return values:
HALstatus

Definition at line 402 of file stm32l4xx_hal_comp.c.

HAL_StatusTypeDef HAL_COMP_Init ( COMP_HandleTypeDef *  hcomp )

Initialize the COMP according to the specified parameters in the COMP_InitTypeDef and initialize the associated handle.

Note:
If the selected comparator is locked, initialization can't be performed. To unlock the configuration, perform a system reset.
Parameters:
hcompCOMP handle
Return values:
HALstatus

Definition at line 222 of file stm32l4xx_hal_comp.c.

__weak void HAL_COMP_MspDeInit ( COMP_HandleTypeDef *  hcomp )

DeInitialize the COMP MSP.

Parameters:
hcompCOMP handle
Return values:
None

Definition at line 452 of file stm32l4xx_hal_comp.c.

__weak void HAL_COMP_MspInit ( COMP_HandleTypeDef *  hcomp )

Initialize the COMP MSP.

Parameters:
hcompCOMP handle
Return values:
None

Definition at line 437 of file stm32l4xx_hal_comp.c.