RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Macros
ADC Extended Exported Macros

Macros

#define ADC_FORCE_MODE_INDEPENDENT(__HANDLE__)    LL_ADC_SetMultimode(__LL_ADC_COMMON_INSTANCE((__HANDLE__)->Instance), LL_ADC_MULTI_INDEPENDENT)
 Force ADC instance in multimode mode independent (multimode disable).
 

Detailed Description

Macro Definition Documentation

◆ ADC_FORCE_MODE_INDEPENDENT

#define ADC_FORCE_MODE_INDEPENDENT (   __HANDLE__)     LL_ADC_SetMultimode(__LL_ADC_COMMON_INSTANCE((__HANDLE__)->Instance), LL_ADC_MULTI_INDEPENDENT)

Force ADC instance in multimode mode independent (multimode disable).

Note
This macro must be used only in case of transition from multimode to mode independent and in case of unknown previous state, to ensure ADC configuration is in mode independent.
Standard way of multimode configuration change is done from HAL ADC handle of ADC master using function "HAL_ADCEx_MultiModeConfigChannel(..., ADC_MODE_INDEPENDENT)" )". Usage of this macro is not the Standard way of multimode configuration and can lead to have HAL ADC handles status misaligned. Usage of this macro must be limited to cases mentioned above.
Parameters
__HANDLE__ADC handle.
Return values
None