STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Peripheral Control functions. More...
Functions | |
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. | |
Peripheral Control functions.
=============================================================================== ##### Peripheral Control functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Configure regular channels. (+) Configure injected channels. (+) Configure multimode. (+) Configure the analog watch dog.
HAL_StatusTypeDef HAL_ADC_ConfigChannel | ( | ADC_HandleTypeDef * | hadc, |
ADC_ChannelConfTypeDef * | sConfig ) |
#include <stm32f4xx_hal_adc.h>
Configures for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
sConfig | ADC configuration structure. |
HAL | status |
Definition at line 1669 of file stm32f4xx_hal_adc.c.
References __HAL_LOCK, __HAL_UNLOCK, ADC_CHANNEL_9, ADC_CHANNEL_TEMPSENSOR, ADC_CHANNEL_VBAT, ADC_CHANNEL_VREFINT, ADC_COMMON_REGISTER, ADC_SMPR1, ADC_SMPR2, ADC_SQR1_RK, ADC_SQR2_RK, ADC_SQR3_RK, ADC_TEMPSENSOR_DELAY_US, assert_param, ADC_ChannelConfTypeDef::Channel, HAL_OK, ADC_HandleTypeDef::Instance, IS_ADC_CHANNEL, IS_ADC_REGULAR_RANK, IS_ADC_SAMPLE_TIME, ADC_ChannelConfTypeDef::Rank, and ADC_ChannelConfTypeDef::SamplingTime.
HAL_StatusTypeDef HAL_ADC_AnalogWDGConfig | ( | ADC_HandleTypeDef * | hadc, |
ADC_AnalogWDGConfTypeDef * | AnalogWDGConfig ) |
#include <stm32f4xx_hal_adc.h>
Configures the analog watchdog.
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
AnalogWDGConfig | pointer to an ADC_AnalogWDGConfTypeDef structure that contains the configuration information of ADC analog watchdog. |
HAL | status |
Definition at line 1792 of file stm32f4xx_hal_adc.c.
References __HAL_ADC_DISABLE_IT, __HAL_ADC_ENABLE_IT, __HAL_LOCK, __HAL_UNLOCK, ADC_GET_RESOLUTION, ADC_IT_AWD, assert_param, ADC_AnalogWDGConfTypeDef::Channel, HAL_OK, ADC_AnalogWDGConfTypeDef::HighThreshold, ADC_HandleTypeDef::Instance, IS_ADC_ANALOG_WATCHDOG, IS_ADC_CHANNEL, IS_ADC_RANGE, ADC_AnalogWDGConfTypeDef::ITMode, ADC_AnalogWDGConfTypeDef::LowThreshold, and ADC_AnalogWDGConfTypeDef::WatchdogMode.