Initialization and Configuration functions.
More...
|
void | ADC_AutoDelayCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Selects the ADC Delayed Conversion Mode. More...
|
|
void | ADC_Cmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the specified ADC peripheral. More...
|
|
void | ADC_CommonInit (ADC_TypeDef *ADCx, ADC_CommonInitTypeDef *ADC_CommonInitStruct) |
| Initializes the ADCs peripherals according to the specified parameters in the ADC_CommonInitStruct. More...
|
|
void | ADC_CommonInit (ADC_CommonInitTypeDef *ADC_CommonInitStruct) |
| Initializes the ADCs peripherals according to the specified parameters in the ADC_CommonInitStruct. More...
|
|
void | ADC_CommonStructInit (ADC_CommonInitTypeDef *ADC_CommonInitStruct) |
| Fills each ADC_CommonInitStruct member with its default value. More...
|
|
void | ADC_DeInit (ADC_TypeDef *ADCx) |
| Deinitializes the ADCx peripheral registers to their default reset values. More...
|
|
void | ADC_DeInit (void) |
| Deinitializes all ADCs peripherals registers to their default reset values. More...
|
|
void | ADC_DisableCmd (ADC_TypeDef *ADCx) |
| ADC Disable Command. More...
|
|
FlagStatus | ADC_GetCalibrationStatus (ADC_TypeDef *ADCx) |
| Gets the selected ADC calibration status. More...
|
|
uint32_t | ADC_GetCalibrationValue (ADC_TypeDef *ADCx) |
| Returns the ADCx calibration value. More...
|
|
FlagStatus | ADC_GetDisableCmdStatus (ADC_TypeDef *ADCx) |
| Gets the selected ADC disable command Status. More...
|
|
void | ADC_Init (ADC_TypeDef *ADCx, ADC_InitTypeDef *ADC_InitStruct) |
| Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct. More...
|
|
void | ADC_InjectedInit (ADC_TypeDef *ADCx, ADC_InjectedInitTypeDef *ADC_InjectedInitStruct) |
| Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct. More...
|
|
void | ADC_InjectedStructInit (ADC_InjectedInitTypeDef *ADC_InjectedInitStruct) |
| Fills each ADC_InjectedInitStruct member with its default value. More...
|
|
void | ADC_SelectCalibrationMode (ADC_TypeDef *ADCx, uint32_t ADC_CalibrationMode) |
| Select the ADC calibration mode. More...
|
|
void | ADC_SelectDifferentialMode (ADC_TypeDef *ADCx, uint8_t ADC_Channel, FunctionalState NewState) |
| Selectes the differential mode for a specific channel. More...
|
|
void | ADC_SelectQueueOfContextMode (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Selects the Queue Of Context Mode for injected channels. More...
|
|
void | ADC_SetCalibrationValue (ADC_TypeDef *ADCx, uint32_t ADC_Calibration) |
| Sets the ADCx calibration register. More...
|
|
void | ADC_StartCalibration (ADC_TypeDef *ADCx) |
| Starts the selected ADC calibration process. More...
|
|
void | ADC_StructInit (ADC_InitTypeDef *ADC_InitStruct) |
| Fills each ADC_InitStruct member with its default value. More...
|
|
void | ADC_VoltageRegulatorCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the specified ADC Voltage Regulator. More...
|
|
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
===============================================================================
##### Initialization and Configuration functions #####
===============================================================================
[..]
This section provides functions allowing to:
(#) Initialize and configure the ADC injected and/or regular channels and dual mode.
(#) Management of the calibration process
(#) ADC Power-on Power-off
(#) Single ended or differential mode
(#) Enabling the queue of context and the auto delay mode
(#) The number of ADC conversions that will be done using the sequencer for regular
channel group
(#) Enable or disable the ADC peripheral
Selects the ADC Delayed Conversion Mode.
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the ADC Delayed Conversion Mode. This parameter can be: ENABLE or DISABLE. |
- Return values
-
Definition at line 627 of file stm32f30x_adc.c.
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
-
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the ADCx peripheral. This parameter can be: ENABLE or DISABLE. |
- Return values
-
Definition at line 399 of file stm32f4xx_adc.c.
Initializes the ADCs peripherals according to the specified parameters in the ADC_CommonInitStruct.
- Parameters
-
ADCx | where x can be 1 or 4 to select the ADC peripheral. |
ADC_CommonInitStruct | pointer to an ADC_CommonInitTypeDef structure that contains the configuration information for All ADCs peripherals. |
- Return values
-
Definition at line 295 of file stm32f30x_adc.c.
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
-
Definition at line 341 of file stm32f4xx_adc.c.
Fills each ADC_CommonInitStruct member with its default value.
- Parameters
-
- Return values
-
Definition at line 377 of file stm32f4xx_adc.c.
Deinitializes the ADCx peripheral registers to their default reset values.
- Parameters
-
ADCx | where x can be 1, 2,3 or 4 to select the ADC peripheral. |
- Return values
-
Definition at line 139 of file stm32f30x_adc.c.
Deinitializes all ADCs peripherals registers to their default reset values.
- Parameters
-
- Return values
-
Definition at line 213 of file stm32f4xx_adc.c.
ADC Disable Command.
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
- Return values
-
Definition at line 489 of file stm32f30x_adc.c.
Gets the selected ADC calibration status.
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
- Return values
-
The | new state of ADC calibration (SET or RESET). |
Definition at line 464 of file stm32f30x_adc.c.
Returns the ADCx calibration value.
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
- Return values
-
Definition at line 416 of file stm32f30x_adc.c.
Gets the selected ADC disable command Status.
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
- Return values
-
The | new state of ADC ADC disable command (SET or RESET). |
Definition at line 504 of file stm32f30x_adc.c.
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
-
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 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
-
Definition at line 235 of file stm32f4xx_adc.c.
Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct.
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_InjectInitStruct | pointer to an ADC_InjecInitTypeDef structure that contains the configuration information for the specified ADC injected channel. |
- Return values
-
Definition at line 239 of file stm32f30x_adc.c.
Fills each ADC_InjectedInitStruct member with its default value.
- Parameters
-
- Return values
-
Definition at line 276 of file stm32f30x_adc.c.
void ADC_SelectCalibrationMode |
( |
ADC_TypeDef * |
ADCx, |
|
|
uint32_t |
ADC_CalibrationMode |
|
) |
| |
Select the ADC calibration mode.
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_CalibrationMode | the ADC calibration mode. This parameter can be one of the following values:
- ADC_CalibrationMode_Single: to select the calibration for single channel
- ADC_CalibrationMode_Differential: to select the calibration for differential channel
|
- Return values
-
Definition at line 448 of file stm32f30x_adc.c.
Selectes the differential mode for a specific channel.
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_Channel | the ADC channel to configure for the analog watchdog. This parameter can be one of the following values:
- ADC_Channel_1: ADC Channel1 selected
- ADC_Channel_2: ADC Channel2 selected
- ADC_Channel_3: ADC Channel3 selected
- ADC_Channel_4: ADC Channel4 selected
- ADC_Channel_5: ADC Channel5 selected
- ADC_Channel_6: ADC Channel6 selected
- ADC_Channel_7: ADC Channel7 selected
- ADC_Channel_8: ADC Channel8 selected
- ADC_Channel_9: ADC Channel9 selected
- ADC_Channel_10: ADC Channel10 selected
- ADC_Channel_11: ADC Channel11 selected
- ADC_Channel_12: ADC Channel12 selected
- ADC_Channel_13: ADC Channel13 selected
- ADC_Channel_14: ADC Channel14 selected
|
- Note
- : Channel 15, 16 and 17 are fixed to single-ended inputs mode.
- Return values
-
Definition at line 576 of file stm32f30x_adc.c.
Selects the Queue Of Context Mode for injected channels.
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the Queue Of Context Mode. This parameter can be: ENABLE or DISABLE. |
- Return values
-
Definition at line 602 of file stm32f30x_adc.c.
void ADC_SetCalibrationValue |
( |
ADC_TypeDef * |
ADCx, |
|
|
uint32_t |
ADC_Calibration |
|
) |
| |
Sets the ADCx calibration register.
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
- Return values
-
Definition at line 430 of file stm32f30x_adc.c.
Starts the selected ADC calibration process.
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
- Return values
-
Definition at line 402 of file stm32f30x_adc.c.
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
-
- Parameters
-
ADC_InitStruct | : pointer to an ADC_InitTypeDef structure which will be initialized. |
- Return values
-
Definition at line 310 of file stm32f4xx_adc.c.
Enables or disables the specified ADC Voltage Regulator.
- Parameters
-
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the ADCx Voltage Regulator. This parameter can be: ENABLE or DISABLE. |
- Return values
-
Definition at line 532 of file stm32f30x_adc.c.