Extended features functions.
More...
Extended features functions.
===============================================================================
##### Extended features functions #####
===============================================================================
[..] This section provides functions allowing to:
(+) Start conversion of injected channel.
(+) Stop conversion of injected channel.
(+) Start multimode and enable DMA transfer.
(+) Stop multimode and disable DMA transfer.
(+) Get result of injected channel conversion.
(+) Get result of multimode conversion.
(+) Configure injected channels.
(+) Configure multimode.
◆ HAL_ADCEx_InjectedConfigChannel()
Configures for the selected ADC injected channel its corresponding rank in the sequencer and its sample time.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
sConfigInjected | ADC configuration structure for injected channel. |
- Return values
-
Definition at line 817 of file stm32f4xx_hal_adc_ex.c.
◆ HAL_ADCEx_InjectedConvCpltCallback()
Injected conversion complete callback in non blocking mode.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
- Return values
-
Definition at line 800 of file stm32f4xx_hal_adc_ex.c.
◆ HAL_ADCEx_InjectedGetValue()
uint32_t HAL_ADCEx_InjectedGetValue |
( |
ADC_HandleTypeDef * |
hadc, |
|
|
uint32_t |
InjectedRank |
|
) |
| |
Gets the converted value from data register of injected channel.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
InjectedRank | the ADC injected rank. This parameter can be one of the following values:
- ADC_INJECTED_RANK_1: Injected Channel1 selected
- ADC_INJECTED_RANK_2: Injected Channel2 selected
- ADC_INJECTED_RANK_3: Injected Channel3 selected
- ADC_INJECTED_RANK_4: Injected Channel4 selected
|
- Return values
-
Definition at line 547 of file stm32f4xx_hal_adc_ex.c.
◆ HAL_ADCEx_InjectedPollForConversion()
HAL_StatusTypeDef HAL_ADCEx_InjectedPollForConversion |
( |
ADC_HandleTypeDef * |
hadc, |
|
|
uint32_t |
Timeout |
|
) |
| |
Poll for injected conversion complete.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
Timeout | Timeout value in millisecond. |
- Return values
-
Definition at line 414 of file stm32f4xx_hal_adc_ex.c.
◆ HAL_ADCEx_InjectedStart()
Enables the selected ADC software start conversion of the injected channels.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
- Return values
-
Definition at line 146 of file stm32f4xx_hal_adc_ex.c.
◆ HAL_ADCEx_InjectedStart_IT()
Enables the interrupt and starts ADC conversion of injected channels.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
- Return values
-
Definition at line 249 of file stm32f4xx_hal_adc_ex.c.
◆ HAL_ADCEx_InjectedStop()
Stop conversion of injected channels. Disable ADC peripheral if no regular conversion is on going.
- Note
- If ADC must be disabled and if conversion is on going on regular group, function HAL_ADC_Stop must be used to stop both injected and regular groups, and disable the ADC.
-
If injected group mode auto-injection is enabled, function HAL_ADC_Stop must be used.
-
In case of auto-injection mode, HAL_ADC_Stop must be used.
- Parameters
-
- Return values
-
Definition at line 360 of file stm32f4xx_hal_adc_ex.c.
◆ HAL_ADCEx_InjectedStop_IT()
Stop conversion of injected channels, disable interruption of end-of-conversion. Disable ADC peripheral if no regular conversion is on going.
- Note
- If ADC must be disabled and if conversion is on going on regular group, function HAL_ADC_Stop must be used to stop both injected and regular groups, and disable the ADC.
-
If injected group mode auto-injection is enabled, function HAL_ADC_Stop must be used.
- Parameters
-
- Return values
-
Definition at line 485 of file stm32f4xx_hal_adc_ex.c.
◆ HAL_ADCEx_MultiModeConfigChannel()
Configures the ADC multi-mode.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
multimode | pointer to an ADC_MultiModeTypeDef structure that contains the configuration information for multimode. |
- Return values
-
Definition at line 981 of file stm32f4xx_hal_adc_ex.c.
◆ HAL_ADCEx_MultiModeGetValue()
Returns the last ADC1, ADC2 and ADC3 regular conversions results data in the selected multi mode.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
- Return values
-
Definition at line 778 of file stm32f4xx_hal_adc_ex.c.
◆ HAL_ADCEx_MultiModeStart_DMA()
HAL_StatusTypeDef HAL_ADCEx_MultiModeStart_DMA |
( |
ADC_HandleTypeDef * |
hadc, |
|
|
uint32_t * |
pData, |
|
|
uint32_t |
Length |
|
) |
| |
Enables ADC DMA request after last transfer (Multi-ADC mode) and enables ADC peripheral.
- Note
- Caution: This function must be used only with the ADC master.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
pData | Pointer to buffer in which transferred from ADC peripheral to memory will be stored. |
Length | The length of data to be transferred from ADC peripheral to memory. |
- Return values
-
Definition at line 598 of file stm32f4xx_hal_adc_ex.c.
◆ HAL_ADCEx_MultiModeStop_DMA()
Disables ADC DMA (multi-ADC mode) and disables ADC peripheral.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
- Return values
-
Definition at line 725 of file stm32f4xx_hal_adc_ex.c.