STM32F4xx_HAL_Driver  1.8.3
Configuration of ADC hierarchical scope: ADC instance
+ Collaboration diagram for Configuration of ADC hierarchical scope: ADC instance:

Functions

__STATIC_INLINE void LL_ADC_SetResolution (ADC_TypeDef *ADCx, uint32_t Resolution)
 Set ADC resolution. Refer to reference manual for alignments formats dependencies to ADC resolutions. @rmtoll CR1 RES LL_ADC_SetResolution. More...
 
__STATIC_INLINE uint32_t LL_ADC_GetResolution (const ADC_TypeDef *ADCx)
 Get ADC resolution. Refer to reference manual for alignments formats dependencies to ADC resolutions. @rmtoll CR1 RES LL_ADC_GetResolution. More...
 
__STATIC_INLINE void LL_ADC_SetDataAlignment (ADC_TypeDef *ADCx, uint32_t DataAlignment)
 Set ADC conversion data alignment. More...
 
__STATIC_INLINE uint32_t LL_ADC_GetDataAlignment (const ADC_TypeDef *ADCx)
 Get ADC conversion data alignment. More...
 
__STATIC_INLINE void LL_ADC_SetSequencersScanMode (ADC_TypeDef *ADCx, uint32_t ScanMode)
 Set ADC sequencers scan mode, for all ADC groups (group regular, group injected). More...
 
__STATIC_INLINE uint32_t LL_ADC_GetSequencersScanMode (const ADC_TypeDef *ADCx)
 Get ADC sequencers scan mode, for all ADC groups (group regular, group injected). More...
 

Detailed Description

Function Documentation

◆ LL_ADC_GetDataAlignment()

__STATIC_INLINE uint32_t LL_ADC_GetDataAlignment ( const ADC_TypeDef *  ADCx)

Get ADC conversion data alignment.

Note
Refer to reference manual for alignments formats dependencies to ADC resolutions. @rmtoll CR2 ALIGN LL_ADC_SetDataAlignment
Parameters
ADCxADC instance
Return values
Returnedvalue can be one of the following values:
  • LL_ADC_DATA_ALIGN_RIGHT
  • LL_ADC_DATA_ALIGN_LEFT

Definition at line 2054 of file stm32f4xx_ll_adc.h.

◆ LL_ADC_GetResolution()

__STATIC_INLINE uint32_t LL_ADC_GetResolution ( const ADC_TypeDef *  ADCx)

Get ADC resolution. Refer to reference manual for alignments formats dependencies to ADC resolutions. @rmtoll CR1 RES LL_ADC_GetResolution.

Parameters
ADCxADC instance
Return values
Returnedvalue can be one of the following values:
  • LL_ADC_RESOLUTION_12B
  • LL_ADC_RESOLUTION_10B
  • LL_ADC_RESOLUTION_8B
  • LL_ADC_RESOLUTION_6B

Definition at line 2023 of file stm32f4xx_ll_adc.h.

◆ LL_ADC_GetSequencersScanMode()

__STATIC_INLINE uint32_t LL_ADC_GetSequencersScanMode ( const ADC_TypeDef *  ADCx)

Get ADC sequencers scan mode, for all ADC groups (group regular, group injected).

Note
According to sequencers scan mode :
  • If disabled: ADC conversion is performed in unitary conversion mode (one channel converted, that defined in rank 1). Configuration of sequencers of all ADC groups (sequencer scan length, ...) is discarded: equivalent to scan length of 1 rank.
  • If enabled: ADC conversions are performed in sequence conversions mode, according to configuration of sequencers of each ADC group (sequencer scan length, ...). Refer to function LL_ADC_REG_SetSequencerLength() and to function LL_ADC_INJ_SetSequencerLength(). @rmtoll CR1 SCAN LL_ADC_GetSequencersScanMode
Parameters
ADCxADC instance
Return values
Returnedvalue can be one of the following values:
  • LL_ADC_SEQ_SCAN_DISABLE
  • LL_ADC_SEQ_SCAN_ENABLE

Definition at line 2105 of file stm32f4xx_ll_adc.h.

◆ LL_ADC_SetDataAlignment()

__STATIC_INLINE void LL_ADC_SetDataAlignment ( ADC_TypeDef *  ADCx,
uint32_t  DataAlignment 
)

Set ADC conversion data alignment.

Note
Refer to reference manual for alignments formats dependencies to ADC resolutions. @rmtoll CR2 ALIGN LL_ADC_SetDataAlignment
Parameters
ADCxADC instance
DataAlignmentThis parameter can be one of the following values:
  • LL_ADC_DATA_ALIGN_RIGHT
  • LL_ADC_DATA_ALIGN_LEFT
Return values
None

Definition at line 2039 of file stm32f4xx_ll_adc.h.

◆ LL_ADC_SetResolution()

__STATIC_INLINE void LL_ADC_SetResolution ( ADC_TypeDef *  ADCx,
uint32_t  Resolution 
)

Set ADC resolution. Refer to reference manual for alignments formats dependencies to ADC resolutions. @rmtoll CR1 RES LL_ADC_SetResolution.

Parameters
ADCxADC instance
ResolutionThis parameter can be one of the following values:
  • LL_ADC_RESOLUTION_12B
  • LL_ADC_RESOLUTION_10B
  • LL_ADC_RESOLUTION_8B
  • LL_ADC_RESOLUTION_6B
Return values
None

Definition at line 2006 of file stm32f4xx_ll_adc.h.

◆ LL_ADC_SetSequencersScanMode()

__STATIC_INLINE void LL_ADC_SetSequencersScanMode ( ADC_TypeDef *  ADCx,
uint32_t  ScanMode 
)

Set ADC sequencers scan mode, for all ADC groups (group regular, group injected).

Note
According to sequencers scan mode :
  • If disabled: ADC conversion is performed in unitary conversion mode (one channel converted, that defined in rank 1). Configuration of sequencers of all ADC groups (sequencer scan length, ...) is discarded: equivalent to scan length of 1 rank.
  • If enabled: ADC conversions are performed in sequence conversions mode, according to configuration of sequencers of each ADC group (sequencer scan length, ...). Refer to function LL_ADC_REG_SetSequencerLength() and to function LL_ADC_INJ_SetSequencerLength(). @rmtoll CR1 SCAN LL_ADC_SetSequencersScanMode
Parameters
ADCxADC instance
ScanModeThis parameter can be one of the following values:
  • LL_ADC_SEQ_SCAN_DISABLE
  • LL_ADC_SEQ_SCAN_ENABLE
Return values
None

Definition at line 2080 of file stm32f4xx_ll_adc.h.