STM32F4xx_HAL_Driver  1.8.3
Operation on ADC hierarchical scope: group injected
+ Collaboration diagram for Operation on ADC hierarchical scope: group injected:

Functions

__STATIC_INLINE void LL_ADC_INJ_StartConversionSWStart (ADC_TypeDef *ADCx)
 Start ADC group injected conversion. More...
 
__STATIC_INLINE void LL_ADC_INJ_StartConversionExtTrig (ADC_TypeDef *ADCx, uint32_t ExternalTriggerEdge)
 Start ADC group injected conversion from external trigger. More...
 
__STATIC_INLINE void LL_ADC_INJ_StopConversionExtTrig (ADC_TypeDef *ADCx)
 Stop ADC group injected conversion from external trigger. More...
 
__STATIC_INLINE uint32_t LL_ADC_INJ_ReadConversionData32 (const ADC_TypeDef *ADCx, uint32_t Rank)
 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). @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData32
JDR2 JDATA LL_ADC_INJ_ReadConversionData32
JDR3 JDATA LL_ADC_INJ_ReadConversionData32
JDR4 JDATA LL_ADC_INJ_ReadConversionData32. More...
 
__STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData12 (const ADC_TypeDef *ADCx, uint32_t Rank)
 Get ADC group injected conversion data, range fit for ADC resolution 12 bits. More...
 
__STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData10 (const ADC_TypeDef *ADCx, uint32_t Rank)
 Get ADC group injected conversion data, range fit for ADC resolution 10 bits. More...
 
__STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData8 (const ADC_TypeDef *ADCx, uint32_t Rank)
 Get ADC group injected conversion data, range fit for ADC resolution 8 bits. More...
 
__STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData6 (const ADC_TypeDef *ADCx, uint32_t Rank)
 Get ADC group injected conversion data, range fit for ADC resolution 6 bits. More...
 

Detailed Description

Function Documentation

◆ LL_ADC_INJ_ReadConversionData10()

__STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData10 ( const ADC_TypeDef *  ADCx,
uint32_t  Rank 
)

Get ADC group injected 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_INJ_ReadConversionData32. @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData10
JDR2 JDATA LL_ADC_INJ_ReadConversionData10
JDR3 JDATA LL_ADC_INJ_ReadConversionData10
JDR4 JDATA LL_ADC_INJ_ReadConversionData10
Parameters
ADCxADC instance
RankThis parameter can be one of the following values:
  • LL_ADC_INJ_RANK_1
  • LL_ADC_INJ_RANK_2
  • LL_ADC_INJ_RANK_3
  • LL_ADC_INJ_RANK_4
Return values
Valuebetween Min_Data=0x000 and Max_Data=0x3FF

Definition at line 4209 of file stm32f4xx_ll_adc.h.

◆ LL_ADC_INJ_ReadConversionData12()

__STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData12 ( const ADC_TypeDef *  ADCx,
uint32_t  Rank 
)

Get ADC group injected 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_INJ_ReadConversionData32. @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData12
JDR2 JDATA LL_ADC_INJ_ReadConversionData12
JDR3 JDATA LL_ADC_INJ_ReadConversionData12
JDR4 JDATA LL_ADC_INJ_ReadConversionData12
Parameters
ADCxADC instance
RankThis parameter can be one of the following values:
  • LL_ADC_INJ_RANK_1
  • LL_ADC_INJ_RANK_2
  • LL_ADC_INJ_RANK_3
  • LL_ADC_INJ_RANK_4
Return values
Valuebetween Min_Data=0x000 and Max_Data=0xFFF

Definition at line 4182 of file stm32f4xx_ll_adc.h.

◆ LL_ADC_INJ_ReadConversionData32()

__STATIC_INLINE uint32_t LL_ADC_INJ_ReadConversionData32 ( const ADC_TypeDef *  ADCx,
uint32_t  Rank 
)

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). @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData32
JDR2 JDATA LL_ADC_INJ_ReadConversionData32
JDR3 JDATA LL_ADC_INJ_ReadConversionData32
JDR4 JDATA LL_ADC_INJ_ReadConversionData32.

Parameters
ADCxADC instance
RankThis parameter can be one of the following values:
  • LL_ADC_INJ_RANK_1
  • LL_ADC_INJ_RANK_2
  • LL_ADC_INJ_RANK_3
  • LL_ADC_INJ_RANK_4
Return values
Valuebetween Min_Data=0x00000000 and Max_Data=0xFFFFFFFF

Definition at line 4155 of file stm32f4xx_ll_adc.h.

◆ LL_ADC_INJ_ReadConversionData6()

__STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData6 ( const ADC_TypeDef *  ADCx,
uint32_t  Rank 
)

Get ADC group injected 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_INJ_ReadConversionData32. @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData6
JDR2 JDATA LL_ADC_INJ_ReadConversionData6
JDR3 JDATA LL_ADC_INJ_ReadConversionData6
JDR4 JDATA LL_ADC_INJ_ReadConversionData6
Parameters
ADCxADC instance
RankThis parameter can be one of the following values:
  • LL_ADC_INJ_RANK_1
  • LL_ADC_INJ_RANK_2
  • LL_ADC_INJ_RANK_3
  • LL_ADC_INJ_RANK_4
Return values
Valuebetween Min_Data=0x00 and Max_Data=0x3F

Definition at line 4263 of file stm32f4xx_ll_adc.h.

◆ LL_ADC_INJ_ReadConversionData8()

__STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData8 ( const ADC_TypeDef *  ADCx,
uint32_t  Rank 
)

Get ADC group injected 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_INJ_ReadConversionData32. @rmtoll JDR1 JDATA LL_ADC_INJ_ReadConversionData8
JDR2 JDATA LL_ADC_INJ_ReadConversionData8
JDR3 JDATA LL_ADC_INJ_ReadConversionData8
JDR4 JDATA LL_ADC_INJ_ReadConversionData8
Parameters
ADCxADC instance
RankThis parameter can be one of the following values:
  • LL_ADC_INJ_RANK_1
  • LL_ADC_INJ_RANK_2
  • LL_ADC_INJ_RANK_3
  • LL_ADC_INJ_RANK_4
Return values
Valuebetween Min_Data=0x00 and Max_Data=0xFF

Definition at line 4236 of file stm32f4xx_ll_adc.h.

◆ LL_ADC_INJ_StartConversionExtTrig()

__STATIC_INLINE void LL_ADC_INJ_StartConversionExtTrig ( ADC_TypeDef *  ADCx,
uint32_t  ExternalTriggerEdge 
)

Start ADC group injected 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 series, 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_INJ_StartConversionSWStart(). @rmtoll CR2 JEXTEN LL_ADC_INJ_StartConversionExtTrig
Parameters
ExternalTriggerEdgeThis parameter can be one of the following values:
  • LL_ADC_INJ_TRIG_EXT_RISING
  • LL_ADC_INJ_TRIG_EXT_FALLING
  • LL_ADC_INJ_TRIG_EXT_RISINGFALLING
ADCxADC instance
Return values
None

Definition at line 4115 of file stm32f4xx_ll_adc.h.

◆ LL_ADC_INJ_StartConversionSWStart()

__STATIC_INLINE void LL_ADC_INJ_StartConversionSWStart ( ADC_TypeDef *  ADCx)

Start ADC group injected conversion.

Note
On this STM32 series, 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_INJ_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). @rmtoll CR2 JSWSTART LL_ADC_INJ_StartConversionSWStart
Parameters
ADCxADC instance
Return values
None

Definition at line 4094 of file stm32f4xx_ll_adc.h.

◆ LL_ADC_INJ_StopConversionExtTrig()

__STATIC_INLINE void LL_ADC_INJ_StopConversionExtTrig ( ADC_TypeDef *  ADCx)

Stop ADC group injected 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 series, 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(). @rmtoll CR2 JEXTEN LL_ADC_INJ_StopConversionExtTrig
Parameters
ADCxADC instance
Return values
None

Definition at line 4133 of file stm32f4xx_ll_adc.h.