ADC control functions.
More...
ADC control functions.
===============================================================================
##### Peripheral State and Errors functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to control the ADC.
(+) hal_adc_get_state() API can be helpful to check in run-time the state of the ADC peripheral.
(+) hal_adc_get_error() check in run-time Errors occurring during communication.
◆ hal_adc_get_error()
Return the ADC error code.
- Parameters
-
[in] | p_adc | Pointer to an ADC handle which contains the configuration information for the specified ADC module. |
- Returns
- ADC error code in bitmap format
◆ hal_adc_get_state()
Return the ADC handle state.
- Parameters
-
[in] | p_adc | Pointer to an ADC handle which contains the configuration information for the specified ADC module. |
- Return values
-
◆ hal_adc_resume_reg()
Restore some registers related to ADC configuration after sleep. This function must be used in conjunction with the hal_adc_suspend_reg().
- Parameters
-
[in] | p_adc | Pointer to a ADC handle which contains the configuration information for the specified ADC module. |
- Return values
-
◆ hal_adc_suspend_reg()
Suspend some registers related to ADC configuration before sleep.
- Parameters
-
[in] | p_adc | Pointer to a ADC handle which contains the configuration information for the specified ADC module. |
- Return values
-