STM32F103xB HAL User Manual
Functions
Extended Peripheral Control functions
ADCEx Exported Functions

Extended Peripheral Control functions. More...

Functions

HAL_StatusTypeDef HAL_ADCEx_InjectedConfigChannel (ADC_HandleTypeDef *hadc, ADC_InjectionConfTypeDef *sConfigInjected)
 Configures the ADC injected group and the selected channel to be linked to the injected group.
HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel (ADC_HandleTypeDef *hadc, ADC_MultiModeTypeDef *multimode)
 Enable ADC multimode and configure multimode parameters.

Detailed Description

Extended Peripheral Control functions.

 ===============================================================================
             ##### Peripheral Control functions #####
 ===============================================================================  
    [..]  This section provides functions allowing to:
      (+) Configure channels on injected group
      (+) Configure multimode


Function Documentation

HAL_StatusTypeDef HAL_ADCEx_InjectedConfigChannel ( ADC_HandleTypeDef hadc,
ADC_InjectionConfTypeDef sConfigInjected 
)

Configures the ADC injected group and the selected channel to be linked to the injected group.

Note:
Possibility to update parameters on the fly: This function initializes injected group, following calls to this function can be used to reconfigure some parameters of structure "ADC_InjectionConfTypeDef" on the fly, without reseting the ADC. The setting of these parameters is conditioned to ADC state: this function must be called when ADC is not under conversion.
Parameters:
hadc,:ADC handle
sConfigInjected,:Structure of ADC injected group and ADC channel for injected group.
Return values:
None

Definition at line 1010 of file stm32f1xx_hal_adc_ex.c.

References ADC_CFGR_JEXTSEL, ADC_CHANNEL_10, ADC_CHANNEL_TEMPSENSOR, ADC_CHANNEL_VREFINT, ADC_INJECTED_RANK_1, ADC_INJECTED_SOFTWARE_START, ADC_IS_ENABLE, ADC_JSQR_JL_SHIFT, ADC_JSQR_RK_JL, ADC_SCAN_DISABLE, ADC_SMPR1, ADC_SMPR2, ADC_TEMPSENSOR_DELAY_US, assert_param, ADC_InjectionConfTypeDef::AutoInjectedConv, ADC_InjectionConfTypeDef::ExternalTrigInjecConv, HAL_ADC_STATE_ERROR_CONFIG, __ADC_HandleTypeDef::Init, ADC_InjectionConfTypeDef::InjectedChannel, ADC_InjectionConfTypeDef::InjectedDiscontinuousConvMode, ADC_InjectionConfTypeDef::InjectedNbrOfConversion, ADC_InjectionConfTypeDef::InjectedOffset, ADC_InjectionConfTypeDef::InjectedRank, ADC_InjectionConfTypeDef::InjectedSamplingTime, __ADC_HandleTypeDef::Instance, IS_ADC_CHANNEL, IS_ADC_EXTTRIGINJEC, IS_ADC_INJECTED_NB_CONV, IS_ADC_INJECTED_RANK, IS_ADC_RANGE, IS_ADC_SAMPLE_TIME, ADC_InitTypeDef::ScanConvMode, and __ADC_HandleTypeDef::State.

HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel ( ADC_HandleTypeDef hadc,
ADC_MultiModeTypeDef multimode 
)

Enable ADC multimode and configure multimode parameters.

Note:
Possibility to update parameters on the fly: This function initializes multimode parameters, following calls to this function can be used to reconfigure some parameters of structure "ADC_MultiModeTypeDef" on the fly, without reseting the ADCs (both ADCs of the common group). The setting of these parameters is conditioned to ADC state. For parameters constraints, see comments of structure "ADC_MultiModeTypeDef".
To change back configuration from multimode to single mode, ADC must be reset (using function HAL_ADC_Init() ).
Parameters:
hadc,:ADC handle
multimode,:Structure of ADC multimode configuration
Return values:
HALstatus

Definition at line 1271 of file stm32f1xx_hal_adc_ex.c.

References ADC_IS_ENABLE, ADC_MULTI_SLAVE, assert_param, HAL_ADC_STATE_ERROR_CONFIG, __ADC_HandleTypeDef::Instance, IS_ADC_MODE, ADC_MultiModeTypeDef::Mode, and __ADC_HandleTypeDef::State.