STM32L486xx HAL User Manual
Functions
Operation on ADC hierarchical scope: ADC instance
ADC Exported Functions

Functions

__STATIC_INLINE void LL_ADC_EnableDeepPowerDown (ADC_TypeDef *ADCx)
 Put ADC instance in deep power down state.
__STATIC_INLINE void LL_ADC_DisableDeepPowerDown (ADC_TypeDef *ADCx)
 Disable ADC deep power down mode.
__STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled (ADC_TypeDef *ADCx)
 Get the selected ADC instance deep power down state.
__STATIC_INLINE void LL_ADC_EnableInternalRegulator (ADC_TypeDef *ADCx)
 Enable ADC instance internal voltage regulator.
__STATIC_INLINE void LL_ADC_DisableInternalRegulator (ADC_TypeDef *ADCx)
 Disable ADC internal voltage regulator.
__STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled (ADC_TypeDef *ADCx)
 Get the selected ADC instance internal voltage regulator state.
__STATIC_INLINE void LL_ADC_Enable (ADC_TypeDef *ADCx)
 Enable the selected ADC instance.
__STATIC_INLINE void LL_ADC_Disable (ADC_TypeDef *ADCx)
 Disable the selected ADC instance.
__STATIC_INLINE uint32_t LL_ADC_IsEnabled (ADC_TypeDef *ADCx)
 Get the selected ADC instance enable state.
__STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing (ADC_TypeDef *ADCx)
 Get the selected ADC instance disable state.
__STATIC_INLINE void LL_ADC_StartCalibration (ADC_TypeDef *ADCx, uint32_t SingleDiff)
 Start ADC calibration in the mode single-ended or differential (for devices with differential mode available).
__STATIC_INLINE uint32_t LL_ADC_IsCalibrationOnGoing (ADC_TypeDef *ADCx)
 Get ADC calibration state.

Function Documentation

__STATIC_INLINE void LL_ADC_Disable ( ADC_TypeDef *  ADCx)

Disable the selected ADC instance.

Note:
On this STM32 serie, setting of this feature is conditioned to ADC state: ADC must be not disabled. Must be enabled without conversion on going on either groups regular or injected.
Reference Manual to LL API cross reference:
CR ADDIS LL_ADC_Disable
Parameters:
ADCxADC instance
Return values:
None

Definition at line 6031 of file stm32l4xx_ll_adc.h.

References ADC_CR_BITS_PROPERTY_RS.

Referenced by ADC_Disable(), and LL_ADC_DeInit().

__STATIC_INLINE void LL_ADC_DisableDeepPowerDown ( ADC_TypeDef *  ADCx)

Disable ADC deep power down mode.

Note:
In case of ADC calibration necessary: When ADC is in deep-power-down state, the internal analog calibration is lost. After exiting from deep power down, calibration must be relaunched or calibration factor (preliminarily saved) must be set back into calibration register.
On this STM32 serie, setting of this feature is conditioned to ADC state: ADC must be ADC disabled.
Reference Manual to LL API cross reference:
CR DEEPPWD LL_ADC_DisableDeepPowerDown
Parameters:
ADCxADC instance
Return values:
None

Definition at line 5927 of file stm32l4xx_ll_adc.h.

References ADC_CR_BITS_PROPERTY_RS.

Referenced by HAL_ADC_Init().

__STATIC_INLINE void LL_ADC_DisableInternalRegulator ( ADC_TypeDef *  ADCx)

Disable ADC internal voltage regulator.

Note:
On this STM32 serie, setting of this feature is conditioned to ADC state: ADC must be ADC disabled.
Reference Manual to LL API cross reference:
CR ADVREGEN LL_ADC_DisableInternalRegulator
Parameters:
ADCxADC instance
Return values:
None

Definition at line 5979 of file stm32l4xx_ll_adc.h.

References ADC_CR_BITS_PROPERTY_RS.

__STATIC_INLINE void LL_ADC_Enable ( ADC_TypeDef *  ADCx)

Enable the selected ADC instance.

Note:
On this STM32 serie, after ADC enable, a delay for ADC internal analog stabilization is required before performing a ADC conversion start. Refer to device datasheet, parameter tSTAB.
On this STM32 serie, flag LL_ADC_FLAG_ADRDY is raised when the ADC is enabled and when conversion clock is active. (not only core clock: this ADC has a dual clock domain)
On this STM32 serie, setting of this feature is conditioned to ADC state: ADC must be ADC disabled and ADC internal voltage regulator enabled.
Reference Manual to LL API cross reference:
CR ADEN LL_ADC_Enable
Parameters:
ADCxADC instance
Return values:
None

Definition at line 6011 of file stm32l4xx_ll_adc.h.

References ADC_CR_BITS_PROPERTY_RS.

Referenced by ADC_Enable().

__STATIC_INLINE void LL_ADC_EnableDeepPowerDown ( ADC_TypeDef *  ADCx)

Put ADC instance in deep power down state.

Note:
In case of ADC calibration necessary: When ADC is in deep-power-down state, the internal analog calibration is lost. After exiting from deep power down, calibration must be relaunched or calibration factor (preliminarily saved) must be set back into calibration register.
On this STM32 serie, setting of this feature is conditioned to ADC state: ADC must be ADC disabled.
Reference Manual to LL API cross reference:
CR DEEPPWD LL_ADC_EnableDeepPowerDown
Parameters:
ADCxADC instance
Return values:
None

Definition at line 5904 of file stm32l4xx_ll_adc.h.

References ADC_CR_BITS_PROPERTY_RS.

__STATIC_INLINE void LL_ADC_EnableInternalRegulator ( ADC_TypeDef *  ADCx)

Enable ADC instance internal voltage regulator.

Note:
On this STM32 serie, after ADC internal voltage regulator enable, a delay for ADC internal voltage regulator stabilization is required before performing a ADC calibration or ADC enable. Refer to device datasheet, parameter tADCVREG_STUP. Refer to literal LL_ADC_DELAY_INTERNAL_REGUL_STAB_US.
On this STM32 serie, setting of this feature is conditioned to ADC state: ADC must be ADC disabled.
Reference Manual to LL API cross reference:
CR ADVREGEN LL_ADC_EnableInternalRegulator
Parameters:
ADCxADC instance
Return values:
None

Definition at line 5960 of file stm32l4xx_ll_adc.h.

References ADC_CR_BITS_PROPERTY_RS.

Referenced by HAL_ADC_Init().

__STATIC_INLINE uint32_t LL_ADC_IsCalibrationOnGoing ( ADC_TypeDef *  ADCx)

Get ADC calibration state.

Reference Manual to LL API cross reference:
CR ADCAL LL_ADC_IsCalibrationOnGoing
Parameters:
ADCxADC instance
Return values:
0,:calibration complete, 1: calibration in progress.

Definition at line 6105 of file stm32l4xx_ll_adc.h.

__STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled ( ADC_TypeDef *  ADCx)

Get the selected ADC instance deep power down state.

Reference Manual to LL API cross reference:
CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled
Parameters:
ADCxADC instance
Return values:
0,:deep power down is disabled, 1: deep power down is enabled.

Definition at line 5941 of file stm32l4xx_ll_adc.h.

Referenced by HAL_ADC_Init().

__STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing ( ADC_TypeDef *  ADCx)

Get the selected ADC instance disable state.

Reference Manual to LL API cross reference:
CR ADDIS LL_ADC_IsDisableOngoing
Parameters:
ADCxADC instance
Return values:
0,:no ADC disable command on going.

Definition at line 6061 of file stm32l4xx_ll_adc.h.

Referenced by LL_ADC_DeInit().

__STATIC_INLINE uint32_t LL_ADC_IsEnabled ( ADC_TypeDef *  ADCx)

Get the selected ADC instance enable state.

Note:
On this STM32 serie, flag LL_ADC_FLAG_ADRDY is raised when the ADC is enabled and when conversion clock is active. (not only core clock: this ADC has a dual clock domain)
Reference Manual to LL API cross reference:
CR ADEN LL_ADC_IsEnabled
Parameters:
ADCxADC instance
Return values:
0,:ADC is disabled, 1: ADC is enabled.

Definition at line 6050 of file stm32l4xx_ll_adc.h.

Referenced by ADC_Enable(), LL_ADC_DeInit(), LL_ADC_Init(), LL_ADC_INJ_Init(), and LL_ADC_REG_Init().

__STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled ( ADC_TypeDef *  ADCx)

Get the selected ADC instance internal voltage regulator state.

Reference Manual to LL API cross reference:
CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled
Parameters:
ADCxADC instance
Return values:
0,:internal regulator is disabled, 1: internal regulator is enabled.

Definition at line 5990 of file stm32l4xx_ll_adc.h.

Referenced by HAL_ADC_Init().

__STATIC_INLINE void LL_ADC_StartCalibration ( ADC_TypeDef *  ADCx,
uint32_t  SingleDiff 
)

Start ADC calibration in the mode single-ended or differential (for devices with differential mode available).

Note:
On this STM32 serie, a minimum number of ADC clock cycles are required between ADC end of calibration and ADC enable. Refer to literal LL_ADC_DELAY_CALIB_ENABLE_ADC_CYCLES.
For devices with differential mode available: Calibration of offset is specific to each of single-ended and differential modes (calibration run must be performed for each of these differential modes, if used afterwards and if the application requires their calibration).
On this STM32 serie, setting of this feature is conditioned to ADC state: ADC must be ADC disabled.
Reference Manual to LL API cross reference:
CR ADCAL LL_ADC_StartCalibration
CR ADCALDIF LL_ADC_StartCalibration
Parameters:
ADCxADC instance
SingleDiffThis parameter can be one of the following values:
Return values:
None

Definition at line 6089 of file stm32l4xx_ll_adc.h.

References ADC_CR_BITS_PROPERTY_RS, and ADC_SINGLEDIFF_CALIB_START_MASK.