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 Configuration functions
[ADC_Private_Functions]
Initialization and Configuration functions. More...
Functions | |
| void | ADC_DeInit_mort (void) |
| Deinitializes all ADCs peripherals registers to their default reset values. | |
| void | ADC_Init_mort (ADC_TypeDef_mort *ADCx, ADC_InitTypeDef_mort *ADC_InitStruct) |
| Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct. | |
| void | ADC_StructInit_mort (ADC_InitTypeDef_mort *ADC_InitStruct) |
| Fills each ADC_InitStruct member with its default value. | |
| void | ADC_CommonInit_mort (ADC_CommonInitTypeDef_mort *ADC_CommonInitStruct) |
| Initializes the ADCs peripherals according to the specified parameters in the ADC_CommonInitStruct. | |
| void | ADC_CommonStructInit_mort (ADC_CommonInitTypeDef_mort *ADC_CommonInitStruct) |
| Fills each ADC_CommonInitStruct member with its default value. | |
| void | ADC_Cmd_mort (ADC_TypeDef_mort *ADCx, FunctionalState NewState) |
| Enables or disables the specified ADC peripheral. | |
Detailed Description
Initialization and Configuration functions.
===============================================================================
##### Initialization and Configuration functions #####
===============================================================================
[..] This section provides functions allowing to:
(+) Initialize and configure the ADC Prescaler
(+) ADC Conversion Resolution (12bit..6bit)
(+) Scan Conversion Mode (multichannel or one channel) for regular group
(+) ADC Continuous Conversion Mode (Continuous or Single conversion) for
regular group
(+) External trigger Edge and source of regular group,
(+) Converted data alignment (left or right)
(+) The number of ADC conversions that will be done using the sequencer for
regular channel group
(+) Multi ADC mode selection
(+) Direct memory access mode selection for multi ADC mode
(+) Delay between 2 sampling phases (used in dual or triple interleaved modes)
(+) Enable or disable the ADC peripheral
Function Documentation
| void ADC_Cmd_mort | ( | ADC_TypeDef_mort * | ADCx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the specified ADC peripheral.
- Parameters:
-
ADCx,: where x can be 1, 2 or 3 to select the ADC peripheral. NewState,: new state of the ADCx peripheral. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 399 of file stm32f4xx_adc_mort.c.
| void ADC_CommonInit_mort | ( | ADC_CommonInitTypeDef_mort * | ADC_CommonInitStruct ) |
Initializes the ADCs peripherals according to the specified parameters in the ADC_CommonInitStruct.
- Parameters:
-
ADC_CommonInitStruct,: pointer to an ADC_CommonInitTypeDef structure that contains the configuration information for All ADCs peripherals.
- Return values:
-
None
Definition at line 341 of file stm32f4xx_adc_mort.c.
| void ADC_CommonStructInit_mort | ( | ADC_CommonInitTypeDef_mort * | ADC_CommonInitStruct ) |
Fills each ADC_CommonInitStruct member with its default value.
- Parameters:
-
ADC_CommonInitStruct,: pointer to an ADC_CommonInitTypeDef structure which will be initialized.
- Return values:
-
None
Definition at line 377 of file stm32f4xx_adc_mort.c.
| void ADC_DeInit_mort | ( | void | ) |
Deinitializes all ADCs peripherals registers to their default reset values.
- Parameters:
-
None
- Return values:
-
None
Definition at line 213 of file stm32f4xx_adc_mort.c.
| void ADC_Init_mort | ( | ADC_TypeDef_mort * | ADCx, |
| ADC_InitTypeDef_mort * | ADC_InitStruct | ||
| ) |
Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct.
- Note:
- This function is used to configure the global features of the ADC ( Resolution and Data Alignment), however, the rest of the configuration parameters are specific to the regular channels group (scan mode activation, continuous mode activation, External trigger source and edge, number of conversion in the regular channels group sequencer).
- Parameters:
-
ADCx,: where x can be 1, 2 or 3 to select the ADC peripheral. ADC_InitStruct,: pointer to an ADC_InitTypeDef structure that contains the configuration information for the specified ADC peripheral.
- Return values:
-
None
Definition at line 235 of file stm32f4xx_adc_mort.c.
| void ADC_StructInit_mort | ( | ADC_InitTypeDef_mort * | ADC_InitStruct ) |
Fills each ADC_InitStruct member with its default value.
- Note:
- This function is used to initialize the global features of the ADC ( Resolution and Data Alignment), however, the rest of the configuration parameters are specific to the regular channels group (scan mode activation, continuous mode activation, External trigger source and edge, number of conversion in the regular channels group sequencer).
- Parameters:
-
ADC_InitStruct,: pointer to an ADC_InitTypeDef structure which will be initialized.
- Return values:
-
None
Definition at line 310 of file stm32f4xx_adc_mort.c.
Generated on Mon Jan 16 2023 14:41:56 by
1.7.2