Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Peripheral Control functions
[ADC Exported Functions]
Peripheral Control functions. More...
Functions | |
HAL_StatusTypeDef | HAL_ADC_ConfigChannel (ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig) |
Configure the selected channel to be linked to the regular group. | |
HAL_StatusTypeDef | HAL_ADC_AnalogWDGConfig (ADC_HandleTypeDef *hadc, ADC_AnalogWDGConfTypeDef *AnalogWDGConfig) |
Configure the analog watchdog. |
Detailed Description
Peripheral Control functions.
=============================================================================== ##### Peripheral Control functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Configure channels on regular group (+) Configure the analog watchdog
Function Documentation
HAL_StatusTypeDef HAL_ADC_AnalogWDGConfig | ( | ADC_HandleTypeDef * | hadc, |
ADC_AnalogWDGConfTypeDef * | AnalogWDGConfig | ||
) |
Configure the analog watchdog.
- Note:
- Possibility to update parameters on the fly: This function initializes the selected analog watchdog, successive calls to this function can be used to reconfigure some parameters of structure "ADC_AnalogWDGConfTypeDef" on the fly, without resetting the ADC, e.g. to set several channels to monitor simultaneously. The setting of these parameters is conditioned to ADC state. For parameters constraints, see comments of structure "ADC_AnalogWDGConfTypeDef".
- Parameters:
-
hadc,: ADC handle AnalogWDGConfig,: Structure of ADC analog watchdog configuration
- Return values:
-
HAL status
Definition at line 2398 of file stm32l4xx_hal_adc.c.
HAL_StatusTypeDef HAL_ADC_ConfigChannel | ( | ADC_HandleTypeDef * | hadc, |
ADC_ChannelConfTypeDef * | sConfig | ||
) |
Configure the selected channel to be linked to the regular group.
- Note:
- In case of usage of internal measurement channels (Vbat / VrefInt / TempSensor), the recommended sampling time is provided by the datasheet. These internal paths can be disabled using function HAL_ADC_DeInit().
- Possibility to update parameters on the fly: HAL_ADC_ConfigChannel() initializes channel into regular group, consecutive calls to this function can be used to reconfigure some parameters of structure "ADC_ChannelConfTypeDef" on the fly, without resetting the ADC. The setting of these parameters is conditioned to ADC state. For parameters constraints, see comments of structure "ADC_ChannelConfTypeDef".
- Parameters:
-
hadc,: ADC handle sConfig,: Structure ADC channel for regular group.
- Return values:
-
HAL status
Definition at line 2097 of file stm32l4xx_hal_adc.c.
Generated on Tue Jul 12 2022 11:00:03 by
