STM32F439xx HAL User Manual
|
This file provides firmware functions to manage the following functionalities of the Analog to Digital Convertor (ADC) peripheral: + Initialization and de-initialization functions + IO operation functions + State and errors functions. More...
#include "stm32f4xx_hal.h"
Go to the source code of this file.
Functions | |
static void | ADC_Init (ADC_HandleTypeDef *hadc) |
Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct without initializing the ADC MSP. | |
static void | ADC_DMAConvCplt (DMA_HandleTypeDef *hdma) |
DMA transfer complete callback. | |
static void | ADC_DMAError (DMA_HandleTypeDef *hdma) |
DMA error callback. | |
static void | ADC_DMAHalfConvCplt (DMA_HandleTypeDef *hdma) |
DMA half transfer complete callback. | |
HAL_StatusTypeDef | HAL_ADC_Init (ADC_HandleTypeDef *hadc) |
Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct and initializes the ADC MSP. | |
HAL_StatusTypeDef | HAL_ADC_DeInit (ADC_HandleTypeDef *hadc) |
Deinitializes the ADCx peripheral registers to their default reset values. | |
__weak void | HAL_ADC_MspInit (ADC_HandleTypeDef *hadc) |
Initializes the ADC MSP. | |
__weak void | HAL_ADC_MspDeInit (ADC_HandleTypeDef *hadc) |
DeInitializes the ADC MSP. | |
HAL_StatusTypeDef | HAL_ADC_Start (ADC_HandleTypeDef *hadc) |
Enables ADC and starts conversion of the regular channels. | |
HAL_StatusTypeDef | HAL_ADC_Stop (ADC_HandleTypeDef *hadc) |
Disables ADC and stop conversion of regular channels. | |
HAL_StatusTypeDef | HAL_ADC_PollForConversion (ADC_HandleTypeDef *hadc, uint32_t Timeout) |
Poll for regular conversion complete. | |
HAL_StatusTypeDef | HAL_ADC_PollForEvent (ADC_HandleTypeDef *hadc, uint32_t EventType, uint32_t Timeout) |
Poll for conversion event. | |
HAL_StatusTypeDef | HAL_ADC_Start_IT (ADC_HandleTypeDef *hadc) |
Enables the interrupt and starts ADC conversion of regular channels. | |
HAL_StatusTypeDef | HAL_ADC_Stop_IT (ADC_HandleTypeDef *hadc) |
Disables the interrupt and stop ADC conversion of regular channels. | |
void | HAL_ADC_IRQHandler (ADC_HandleTypeDef *hadc) |
Handles ADC interrupt request. | |
HAL_StatusTypeDef | HAL_ADC_Start_DMA (ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length) |
Enables ADC DMA request after last transfer (Single-ADC mode) and enables ADC peripheral. | |
HAL_StatusTypeDef | HAL_ADC_Stop_DMA (ADC_HandleTypeDef *hadc) |
Disables ADC DMA (Single-ADC mode) and disables ADC peripheral. | |
uint32_t | HAL_ADC_GetValue (ADC_HandleTypeDef *hadc) |
Gets the converted value from data register of regular channel. | |
__weak void | HAL_ADC_ConvCpltCallback (ADC_HandleTypeDef *hadc) |
Regular conversion complete callback in non blocking mode. | |
__weak void | HAL_ADC_ConvHalfCpltCallback (ADC_HandleTypeDef *hadc) |
Regular conversion half DMA transfer callback in non blocking mode. | |
__weak void | HAL_ADC_LevelOutOfWindowCallback (ADC_HandleTypeDef *hadc) |
Analog watchdog callback in non blocking mode. | |
__weak void | HAL_ADC_ErrorCallback (ADC_HandleTypeDef *hadc) |
Error ADC callback. | |
HAL_StatusTypeDef | HAL_ADC_ConfigChannel (ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig) |
Configures for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. | |
HAL_StatusTypeDef | HAL_ADC_AnalogWDGConfig (ADC_HandleTypeDef *hadc, ADC_AnalogWDGConfTypeDef *AnalogWDGConfig) |
Configures the analog watchdog. | |
uint32_t | HAL_ADC_GetState (ADC_HandleTypeDef *hadc) |
return the ADC state | |
uint32_t | HAL_ADC_GetError (ADC_HandleTypeDef *hadc) |
Return the ADC error code. |
This file provides firmware functions to manage the following functionalities of the Analog to Digital Convertor (ADC) peripheral: + Initialization and de-initialization functions + IO operation functions + State and errors functions.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stm32f4xx_hal_adc.c.