Initialize some features of ADC common parameters (all ADC
instances belonging to the same ADC common instance) and
multimode (for devices with several ADC instances available).
ADCxy_COMMON: ADC common instance (can be set
directly from CMSIS definition or by using helper macro
__LL_ADC_COMMON_INSTANCE() )
ADC_CommonInitStruct: Pointer to a
LL_ADC_CommonInitTypeDef structure
An: ErrorStatus enumeration value:
SUCCESS: ADC common registers are initialized
ERROR: ADC common registers are not initialized
The setting of ADC common parameters is conditioned to
ADC instances state: All ADC instances belonging to the
same ADC common instance must be disabled.
LL_ADC_CommonStructInit
void LL_ADC_CommonStructInit
(LL_ADC_CommonInitTypeDef * ADC_CommonInitStruct)
Set each LL_ADC_CommonInitTypeDef field to default value.
ADC_CommonInitStruct: Pointer to a
LL_ADC_CommonInitTypeDef structure whose fields will be
set to default values.
LL_ADC_DeInit
ErrorStatus LL_ADC_DeInit (ADC_TypeDef * ADCx)
De-initialize registers of the selected ADC instance to their default
reset values.
An: ErrorStatus enumeration value:
SUCCESS: ADC registers are de-initialized
ERROR: ADC registers are not de-initialized
To reset all ADC instances quickly (perform a hard reset), use
function LL_ADC_CommonDeInit().
LL_ADC_Init
ErrorStatus LL_ADC_Init (ADC_TypeDef * ADCx,
LL_ADC_InitTypeDef * ADC_InitStruct)
Initialize some features of ADC instance.
ADCx: ADC instance
ADC_InitStruct: Pointer to a LL_ADC_REG_InitTypeDef
structure
An: ErrorStatus enumeration value:
SUCCESS: ADC registers are initialized