STM32F479xx HAL User Manual
|
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_InjectedStart_IT (ADC_HandleTypeDef *hadc) |
Enables the interrupt and starts ADC conversion of injected channels. | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedStop (ADC_HandleTypeDef *hadc) |
Stop conversion of injected channels. | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedPollForConversion (ADC_HandleTypeDef *hadc, uint32_t Timeout) |
Poll for injected conversion complete. | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedStop_IT (ADC_HandleTypeDef *hadc) |
Stop conversion of injected channels, disable interruption of end-of-conversion. | |
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. | |
__weak 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_InjectedConfigChannel | ( | ADC_HandleTypeDef * | hadc, |
ADC_InjectionConfTypeDef * | sConfigInjected | ||
) |
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 815 of file stm32f4xx_hal_adc_ex.c.
References 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, 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.
void HAL_ADCEx_InjectedConvCpltCallback | ( | ADC_HandleTypeDef * | hadc | ) |
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 798 of file stm32f4xx_hal_adc_ex.c.
Referenced by HAL_ADC_Init(), HAL_ADC_IRQHandler(), and HAL_ADC_UnRegisterCallback().
uint32_t HAL_ADCEx_InjectedGetValue | ( | ADC_HandleTypeDef * | hadc, |
uint32_t | InjectedRank | ||
) |
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 548 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_InjectedPollForConversion | ( | ADC_HandleTypeDef * | hadc, |
uint32_t | Timeout | ||
) |
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 415 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_CLEAR_FLAG, __HAL_ADC_GET_FLAG, 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(), __ADC_HandleTypeDef::Init, __ADC_HandleTypeDef::Instance, and __ADC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_ADCEx_InjectedStart | ( | ADC_HandleTypeDef * | hadc | ) |
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 147 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_CLEAR_FLAG, __HAL_ADC_ENABLE, 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, __ADC_HandleTypeDef::Instance, and __ADC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_ADCEx_InjectedStart_IT | ( | ADC_HandleTypeDef * | hadc | ) |
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 250 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_CLEAR_FLAG, __HAL_ADC_ENABLE, __HAL_ADC_ENABLE_IT, 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, __ADC_HandleTypeDef::Instance, and __ADC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_ADCEx_InjectedStop | ( | ADC_HandleTypeDef * | hadc | ) |
Stop conversion of injected channels.
Disable ADC peripheral if no regular conversion is on going.
hadc | ADC handle |
None |
Definition at line 361 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_DISABLE, 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, __ADC_HandleTypeDef::Instance, and __ADC_HandleTypeDef::State.
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.
hadc | ADC handle |
None |
Definition at line 486 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_DISABLE, __HAL_ADC_DISABLE_IT, 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, __ADC_HandleTypeDef::Instance, and __ADC_HandleTypeDef::State.
HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel | ( | ADC_HandleTypeDef * | hadc, |
ADC_MultiModeTypeDef * | multimode | ||
) |
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 979 of file stm32f4xx_hal_adc_ex.c.
References ADC_COMMON_REGISTER, assert_param, ADC_MultiModeTypeDef::DMAAccessMode, IS_ADC_DMA_ACCESS_MODE, IS_ADC_MODE, IS_ADC_SAMPLING_DELAY, ADC_MultiModeTypeDef::Mode, and ADC_MultiModeTypeDef::TwoSamplingDelay.
uint32_t HAL_ADCEx_MultiModeGetValue | ( | ADC_HandleTypeDef * | hadc | ) |
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 779 of file stm32f4xx_hal_adc_ex.c.
References ADC_COMMON_REGISTER.
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.
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 599 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_CLEAR_FLAG, __HAL_ADC_ENABLE, __HAL_ADC_ENABLE_IT, 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(), __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 | ) |
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 726 of file stm32f4xx_hal_adc_ex.c.
References __HAL_ADC_DISABLE, __HAL_ADC_DISABLE_IT, 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(), __ADC_HandleTypeDef::Instance, and __ADC_HandleTypeDef::State.