STM32F439xx HAL User Manual
Functions
Operation on ADC hierarchical scope: group regular
ADC Exported Functions

Functions

__STATIC_INLINE void LL_ADC_REG_StartConversionSWStart (ADC_TypeDef *ADCx)
 Start ADC group regular conversion.
__STATIC_INLINE void LL_ADC_REG_StartConversionExtTrig (ADC_TypeDef *ADCx, uint32_t ExternalTriggerEdge)
 Start ADC group regular conversion from external trigger.
__STATIC_INLINE void LL_ADC_REG_StopConversionExtTrig (ADC_TypeDef *ADCx)
 Stop ADC group regular conversion from external trigger.
__STATIC_INLINE uint32_t LL_ADC_REG_ReadConversionData32 (ADC_TypeDef *ADCx)
 Get ADC group regular conversion data, range fit for all ADC configurations: all ADC resolutions and all oversampling increased data width (for devices with feature oversampling).
__STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData12 (ADC_TypeDef *ADCx)
 Get ADC group regular conversion data, range fit for ADC resolution 12 bits.
__STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData10 (ADC_TypeDef *ADCx)
 Get ADC group regular conversion data, range fit for ADC resolution 10 bits.
__STATIC_INLINE uint8_t LL_ADC_REG_ReadConversionData8 (ADC_TypeDef *ADCx)
 Get ADC group regular conversion data, range fit for ADC resolution 8 bits.
__STATIC_INLINE uint8_t LL_ADC_REG_ReadConversionData6 (ADC_TypeDef *ADCx)
 Get ADC group regular conversion data, range fit for ADC resolution 6 bits.
__STATIC_INLINE uint32_t LL_ADC_REG_ReadMultiConversionData32 (ADC_Common_TypeDef *ADCxy_COMMON, uint32_t ConversionData)
 Get ADC multimode conversion data of ADC master, ADC slave or raw data with ADC master and slave concatenated.

Function Documentation

__STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData10 ( ADC_TypeDef *  ADCx)

Get ADC group regular conversion data, range fit for ADC resolution 10 bits.

Note:
For devices with feature oversampling: Oversampling can increase data width, function for extended range may be needed: LL_ADC_REG_ReadConversionData32.
Reference Manual to LL API cross reference:
DR RDATA LL_ADC_REG_ReadConversionData10
Parameters:
ADCxADC instance
Return values:
Valuebetween Min_Data=0x000 and Max_Data=0x3FF

Definition at line 3911 of file stm32f4xx_ll_adc.h.

__STATIC_INLINE uint16_t LL_ADC_REG_ReadConversionData12 ( ADC_TypeDef *  ADCx)

Get ADC group regular conversion data, range fit for ADC resolution 12 bits.

Note:
For devices with feature oversampling: Oversampling can increase data width, function for extended range may be needed: LL_ADC_REG_ReadConversionData32.
Reference Manual to LL API cross reference:
DR RDATA LL_ADC_REG_ReadConversionData12
Parameters:
ADCxADC instance
Return values:
Valuebetween Min_Data=0x000 and Max_Data=0xFFF

Definition at line 3896 of file stm32f4xx_ll_adc.h.

__STATIC_INLINE uint32_t LL_ADC_REG_ReadConversionData32 ( ADC_TypeDef *  ADCx)

Get ADC group regular conversion data, range fit for all ADC configurations: all ADC resolutions and all oversampling increased data width (for devices with feature oversampling).

Reference Manual to LL API cross reference:
DR RDATA LL_ADC_REG_ReadConversionData32
Parameters:
ADCxADC instance
Return values:
Valuebetween Min_Data=0x00000000 and Max_Data=0xFFFFFFFF

Definition at line 3881 of file stm32f4xx_ll_adc.h.

__STATIC_INLINE uint8_t LL_ADC_REG_ReadConversionData6 ( ADC_TypeDef *  ADCx)

Get ADC group regular conversion data, range fit for ADC resolution 6 bits.

Note:
For devices with feature oversampling: Oversampling can increase data width, function for extended range may be needed: LL_ADC_REG_ReadConversionData32.
Reference Manual to LL API cross reference:
DR RDATA LL_ADC_REG_ReadConversionData6
Parameters:
ADCxADC instance
Return values:
Valuebetween Min_Data=0x00 and Max_Data=0x3F

Definition at line 3941 of file stm32f4xx_ll_adc.h.

__STATIC_INLINE uint8_t LL_ADC_REG_ReadConversionData8 ( ADC_TypeDef *  ADCx)

Get ADC group regular conversion data, range fit for ADC resolution 8 bits.

Note:
For devices with feature oversampling: Oversampling can increase data width, function for extended range may be needed: LL_ADC_REG_ReadConversionData32.
Reference Manual to LL API cross reference:
DR RDATA LL_ADC_REG_ReadConversionData8
Parameters:
ADCxADC instance
Return values:
Valuebetween Min_Data=0x00 and Max_Data=0xFF

Definition at line 3926 of file stm32f4xx_ll_adc.h.

__STATIC_INLINE uint32_t LL_ADC_REG_ReadMultiConversionData32 ( ADC_Common_TypeDef *  ADCxy_COMMON,
uint32_t  ConversionData 
)

Get ADC multimode conversion data of ADC master, ADC slave or raw data with ADC master and slave concatenated.

Note:
If raw data with ADC master and slave concatenated is retrieved, a macro is available to get the conversion data of ADC master or ADC slave: see helper macro __LL_ADC_MULTI_CONV_DATA_MASTER_SLAVE(). (however this macro is mainly intended for multimode transfer by DMA, because this function can do the same by getting multimode conversion data of ADC master or ADC slave separately).
Reference Manual to LL API cross reference:
CDR DATA1 LL_ADC_REG_ReadMultiConversionData32
CDR DATA2 LL_ADC_REG_ReadMultiConversionData32
Parameters:
ADCxy_COMMONADC common instance (can be set directly from CMSIS definition or by using helper macro __LL_ADC_COMMON_INSTANCE() )
ConversionDataThis parameter can be one of the following values:
Return values:
Valuebetween Min_Data=0x00000000 and Max_Data=0xFFFFFFFF

Definition at line 3968 of file stm32f4xx_ll_adc.h.

__STATIC_INLINE void LL_ADC_REG_StartConversionExtTrig ( ADC_TypeDef *  ADCx,
uint32_t  ExternalTriggerEdge 
)

Start ADC group regular conversion from external trigger.

Note:
ADC conversion will start at next trigger event (on the selected trigger edge) following the ADC start conversion command.
On this STM32 serie, this function is relevant for ADC conversion start from external trigger. If internal trigger (SW start) is needed, perform ADC conversion start using function LL_ADC_REG_StartConversionSWStart().
Reference Manual to LL API cross reference:
CR2 EXTEN LL_ADC_REG_StartConversionExtTrig
Parameters:
ExternalTriggerEdgeThis parameter can be one of the following values:
ADCxADC instance
Return values:
None

Definition at line 3849 of file stm32f4xx_ll_adc.h.

__STATIC_INLINE void LL_ADC_REG_StartConversionSWStart ( ADC_TypeDef *  ADCx)

Start ADC group regular conversion.

Note:
On this STM32 serie, this function is relevant only for internal trigger (SW start), not for external trigger:
  • If ADC trigger has been set to software start, ADC conversion starts immediately.
  • If ADC trigger has been set to external trigger, ADC conversion start must be performed using function LL_ADC_REG_StartConversionExtTrig(). (if external trigger edge would have been set during ADC other settings, ADC conversion would start at trigger event as soon as ADC is enabled).
Reference Manual to LL API cross reference:
CR2 SWSTART LL_ADC_REG_StartConversionSWStart
Parameters:
ADCxADC instance
Return values:
None

Definition at line 3828 of file stm32f4xx_ll_adc.h.

__STATIC_INLINE void LL_ADC_REG_StopConversionExtTrig ( ADC_TypeDef *  ADCx)

Stop ADC group regular conversion from external trigger.

Note:
No more ADC conversion will start at next trigger event following the ADC stop conversion command. If a conversion is on-going, it will be completed.
On this STM32 serie, there is no specific command to stop a conversion on-going or to stop ADC converting in continuous mode. These actions can be performed using function LL_ADC_Disable().
Reference Manual to LL API cross reference:
CR2 EXTEN LL_ADC_REG_StopConversionExtTrig
Parameters:
ADCxADC instance
Return values:
None

Definition at line 3867 of file stm32f4xx_ll_adc.h.