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.
Fork of TUKS-COURSE-TIMER by
Initialization and de-initialization functions
[ADC Exported Functions]
Functions | |
ErrorStatus | LL_ADC_CommonDeInit (ADC_Common_TypeDef *ADCxy_COMMON) |
De-initialize registers of all ADC instances belonging to the same ADC common instance to their default reset values. | |
ErrorStatus | LL_ADC_CommonInit (ADC_Common_TypeDef *ADCxy_COMMON, LL_ADC_CommonInitTypeDef *ADC_CommonInitStruct) |
Initialize some features of ADC common parameters (all ADC instances belonging to the same ADC common instance) and multimode (for devices with several ADC instances available). | |
void | LL_ADC_CommonStructInit (LL_ADC_CommonInitTypeDef *ADC_CommonInitStruct) |
Set each LL_ADC_CommonInitTypeDef field to default value. | |
ErrorStatus | LL_ADC_DeInit (ADC_TypeDef *ADCx) |
De-initialize registers of the selected ADC instance to their default reset values. | |
ErrorStatus | LL_ADC_Init (ADC_TypeDef *ADCx, LL_ADC_InitTypeDef *ADC_InitStruct) |
Initialize some features of ADC instance. | |
void | LL_ADC_StructInit (LL_ADC_InitTypeDef *ADC_InitStruct) |
Set each LL_ADC_InitTypeDef field to default value. | |
ErrorStatus | LL_ADC_REG_Init (ADC_TypeDef *ADCx, LL_ADC_REG_InitTypeDef *ADC_REG_InitStruct) |
Initialize some features of ADC group regular. | |
void | LL_ADC_REG_StructInit (LL_ADC_REG_InitTypeDef *ADC_REG_InitStruct) |
Set each LL_ADC_REG_InitTypeDef field to default value. | |
ErrorStatus | LL_ADC_INJ_Init (ADC_TypeDef *ADCx, LL_ADC_INJ_InitTypeDef *ADC_INJ_InitStruct) |
Initialize some features of ADC group injected. | |
void | LL_ADC_INJ_StructInit (LL_ADC_INJ_InitTypeDef *ADC_INJ_InitStruct) |
Set each LL_ADC_INJ_InitTypeDef field to default value. |
Function Documentation
ErrorStatus LL_ADC_CommonDeInit | ( | ADC_Common_TypeDef * | ADCxy_COMMON ) |
De-initialize registers of all ADC instances belonging to the same ADC common instance to their default reset values.
- Note:
- This function is performing a hard reset, using high level clock source RCC ADC reset. Caution: On this STM32 serie, if several ADC instances are available on the selected device, RCC ADC reset will reset all ADC instances belonging to the common ADC instance. To de-initialize only 1 ADC instance, use function LL_ADC_DeInit().
- Parameters:
-
ADCxy_COMMON ADC common instance (can be set directly from CMSIS definition or by using helper macro __LL_ADC_COMMON_INSTANCE() )
- Return values:
-
An ErrorStatus enumeration value: - SUCCESS: ADC common registers are de-initialized
- ERROR: not applicable
Definition at line 328 of file stm32l4xx_ll_adc.c.
ErrorStatus LL_ADC_CommonInit | ( | ADC_Common_TypeDef * | ADCxy_COMMON, |
LL_ADC_CommonInitTypeDef * | ADC_CommonInitStruct | ||
) |
Initialize some features of ADC common parameters (all ADC instances belonging to the same ADC common instance) and multimode (for devices with several ADC instances available).
- Note:
- The setting of ADC common parameters is conditioned to ADC instances state: All ADC instances belonging to the same ADC common instance must be disabled.
- Parameters:
-
ADCxy_COMMON ADC common instance (can be set directly from CMSIS definition or by using helper macro __LL_ADC_COMMON_INSTANCE() ) ADC_CommonInitStruct Pointer to a LL_ADC_CommonInitTypeDef structure
- Return values:
-
An ErrorStatus enumeration value: - SUCCESS: ADC common registers are initialized
- ERROR: ADC common registers are not initialized
Definition at line 357 of file stm32l4xx_ll_adc.c.
void LL_ADC_CommonStructInit | ( | LL_ADC_CommonInitTypeDef * | ADC_CommonInitStruct ) |
Set each LL_ADC_CommonInitTypeDef field to default value.
- Parameters:
-
ADC_CommonInitStruct Pointer to a LL_ADC_CommonInitTypeDef structure whose fields will be set to default values.
- Return values:
-
None
Definition at line 439 of file stm32l4xx_ll_adc.c.
ErrorStatus LL_ADC_DeInit | ( | ADC_TypeDef * | ADCx ) |
De-initialize registers of the selected ADC instance to their default reset values.
- Note:
- To reset all ADC instances quickly (perform a hard reset), use function LL_ADC_CommonDeInit().
- If this functions returns error status, it means that ADC instance is in an unknown state. In this case, perform a hard reset using high level clock source RCC ADC reset. Caution: On this STM32 serie, if several ADC instances are available on the selected device, RCC ADC reset will reset all ADC instances belonging to the common ADC instance. Refer to function LL_ADC_CommonDeInit().
- Parameters:
-
ADCx ADC instance
- Return values:
-
An ErrorStatus enumeration value: - SUCCESS: ADC registers are de-initialized
- ERROR: ADC registers are not de-initialized
Definition at line 472 of file stm32l4xx_ll_adc.c.
ErrorStatus LL_ADC_Init | ( | ADC_TypeDef * | ADCx, |
LL_ADC_InitTypeDef * | ADC_InitStruct | ||
) |
Initialize some features of ADC instance.
- Note:
- These parameters have an impact on ADC scope: ADC instance. Affects both group regular and group injected (availability of ADC group injected depends on STM32 families). Refer to corresponding unitary functions into Configuration of ADC hierarchical scope: ADC instance .
- The setting of these parameters by function LL_ADC_Init() is conditioned to ADC state: ADC instance must be disabled. This condition is applied to all ADC features, for efficiency and compatibility over all STM32 families. However, the different features can be set under different ADC state conditions (setting possible with ADC enabled without conversion on going, ADC enabled with conversion on going, ...) Each feature can be updated afterwards with a unitary function and potentially with ADC in a different state than disabled, refer to description of each function for setting conditioned to ADC state.
-
After using this function, some other features must be configured using LL unitary functions. The minimum configuration remaining to be done is:
- Set ADC group regular or group injected sequencer: map channel on the selected sequencer rank. Refer to function LL_ADC_REG_SetSequencerRanks().
- Set ADC channel sampling time Refer to function LL_ADC_SetChannelSamplingTime();
- Parameters:
-
ADCx ADC instance ADC_InitStruct Pointer to a LL_ADC_REG_InitTypeDef structure
- Return values:
-
An ErrorStatus enumeration value: - SUCCESS: ADC registers are initialized
- ERROR: ADC registers are not initialized
Definition at line 741 of file stm32l4xx_ll_adc.c.
ErrorStatus LL_ADC_INJ_Init | ( | ADC_TypeDef * | ADCx, |
LL_ADC_INJ_InitTypeDef * | ADC_INJ_InitStruct | ||
) |
Initialize some features of ADC group injected.
- Note:
- These parameters have an impact on ADC scope: ADC group injected. Refer to corresponding unitary functions into Configuration of ADC hierarchical scope: group regular (functions with prefix "INJ").
- The setting of these parameters by function LL_ADC_Init() is conditioned to ADC state: ADC instance must be disabled. This condition is applied to all ADC features, for efficiency and compatibility over all STM32 families. However, the different features can be set under different ADC state conditions (setting possible with ADC enabled without conversion on going, ADC enabled with conversion on going, ...) Each feature can be updated afterwards with a unitary function and potentially with ADC in a different state than disabled, refer to description of each function for setting conditioned to ADC state.
-
After using this function, other features must be configured using LL unitary functions. The minimum configuration remaining to be done is:
- Set ADC group injected sequencer: map channel on the selected sequencer rank. Refer to function LL_ADC_INJ_SetSequencerRanks().
- Set ADC channel sampling time Refer to function LL_ADC_SetChannelSamplingTime();
- Parameters:
-
ADCx ADC instance ADC_INJ_InitStruct Pointer to a LL_ADC_INJ_InitTypeDef structure
- Return values:
-
An ErrorStatus enumeration value: - SUCCESS: ADC registers are initialized
- ERROR: ADC registers are not initialized
Definition at line 961 of file stm32l4xx_ll_adc.c.
void LL_ADC_INJ_StructInit | ( | LL_ADC_INJ_InitTypeDef * | ADC_INJ_InitStruct ) |
Set each LL_ADC_INJ_InitTypeDef field to default value.
- Parameters:
-
ADC_INJ_InitStruct Pointer to a LL_ADC_INJ_InitTypeDef structure whose fields will be set to default values.
- Return values:
-
None
Definition at line 1032 of file stm32l4xx_ll_adc.c.
ErrorStatus LL_ADC_REG_Init | ( | ADC_TypeDef * | ADCx, |
LL_ADC_REG_InitTypeDef * | ADC_REG_InitStruct | ||
) |
Initialize some features of ADC group regular.
- Note:
- These parameters have an impact on ADC scope: ADC group regular. Refer to corresponding unitary functions into Configuration of ADC hierarchical scope: group regular (functions with prefix "REG").
- The setting of these parameters by function LL_ADC_Init() is conditioned to ADC state: ADC instance must be disabled. This condition is applied to all ADC features, for efficiency and compatibility over all STM32 families. However, the different features can be set under different ADC state conditions (setting possible with ADC enabled without conversion on going, ADC enabled with conversion on going, ...) Each feature can be updated afterwards with a unitary function and potentially with ADC in a different state than disabled, refer to description of each function for setting conditioned to ADC state.
-
After using this function, other features must be configured using LL unitary functions. The minimum configuration remaining to be done is:
- Set ADC group regular or group injected sequencer: map channel on the selected sequencer rank. Refer to function LL_ADC_REG_SetSequencerRanks().
- Set ADC channel sampling time Refer to function LL_ADC_SetChannelSamplingTime();
- Parameters:
-
ADCx ADC instance ADC_REG_InitStruct Pointer to a LL_ADC_REG_InitTypeDef structure
- Return values:
-
An ErrorStatus enumeration value: - SUCCESS: ADC registers are initialized
- ERROR: ADC registers are not initialized
Definition at line 828 of file stm32l4xx_ll_adc.c.
void LL_ADC_REG_StructInit | ( | LL_ADC_REG_InitTypeDef * | ADC_REG_InitStruct ) |
Set each LL_ADC_REG_InitTypeDef field to default value.
- Parameters:
-
ADC_REG_InitStruct Pointer to a LL_ADC_REG_InitTypeDef structure whose fields will be set to default values.
- Return values:
-
None
Definition at line 915 of file stm32l4xx_ll_adc.c.
void LL_ADC_StructInit | ( | LL_ADC_InitTypeDef * | ADC_InitStruct ) |
Set each LL_ADC_InitTypeDef field to default value.
- Parameters:
-
ADC_InitStruct Pointer to a LL_ADC_InitTypeDef structure whose fields will be set to default values.
- Return values:
-
None
Definition at line 786 of file stm32l4xx_ll_adc.c.
Generated on Tue Jul 12 2022 17:38:55 by
