UM1940
Return values
HAL_ADC_MspDeInit
Function name
Function description
Parameters
Return values
HAL_ADC_Start
Function name
Function description
Parameters
Return values
HAL_ADC_Stop
Function name
Function description
Parameters
Return values
Notes
HAL_ADC_PollForConversion
Function name
Function description
Parameters
Return values
Notes
None:
void HAL_ADC_MspDeInit (ADC_HandleTypeDef * hadc)
DeInitializes the ADC MSP.
hadc: pointer to a ADC_HandleTypeDef structure that
contains the configuration information for the specified ADC.
None:
HAL_StatusTypeDef HAL_ADC_Start (ADC_HandleTypeDef *
hadc)
Enables ADC and starts conversion of the regular channels.
hadc: pointer to a ADC_HandleTypeDef structure that
contains the configuration information for the specified ADC.
HAL: status
HAL_StatusTypeDef HAL_ADC_Stop (ADC_HandleTypeDef *
hadc)
Disables ADC and stop conversion of regular channels.
hadc: pointer to a ADC_HandleTypeDef structure that
contains the configuration information for the specified ADC.
HAL: status.
Caution: This function will stop also injected channels.
HAL_StatusTypeDef HAL_ADC_PollForConversion
(ADC_HandleTypeDef * hadc, uint32_t Timeout)
Poll for regular 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
ADC conversion flags EOS (end of sequence) and EOC (end
of conversion) are cleared by this function.
This function cannot be used in a particular setup: ADC
configured in DMA mode and polling for end of each
conversion (ADC init parameter "EOCSelection" set to
ADC_EOC_SINGLE_CONV). In this case, DMA resets the
flag EOC and polling cannot be performed on each
conversion. Nevertheless, polling can still be performed on
DocID028236 Rev 2
HAL ADC Generic Driver
85/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers