STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Extended features functions. More...
Functions | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedStart (ADC_HandleTypeDef *hadc) |
Enables the selected ADC software start conversion of the injected channels. | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedStop (ADC_HandleTypeDef *hadc) |
Stop conversion of injected channels. Disable ADC peripheral if no regular conversion is on going. | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedPollForConversion (ADC_HandleTypeDef *hadc, uint32_t Timeout) |
Poll for injected conversion complete. | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedStart_IT (ADC_HandleTypeDef *hadc) |
Enables the interrupt and starts ADC conversion of injected channels. | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedStop_IT (ADC_HandleTypeDef *hadc) |
Stop conversion of injected channels, disable interruption of end-of-conversion. Disable ADC peripheral if no regular conversion is on going. | |
uint32_t | HAL_ADCEx_InjectedGetValue (ADC_HandleTypeDef *hadc, uint32_t InjectedRank) |
Gets the converted value from data register of injected channel. | |
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. | |
HAL_StatusTypeDef | HAL_ADCEx_MultiModeStop_DMA (ADC_HandleTypeDef *hadc) |
Disables ADC DMA (multi-ADC mode) and disables ADC peripheral. | |
uint32_t | HAL_ADCEx_MultiModeGetValue (ADC_HandleTypeDef *hadc) |
Returns the last ADC1, ADC2 and ADC3 regular conversions results data in the selected multi mode. | |
void | HAL_ADCEx_InjectedConvCpltCallback (ADC_HandleTypeDef *hadc) |
Injected conversion complete callback in non blocking mode. | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedConfigChannel (ADC_HandleTypeDef *hadc, ADC_InjectionConfTypeDef *sConfigInjected) |
Configures for the selected ADC injected channel its corresponding rank in the sequencer and its sample time. | |
HAL_StatusTypeDef | HAL_ADCEx_MultiModeConfigChannel (ADC_HandleTypeDef *hadc, ADC_MultiModeTypeDef *multimode) |
Configures the ADC multi-mode. | |
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_StatusTypeDef HAL_ADCEx_InjectedStart | ( | ADC_HandleTypeDef * | hadc | ) |
#include <stm32f4xx_hal_adc_ex.h>
Enables the selected ADC software start conversion of the injected channels.
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
HAL | status |
Definition at line 146 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_CLEAR_FLAG, __HAL_ADC_ENABLE, __HAL_LOCK, __HAL_UNLOCK, ADC_CLEAR_ERRORCODE, ADC_COMMON_REGISTER, ADC_FLAG_JEOC, ADC_STAB_DELAY_US, ADC_STATE_CLR_SET, ADC_HandleTypeDef::ErrorCode, HAL_ADC_ERROR_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL, HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_READY, HAL_ADC_STATE_REG_BUSY, HAL_IS_BIT_CLR, HAL_IS_BIT_SET, HAL_OK, ADC_HandleTypeDef::Instance, and ADC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_ADCEx_InjectedStop | ( | ADC_HandleTypeDef * | hadc | ) |
#include <stm32f4xx_hal_adc_ex.h>
Stop conversion of injected channels. Disable ADC peripheral if no regular conversion is on going.
hadc | ADC handle |
None |
Definition at line 360 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_DISABLE, __HAL_LOCK, __HAL_UNLOCK, ADC_STATE_CLR_SET, assert_param, HAL_ADC_STATE_ERROR_CONFIG, HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_READY, HAL_ADC_STATE_REG_BUSY, HAL_ERROR, HAL_IS_BIT_CLR, HAL_OK, ADC_HandleTypeDef::Instance, and ADC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_ADCEx_InjectedPollForConversion | ( | ADC_HandleTypeDef * | hadc, |
uint32_t | Timeout ) |
#include <stm32f4xx_hal_adc_ex.h>
Poll for injected conversion complete.
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
Timeout | Timeout value in millisecond. |
HAL | status |
Definition at line 414 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_CLEAR_FLAG, __HAL_ADC_GET_FLAG, __HAL_UNLOCK, ADC_FLAG_JEOC, ADC_FLAG_JSTRT, ADC_IS_SOFTWARE_START_INJECTED, ADC_IS_SOFTWARE_START_REGULAR, ADC_InitTypeDef::ContinuousConvMode, HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_READY, HAL_ADC_STATE_REG_BUSY, HAL_ADC_STATE_TIMEOUT, HAL_GetTick(), HAL_IS_BIT_CLR, HAL_MAX_DELAY, HAL_OK, HAL_TIMEOUT, ADC_HandleTypeDef::Init, ADC_HandleTypeDef::Instance, and ADC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_ADCEx_InjectedStart_IT | ( | ADC_HandleTypeDef * | hadc | ) |
#include <stm32f4xx_hal_adc_ex.h>
Enables the interrupt and starts ADC conversion of injected channels.
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
HAL | status. |
Definition at line 249 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_CLEAR_FLAG, __HAL_ADC_ENABLE, __HAL_ADC_ENABLE_IT, __HAL_LOCK, __HAL_UNLOCK, ADC_CLEAR_ERRORCODE, ADC_COMMON_REGISTER, ADC_FLAG_JEOC, ADC_IT_JEOC, ADC_STAB_DELAY_US, ADC_STATE_CLR_SET, ADC_HandleTypeDef::ErrorCode, HAL_ADC_ERROR_INTERNAL, HAL_ADC_STATE_ERROR_INTERNAL, HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_READY, HAL_ADC_STATE_REG_BUSY, HAL_IS_BIT_CLR, HAL_IS_BIT_SET, HAL_OK, ADC_HandleTypeDef::Instance, and ADC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_ADCEx_InjectedStop_IT | ( | ADC_HandleTypeDef * | hadc | ) |
#include <stm32f4xx_hal_adc_ex.h>
Stop conversion of injected channels, disable interruption of end-of-conversion. Disable ADC peripheral if no regular conversion is on going.
hadc | ADC handle |
None |
Definition at line 485 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_DISABLE, __HAL_ADC_DISABLE_IT, __HAL_LOCK, __HAL_UNLOCK, ADC_IT_JEOC, ADC_STATE_CLR_SET, assert_param, HAL_ADC_STATE_ERROR_CONFIG, HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_READY, HAL_ADC_STATE_REG_BUSY, HAL_ERROR, HAL_IS_BIT_CLR, HAL_OK, ADC_HandleTypeDef::Instance, and ADC_HandleTypeDef::State.
uint32_t HAL_ADCEx_InjectedGetValue | ( | ADC_HandleTypeDef * | hadc, |
uint32_t | InjectedRank ) |
#include <stm32f4xx_hal_adc_ex.h>
Gets the converted value from data register of injected channel.
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:
|
None |
Definition at line 547 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_CLEAR_FLAG, ADC_FLAG_JEOC, ADC_INJECTED_RANK_1, ADC_INJECTED_RANK_2, ADC_INJECTED_RANK_3, ADC_INJECTED_RANK_4, assert_param, ADC_HandleTypeDef::Instance, and IS_ADC_INJECTED_RANK.
HAL_StatusTypeDef HAL_ADCEx_MultiModeStart_DMA | ( | ADC_HandleTypeDef * | hadc, |
uint32_t * | pData, | ||
uint32_t | Length ) |
#include <stm32f4xx_hal_adc_ex.h>
Enables ADC DMA request after last transfer (Multi-ADC mode) and enables ADC peripheral.
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. |
HAL | status |
Definition at line 598 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_CLEAR_FLAG, __HAL_ADC_ENABLE, __HAL_ADC_ENABLE_IT, __HAL_LOCK, __HAL_UNLOCK, ADC_CLEAR_ERRORCODE, ADC_COMMON_REGISTER, ADC_FLAG_EOC, ADC_IT_OVR, ADC_MultiModeDMAConvCplt(), ADC_MultiModeDMAError(), ADC_MultiModeDMAHalfConvCplt(), ADC_STAB_DELAY_US, ADC_STATE_CLR_SET, assert_param, ADC_InitTypeDef::ContinuousConvMode, ADC_HandleTypeDef::DMA_Handle, ADC_InitTypeDef::DMAContinuousRequests, ADC_HandleTypeDef::ErrorCode, ADC_InitTypeDef::ExternalTrigConvEdge, HAL_ADC_ERROR_DMA, HAL_ADC_ERROR_INTERNAL, HAL_ADC_ERROR_OVR, HAL_ADC_STATE_ERROR_INTERNAL, HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_READY, HAL_ADC_STATE_REG_BUSY, HAL_ADC_STATE_REG_EOC, HAL_ADC_STATE_REG_OVR, HAL_DMA_Start_IT(), HAL_IS_BIT_SET, HAL_OK, ADC_HandleTypeDef::Init, ADC_HandleTypeDef::Instance, IS_ADC_EXT_TRIG_EDGE, ADC_HandleTypeDef::State, __DMA_HandleTypeDef::XferCpltCallback, __DMA_HandleTypeDef::XferErrorCallback, and __DMA_HandleTypeDef::XferHalfCpltCallback.
HAL_StatusTypeDef HAL_ADCEx_MultiModeStop_DMA | ( | ADC_HandleTypeDef * | hadc | ) |
#include <stm32f4xx_hal_adc_ex.h>
Disables ADC DMA (multi-ADC mode) and disables ADC peripheral.
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
HAL | status |
Definition at line 725 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_DISABLE, __HAL_ADC_DISABLE_IT, __HAL_LOCK, __HAL_UNLOCK, ADC_COMMON_REGISTER, ADC_IT_OVR, ADC_STATE_CLR_SET, assert_param, ADC_HandleTypeDef::DMA_Handle, HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_READY, HAL_ADC_STATE_REG_BUSY, HAL_DMA_Abort(), HAL_IS_BIT_CLR, HAL_OK, ADC_HandleTypeDef::Instance, and ADC_HandleTypeDef::State.
uint32_t HAL_ADCEx_MultiModeGetValue | ( | ADC_HandleTypeDef * | hadc | ) |
#include <stm32f4xx_hal_adc_ex.h>
Returns the last ADC1, ADC2 and ADC3 regular conversions results data in the selected multi mode.
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
The | converted data value. |
Definition at line 778 of file stm32f4xx_hal_adc_ex.c.
References ADC_COMMON_REGISTER, and UNUSED.
__weak void HAL_ADCEx_InjectedConvCpltCallback | ( | ADC_HandleTypeDef * | hadc | ) |
#include <stm32f4xx_hal_adc_ex.h>
Injected conversion complete callback in non blocking mode.
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
None |
Definition at line 800 of file stm32f4xx_hal_adc_ex.c.
References UNUSED.
Referenced by HAL_ADC_Init(), and HAL_ADC_IRQHandler().
HAL_StatusTypeDef HAL_ADCEx_InjectedConfigChannel | ( | ADC_HandleTypeDef * | hadc, |
ADC_InjectionConfTypeDef * | sConfigInjected ) |
#include <stm32f4xx_hal_adc_ex.h>
Configures for the selected ADC injected channel its corresponding rank in the sequencer and its sample time.
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
sConfigInjected | ADC configuration structure for injected channel. |
None |
Definition at line 817 of file stm32f4xx_hal_adc_ex.c.
References __HAL_LOCK, __HAL_UNLOCK, ADC_CHANNEL_9, ADC_CHANNEL_TEMPSENSOR, ADC_CHANNEL_VBAT, ADC_CHANNEL_VREFINT, ADC_COMMON_REGISTER, ADC_GET_RESOLUTION, ADC_INJECTED_SOFTWARE_START, ADC_JSQR, ADC_SMPR1, ADC_SMPR2, ADC_SQR1, assert_param, ADC_InjectionConfTypeDef::AutoInjectedConv, ADC_InjectionConfTypeDef::ExternalTrigInjecConv, ADC_InjectionConfTypeDef::ExternalTrigInjecConvEdge, HAL_OK, ADC_InjectionConfTypeDef::InjectedChannel, ADC_InjectionConfTypeDef::InjectedDiscontinuousConvMode, ADC_InjectionConfTypeDef::InjectedNbrOfConversion, ADC_InjectionConfTypeDef::InjectedOffset, ADC_InjectionConfTypeDef::InjectedRank, ADC_InjectionConfTypeDef::InjectedSamplingTime, ADC_HandleTypeDef::Instance, IS_ADC_CHANNEL, IS_ADC_EXT_INJEC_TRIG, IS_ADC_EXT_INJEC_TRIG_EDGE, IS_ADC_INJECTED_LENGTH, IS_ADC_INJECTED_RANK, IS_ADC_RANGE, and IS_ADC_SAMPLE_TIME.
HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel | ( | ADC_HandleTypeDef * | hadc, |
ADC_MultiModeTypeDef * | multimode ) |
#include <stm32f4xx_hal_adc_ex.h>
Configures the ADC multi-mode.
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. |
HAL | status |
Definition at line 981 of file stm32f4xx_hal_adc_ex.c.
References __HAL_LOCK, __HAL_UNLOCK, ADC_COMMON_REGISTER, assert_param, ADC_MultiModeTypeDef::DMAAccessMode, HAL_OK, IS_ADC_DMA_ACCESS_MODE, IS_ADC_MODE, IS_ADC_SAMPLING_DELAY, ADC_MultiModeTypeDef::Mode, and ADC_MultiModeTypeDef::TwoSamplingDelay.