Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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:
-
hcomp COMP handle
- Return values:
-
HAL status
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:
-
hcomp COMP handle
- Return values:
-
HAL status
Definition at line 222 of file stm32l4xx_hal_comp.c.
__weak void HAL_COMP_MspDeInit | ( | COMP_HandleTypeDef * | hcomp ) |
DeInitialize the COMP MSP.
- Parameters:
-
hcomp COMP 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:
-
hcomp COMP handle
- Return values:
-
None
Definition at line 437 of file stm32l4xx_hal_comp.c.
Generated on Tue Jul 12 2022 11:00:03 by
