STM32F103xB HAL User Manual
Functions
Configuration of ADC hierarchical scope: ADC instance
ADC Exported Functions

Functions

__STATIC_INLINE void LL_ADC_SetDataAlignment (ADC_TypeDef *ADCx, uint32_t DataAlignment)
 Set ADC conversion data alignment.
__STATIC_INLINE uint32_t LL_ADC_GetDataAlignment (ADC_TypeDef *ADCx)
 Get ADC conversion data alignment.
__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).
__STATIC_INLINE uint32_t LL_ADC_GetSequencersScanMode (ADC_TypeDef *ADCx)
 Get ADC sequencers scan mode, for all ADC groups (group regular, group injected).

Function Documentation

__STATIC_INLINE uint32_t LL_ADC_GetDataAlignment ( ADC_TypeDef *  ADCx)

Get ADC conversion data alignment.

Note:
Refer to reference manual for alignments formats dependencies to ADC resolutions.
Reference Manual to LL API cross reference:
CR2 ALIGN LL_ADC_SetDataAlignment
Parameters:
ADCxADC instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1717 of file stm32f1xx_ll_adc.h.

__STATIC_INLINE uint32_t LL_ADC_GetSequencersScanMode ( 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().
Reference Manual to LL API cross reference:
CR1 SCAN LL_ADC_GetSequencersScanMode
Parameters:
ADCxADC instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 1768 of file stm32f1xx_ll_adc.h.

__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.
Reference Manual to LL API cross reference:
CR2 ALIGN LL_ADC_SetDataAlignment
Parameters:
ADCxADC instance
DataAlignmentThis parameter can be one of the following values:
Return values:
None

Definition at line 1702 of file stm32f1xx_ll_adc.h.

__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().
Reference Manual to LL API cross reference:
CR1 SCAN LL_ADC_SetSequencersScanMode
Parameters:
ADCxADC instance
ScanModeThis parameter can be one of the following values:
Return values:
None

Definition at line 1743 of file stm32f1xx_ll_adc.h.