__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE macro
Helper macro to check if all ADC instances sharing the same ADC common instance are disabled.
#define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \
(LL_ADC_IsEnabled(ADC1) | \
LL_ADC_IsEnabled(ADC2) | \
LL_ADC_IsEnabled(ADC3) )
Arguments
Return value
Value "0" if all ADC instances sharing the same ADC common instance are disabled. Value "1" if at least one ADC instance sharing the same ADC common instance is enabled.
Notes
This check is required by functions with setting conditioned to ADC state: All ADC instances of the ADC common group must be disabled. Refer to functions having argument "ADCxy_COMMON" as parameter. On devices with only 1 ADC common instance, parameter of this macro is useless and can be ignored (parameter kept for compatibility with devices featuring several ADC common instances).
Examples
__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE is referenced by
10 libraries and example projects.