STM32H735xx HAL User Manual
Functions
Operation on ADC hierarchical scope: group injected
ADC Exported Functions

Functions

__STATIC_INLINE void LL_ADC_INJ_StartConversion (ADC_TypeDef *ADCx)
 Start ADC group injected conversion.
__STATIC_INLINE void LL_ADC_INJ_StopConversion (ADC_TypeDef *ADCx)
 Stop ADC group injected conversion.
__STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing (ADC_TypeDef *ADCx)
 Get ADC group injected conversion state.
__STATIC_INLINE uint32_t LL_ADC_INJ_IsStopConversionOngoing (ADC_TypeDef *ADCx)
 Get ADC group injected command of conversion stop state.
__STATIC_INLINE uint32_t LL_ADC_INJ_ReadConversionData32 (ADC_TypeDef *ADCx, uint32_t Rank)
 Get ADC group injected 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_INJ_ReadConversionData16 (ADC_TypeDef *ADCx, uint32_t Rank)
 Get ADC group injected conversion data, range fit for ADC resolution 16 bits.
__STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData14 (ADC_TypeDef *ADCx, uint32_t Rank)
 Get ADC group injected conversion data, range fit for ADC resolution 14 bits.
__STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData12 (ADC_TypeDef *ADCx, uint32_t Rank)
 Get ADC group injected conversion data, range fit for ADC resolution 12 bits.
__STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData10 (ADC_TypeDef *ADCx, uint32_t Rank)
 Get ADC group injected conversion data, range fit for ADC resolution 10 bits.
__STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData8 (ADC_TypeDef *ADCx, uint32_t Rank)
 Get ADC group injected conversion data, range fit for ADC resolution 8 bits.

Function Documentation

__STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing ( ADC_TypeDef *  ADCx)

Get ADC group injected conversion state.

Reference Manual to LL API cross reference:
CR JADSTART LL_ADC_INJ_IsConversionOngoing
Parameters:
ADCxADC instance
Return values:
0,:no conversion is on going on ADC group injected.

Definition at line 7143 of file stm32h7xx_ll_adc.h.

Referenced by ADC_ConversionStop(), HAL_ADC_AnalogWDGConfig(), HAL_ADC_ConfigChannel(), HAL_ADC_Init(), HAL_ADC_IRQHandler(), HAL_ADCEx_Calibration_SetValue(), HAL_ADCEx_DisableInjectedQueue(), HAL_ADCEx_EnableInjectedQueue(), HAL_ADCEx_InjectedConfigChannel(), HAL_ADCEx_InjectedStart(), HAL_ADCEx_InjectedStart_IT(), HAL_ADCEx_RegularMultiModeStop_DMA(), HAL_ADCEx_RegularStop(), HAL_ADCEx_RegularStop_DMA(), HAL_ADCEx_RegularStop_IT(), and LL_ADC_DeInit().

__STATIC_INLINE uint32_t LL_ADC_INJ_IsStopConversionOngoing ( ADC_TypeDef *  ADCx)

Get ADC group injected command of conversion stop state.

Reference Manual to LL API cross reference:
CR JADSTP LL_ADC_INJ_IsStopConversionOngoing
Parameters:
ADCxADC instance
Return values:
0,:no command of conversion stop is on going on ADC group injected.

Definition at line 7154 of file stm32h7xx_ll_adc.h.

Referenced by LL_ADC_DeInit().

__STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData10 ( 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.
Reference Manual to LL API cross reference:
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:
Return values:
Valuebetween Min_Data=0x000 and Max_Data=0x3FF

Definition at line 7284 of file stm32h7xx_ll_adc.h.

References __ADC_PTR_REG_OFFSET, ADC_INJ_JDRX_REGOFFSET_MASK, and ADC_JDRX_REGOFFSET_POS.

__STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData12 ( 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.
Reference Manual to LL API cross reference:
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:
Return values:
Valuebetween Min_Data=0x000 and Max_Data=0xFFF

Definition at line 7257 of file stm32h7xx_ll_adc.h.

References __ADC_PTR_REG_OFFSET, ADC_INJ_JDRX_REGOFFSET_MASK, and ADC_JDRX_REGOFFSET_POS.

__STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData14 ( ADC_TypeDef *  ADCx,
uint32_t  Rank 
)

Get ADC group injected conversion data, range fit for ADC resolution 14 bits.

Note:
For devices with feature oversampling: Oversampling can increase data width, function for extended range may be needed: LL_ADC_INJ_ReadConversionData32.
Reference Manual to LL API cross reference:
JDR1 JDATA LL_ADC_INJ_ReadConversionData14
JDR2 JDATA LL_ADC_INJ_ReadConversionData14
JDR3 JDATA LL_ADC_INJ_ReadConversionData14
JDR4 JDATA LL_ADC_INJ_ReadConversionData14
Parameters:
ADCxADC instance
RankThis parameter can be one of the following values:
Return values:
Valuebetween Min_Data=0x000 and Max_Data=0x3FFF

Definition at line 7230 of file stm32h7xx_ll_adc.h.

References __ADC_PTR_REG_OFFSET, ADC_INJ_JDRX_REGOFFSET_MASK, and ADC_JDRX_REGOFFSET_POS.

__STATIC_INLINE uint16_t LL_ADC_INJ_ReadConversionData16 ( ADC_TypeDef *  ADCx,
uint32_t  Rank 
)

Get ADC group injected conversion data, range fit for ADC resolution 16 bits.

Note:
For devices with feature oversampling: Oversampling can increase data width, function for extended range may be needed: LL_ADC_INJ_ReadConversionData32.
Reference Manual to LL API cross reference:
JDR1 JDATA LL_ADC_INJ_ReadConversionData16
JDR2 JDATA LL_ADC_INJ_ReadConversionData16
JDR3 JDATA LL_ADC_INJ_ReadConversionData16
JDR4 JDATA LL_ADC_INJ_ReadConversionData16
Parameters:
ADCxADC instance
RankThis parameter can be one of the following values:
Return values:
Valuebetween Min_Data=0x000 and Max_Data=0xFFFF

Definition at line 7203 of file stm32h7xx_ll_adc.h.

References __ADC_PTR_REG_OFFSET, ADC_INJ_JDRX_REGOFFSET_MASK, and ADC_JDRX_REGOFFSET_POS.

__STATIC_INLINE uint32_t LL_ADC_INJ_ReadConversionData32 ( ADC_TypeDef *  ADCx,
uint32_t  Rank 
)

Get ADC group injected 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:
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:
Return values:
Valuebetween Min_Data=0x00000000 and Max_Data=0xFFFFFFFF

Definition at line 7176 of file stm32h7xx_ll_adc.h.

References __ADC_PTR_REG_OFFSET, ADC_INJ_JDRX_REGOFFSET_MASK, and ADC_JDRX_REGOFFSET_POS.

__STATIC_INLINE uint8_t LL_ADC_INJ_ReadConversionData8 ( 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.
Reference Manual to LL API cross reference:
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:
Return values:
Valuebetween Min_Data=0x00 and Max_Data=0xFF

Definition at line 7311 of file stm32h7xx_ll_adc.h.

References __ADC_PTR_REG_OFFSET, ADC_INJ_JDRX_REGOFFSET_MASK, and ADC_JDRX_REGOFFSET_POS.

__STATIC_INLINE void LL_ADC_INJ_StartConversion ( ADC_TypeDef *  ADCx)

Start ADC group injected conversion.

Note:
On this STM32 series, this function is relevant for both internal trigger (SW start) and 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 will start at next trigger event (on the selected trigger edge) following the ADC start conversion command.
On this STM32 series, setting of this feature is conditioned to ADC state: ADC must be enabled without conversion on going on group injected, without conversion stop command on going on group injected, without ADC disable command on going.
Reference Manual to LL API cross reference:
CR JADSTART LL_ADC_INJ_StartConversion
Parameters:
ADCxADC instance
Return values:
None

Definition at line 7107 of file stm32h7xx_ll_adc.h.

References ADC_CR_BITS_PROPERTY_RS.

Referenced by HAL_ADCEx_InjectedStart(), and HAL_ADCEx_InjectedStart_IT().

__STATIC_INLINE void LL_ADC_INJ_StopConversion ( ADC_TypeDef *  ADCx)

Stop ADC group injected conversion.

Note:
On this STM32 series, setting of this feature is conditioned to ADC state: ADC must be enabled with conversion on going on group injected, without ADC disable command on going.
Reference Manual to LL API cross reference:
CR JADSTP LL_ADC_INJ_StopConversion
Parameters:
ADCxADC instance
Return values:
None

Definition at line 7127 of file stm32h7xx_ll_adc.h.

References ADC_CR_BITS_PROPERTY_RS.

Referenced by ADC_ConversionStop(), and LL_ADC_DeInit().