ADC Peripheral State functions.
More...
ADC Peripheral State functions.
===============================================================================
##### Peripheral state and errors functions #####
===============================================================================
[..]
This subsection provides functions to get in run-time the status of the
peripheral.
(+) Check the ADC state
(+) Check the ADC error code
◆ HAL_ADC_GetError()
Return the ADC error code.
- Parameters
-
- Return values
-
| ADC | error code (bitfield on 32 bits) |
Definition at line 3207 of file stm32l4xx_hal_adc.c.
3212 return hadc->ErrorCode;
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_ADC_GetState()
Return the ADC handle state.
- Note
- ADC state machine is managed by bitfields, ADC status must be compared with states bits. For example: " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_REG_BUSY) != 0UL) " " if ((HAL_ADC_GetState(hadc1) & HAL_ADC_STATE_AWD1) != 0UL) "
- Parameters
-
- Return values
-
| ADC | handle state (bitfield on 32 bits) |
Definition at line 3193 of file stm32l4xx_hal_adc.c.
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))