STM32F103xB HAL User Manual
|
This file provides firmware functions to manage the following functionalities of the Analog to Digital Convertor (ADC) peripheral: + Operation functions ++ Start, stop, get result of conversions of injected group, using 2 possible modes: polling, interruption. ++ Multimode feature (available on devices with 2 ADCs or more) ++ Calibration (ADC automatic self-calibration) + Control functions ++ Channels configuration on injected group Other functions (generic functions) are available in file "stm32f1xx_hal_adc.c". More...
#include "stm32f1xx_hal.h"
Go to the source code of this file.
Defines | |
#define | ADC_PRECALIBRATION_DELAY_ADCCLOCKCYCLES 2U |
#define | ADC_CALIBRATION_TIMEOUT 10U |
#define | ADC_TEMPSENSOR_DELAY_US 10U |
Functions | |
HAL_StatusTypeDef | HAL_ADCEx_Calibration_Start (ADC_HandleTypeDef *hadc) |
Perform an ADC automatic self-calibration Calibration prerequisite: ADC must be disabled (execute this function before HAL_ADC_Start() or after HAL_ADC_Stop() ). | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedStart (ADC_HandleTypeDef *hadc) |
Enables ADC, starts conversion of injected group. | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedStop (ADC_HandleTypeDef *hadc) |
Stop conversion of injected channels. | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedPollForConversion (ADC_HandleTypeDef *hadc, uint32_t Timeout) |
Wait for injected group conversion to be completed. | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedStart_IT (ADC_HandleTypeDef *hadc) |
Enables ADC, starts conversion of injected group with interruption. | |
HAL_StatusTypeDef | HAL_ADCEx_InjectedStop_IT (ADC_HandleTypeDef *hadc) |
Stop conversion of injected channels, disable interruption of end-of-conversion. | |
HAL_StatusTypeDef | HAL_ADCEx_MultiModeStart_DMA (ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length) |
Enables ADC, starts conversion of regular group and transfers result through DMA. | |
HAL_StatusTypeDef | HAL_ADCEx_MultiModeStop_DMA (ADC_HandleTypeDef *hadc) |
Stop ADC conversion of regular group (and injected channels in case of auto_injection mode), disable ADC DMA transfer, disable ADC peripheral. | |
uint32_t | HAL_ADCEx_InjectedGetValue (ADC_HandleTypeDef *hadc, uint32_t InjectedRank) |
Get ADC injected group conversion result. | |
uint32_t | HAL_ADCEx_MultiModeGetValue (ADC_HandleTypeDef *hadc) |
Returns the last ADC Master&Slave regular conversions results data in the selected multi mode. | |
__weak void | HAL_ADCEx_InjectedConvCpltCallback (ADC_HandleTypeDef *hadc) |
Injected conversion complete callback in non blocking mode. | |
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. |
This file provides firmware functions to manage the following functionalities of the Analog to Digital Convertor (ADC) peripheral: + Operation functions ++ Start, stop, get result of conversions of injected group, using 2 possible modes: polling, interruption. ++ Multimode feature (available on devices with 2 ADCs or more) ++ Calibration (ADC automatic self-calibration) + Control functions ++ Channels configuration on injected group Other functions (generic functions) are available in file "stm32f1xx_hal_adc.c".
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file stm32f1xx_hal_adc_ex.c.