Initialization and Configuration functions.
More...
Initialization and Configuration functions.
===============================================================================
##### Initialization and Configuration functions #####
===============================================================================
[..] This section provides functions allowing to:
(+) Scan Conversion Mode (multichannels 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
(+) Enable or disable the ADC peripheral
(+) Start/Reset the calibration
void ADC_Cmd |
( |
ADC_TypeDef * |
ADCx, |
|
|
FunctionalState |
NewState |
|
) |
| |
Enables or disables the specified ADC peripheral.
- Parameters
-
ADCx,: | where x can be 1 to select the ADC peripheral. |
NewState,: | new state of the ADCx peripheral. This parameter can be: ENABLE or DISABLE. |
- Return values
-
void ADC_DeInit |
( |
ADC_TypeDef * |
ADCx | ) |
|
Deinitializes the ADCx peripheral registers to their default reset values.
- Parameters
-
ADCx,: | where x can be 1 to select the ADC peripheral. |
- Return values
-
Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct.
- Parameters
-
ADCx,: | where x can be 1 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
-
void ADC_ResetCalibration |
( |
ADC_TypeDef * |
ADCx | ) |
|
Resets the selected ADC calibration registers.
- Parameters
-
ADCx,: | where x can be 1 to select the ADC peripheral. |
- Return values
-
void ADC_StartCalibration |
( |
ADC_TypeDef * |
ADCx | ) |
|
Starts the selected ADC calibration process.
- Parameters
-
ADCx,: | where x can be 1 to select the ADC peripheral. |
- Return values
-
Fills each ADC_InitStruct member with its default value.
- Parameters
-
ADC_InitStruct | : pointer to an ADC_InitTypeDef structure which will be initialized. |
- Return values
-