STM32L443xx HAL User Manual
Defines
ADC States
ADC Exported Types

Defines

#define HAL_ADC_STATE_RESET   (0x00000000UL)
 HAL ADC state machine: ADC states definition (bitfields)
#define HAL_ADC_STATE_READY   (0x00000001UL)
#define HAL_ADC_STATE_BUSY_INTERNAL   (0x00000002UL)
#define HAL_ADC_STATE_TIMEOUT   (0x00000004UL)
#define HAL_ADC_STATE_ERROR_INTERNAL   (0x00000010UL)
#define HAL_ADC_STATE_ERROR_CONFIG   (0x00000020UL)
#define HAL_ADC_STATE_ERROR_DMA   (0x00000040UL)
#define HAL_ADC_STATE_REG_BUSY   (0x00000100UL)
#define HAL_ADC_STATE_REG_EOC   (0x00000200UL)
#define HAL_ADC_STATE_REG_OVR   (0x00000400UL)
#define HAL_ADC_STATE_REG_EOSMP   (0x00000800UL)
#define HAL_ADC_STATE_INJ_BUSY   (0x00001000UL)
#define HAL_ADC_STATE_INJ_EOC   (0x00002000UL)
#define HAL_ADC_STATE_INJ_JQOVF   (0x00004000UL)
#define HAL_ADC_STATE_AWD1   (0x00010000UL)
#define HAL_ADC_STATE_AWD2   (0x00020000UL)
#define HAL_ADC_STATE_AWD3   (0x00040000UL)
#define HAL_ADC_STATE_MULTIMODE_SLAVE   (0x00100000UL)

Define Documentation

#define HAL_ADC_STATE_AWD1   (0x00010000UL)

Out-of-window occurrence of ADC analog watchdog 1

Definition at line 344 of file stm32l4xx_hal_adc.h.

Referenced by HAL_ADC_AnalogWDGConfig(), HAL_ADC_IRQHandler(), and HAL_ADC_PollForEvent().

#define HAL_ADC_STATE_AWD2   (0x00020000UL)

Out-of-window occurrence of ADC analog watchdog 2

Definition at line 345 of file stm32l4xx_hal_adc.h.

Referenced by HAL_ADC_AnalogWDGConfig(), HAL_ADC_IRQHandler(), and HAL_ADC_PollForEvent().

#define HAL_ADC_STATE_AWD3   (0x00040000UL)

Out-of-window occurrence of ADC analog watchdog 3

Definition at line 346 of file stm32l4xx_hal_adc.h.

Referenced by HAL_ADC_AnalogWDGConfig(), HAL_ADC_IRQHandler(), and HAL_ADC_PollForEvent().

#define HAL_ADC_STATE_BUSY_INTERNAL   (0x00000002UL)

ADC is busy due to an internal process (initialization, calibration)

Definition at line 322 of file stm32l4xx_hal_adc.h.

Referenced by HAL_ADC_DeInit(), HAL_ADC_Init(), and HAL_ADCEx_Calibration_Start().

#define HAL_ADC_STATE_ERROR_CONFIG   (0x00000020UL)
#define HAL_ADC_STATE_ERROR_DMA   (0x00000040UL)

DMA error occurrence

Definition at line 328 of file stm32l4xx_hal_adc.h.

Referenced by ADC_DMAConvCplt(), ADC_DMAError(), HAL_ADC_Stop_DMA(), and HAL_ADCEx_RegularStop_DMA().

#define HAL_ADC_STATE_ERROR_INTERNAL   (0x00000010UL)
#define HAL_ADC_STATE_INJ_BUSY   (0x00001000UL)

A conversion on ADC group injected is ongoing or can occur (either by auto-injection mode, external trigger, low power auto power-on (if feature available), multimode ADC master control (if feature available))

Definition at line 338 of file stm32l4xx_hal_adc.h.

Referenced by ADC_DMAConvCplt(), HAL_ADC_IRQHandler(), HAL_ADC_PollForConversion(), HAL_ADC_Start(), HAL_ADC_Start_DMA(), HAL_ADC_Start_IT(), HAL_ADC_Stop(), HAL_ADC_Stop_DMA(), HAL_ADC_Stop_IT(), HAL_ADCEx_Calibration_Start(), HAL_ADCEx_InjectedPollForConversion(), HAL_ADCEx_InjectedStart(), HAL_ADCEx_InjectedStart_IT(), HAL_ADCEx_InjectedStop(), HAL_ADCEx_InjectedStop_IT(), HAL_ADCEx_RegularStop(), HAL_ADCEx_RegularStop_DMA(), and HAL_ADCEx_RegularStop_IT().

#define HAL_ADC_STATE_INJ_EOC   (0x00002000UL)
#define HAL_ADC_STATE_INJ_JQOVF   (0x00004000UL)

Injected queue overflow occurrence

Definition at line 341 of file stm32l4xx_hal_adc.h.

Referenced by HAL_ADC_IRQHandler(), HAL_ADC_PollForEvent(), and HAL_ADCEx_EnableInjectedQueue().

#define HAL_ADC_STATE_MULTIMODE_SLAVE   (0x00100000UL)

ADC in multimode slave state, controlled by another ADC master (when feature available)

Definition at line 349 of file stm32l4xx_hal_adc.h.

Referenced by HAL_ADC_Start(), HAL_ADC_Start_DMA(), HAL_ADC_Start_IT(), HAL_ADCEx_InjectedStart(), and HAL_ADCEx_InjectedStart_IT().

#define HAL_ADC_STATE_READY   (0x00000001UL)
#define HAL_ADC_STATE_REG_BUSY   (0x00000100UL)
#define HAL_ADC_STATE_REG_EOC   (0x00000200UL)

Conversion data available on group regular

Definition at line 333 of file stm32l4xx_hal_adc.h.

Referenced by ADC_DMAConvCplt(), HAL_ADC_IRQHandler(), HAL_ADC_PollForConversion(), HAL_ADC_Start(), HAL_ADC_Start_DMA(), and HAL_ADC_Start_IT().

#define HAL_ADC_STATE_REG_EOSMP   (0x00000800UL)

Not available on this STM32 series: End Of Sampling flag raised

Definition at line 335 of file stm32l4xx_hal_adc.h.

Referenced by HAL_ADC_IRQHandler(), HAL_ADC_PollForEvent(), HAL_ADC_Start(), HAL_ADC_Start_DMA(), and HAL_ADC_Start_IT().

#define HAL_ADC_STATE_REG_OVR   (0x00000400UL)

Overrun occurrence

Definition at line 334 of file stm32l4xx_hal_adc.h.

Referenced by HAL_ADC_IRQHandler(), HAL_ADC_PollForEvent(), HAL_ADC_Start(), HAL_ADC_Start_DMA(), and HAL_ADC_Start_IT().

#define HAL_ADC_STATE_RESET   (0x00000000UL)

HAL ADC state machine: ADC states definition (bitfields)

Note:
ADC state machine is managed by bitfields, state must be compared with bit by bit. For example: " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_REG_BUSY) != 0UL) " " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD1) != 0UL) " ADC not yet initialized or disabled

Definition at line 320 of file stm32l4xx_hal_adc.h.

Referenced by HAL_ADC_DeInit(), HAL_ADC_Init(), HAL_ADC_RegisterCallback(), and HAL_ADC_UnRegisterCallback().

#define HAL_ADC_STATE_TIMEOUT   (0x00000004UL)

TimeOut occurrence

Definition at line 323 of file stm32l4xx_hal_adc.h.

Referenced by HAL_ADC_PollForConversion(), HAL_ADC_PollForEvent(), and HAL_ADCEx_InjectedPollForConversion().