HAL_ADC_PollForConversion()
This function allows waiting for the end of
conversions when the polling method is used. In
this case, a timout value is specified by the user
according to the application.
This function starts ADC conversions when the
interrupt method is used
This function stops ADC conversions when the
interrupt method is used
This function handles ADC interrupt requests
HAL_ADC_ConvCpltCallback()
Callback function called in the IT subroutine to
indicate the end of the current process or when a
DMA transfer has completed
Callback function called in the IT subroutine if a
peripheral error or a DMA transfer error occurred
This function configures the selected ADC regular
channel, the corresponding rank in the sequencer
and the sample time
This function configures the analog watchdog for
the selected ADC
This function allows getting in runtime the
peripheral and the data flow states.
This fuction allows getting in runtime the error
that occurred during IT routine
2.7 HAL extension APIs
2.7.1 HAL extension model overview
The extension APIs provide specific functions or overwrite modified APIs for a specific
family (series) or specific part number within the same family.
The extension model consists of an additional file, stm32f2xx_hal_ppp_ex.c, that includes
all the specific functions and define statements (stm32f2xx_hal_ppp_ex.h) for a given part
number.
Below an example based on the ADC peripheral:
Table 10: HAL extension APIs
HAL_ADCEx_InjectedStart()
This function starts injected channel ADC conversions when
the polling method is used
This function stops injected channel ADC conversions when
the polling method is used
HAL_ADCEx_InjectedStart_IT()
This function starts injected channel ADC conversions when
the interrupt method is used
HAL_ADCEx_InjectedStop_IT()
This function stops injected channel ADC conversions when
the interrupt method is used