Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHAL__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE

__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE macro

Helper macro to check if all ADC instances sharing the same ADC common instance are disabled.

Syntax

#define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \     (LL_ADC_IsEnabled(ADC1) | \     LL_ADC_IsEnabled(ADC2) | \     LL_ADC_IsEnabled(ADC3) )

Arguments

__ADCXY_COMMON__

ADC common instance (can be set directly from CMSIS definition or by using helper macro __LL_ADC_COMMON_INSTANCE () )

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.

References

LocationText
stm32f4xx_ll_adc.h:1576
#define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \
stm32f4xx_ll_adc.h:1585
#define __LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__ADCXY_COMMON__) \
stm32f4xx_ll_adc.c:341
if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(ADCxy_COMMON) == 0UL)