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 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:
-
COMPx COMP instance
- Return values:
-
An ErrorStatus 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:
-
COMPx COMP instance COMP_InitStruct Pointer to a LL_COMP_InitTypeDef structure
- Return values:
-
An ErrorStatus 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.
Generated on Tue Jul 12 2022 11:00:09 by
