|
L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
|
This file provides code for the configuration of the ADC instances. More...
#include "adc.h"Go to the source code of this file.
Functions | |
| void | MX_ADC_Init (void) |
| Initialise the ADC peripheral (hadc) with settings generated by STM32CubeMX. Configures the ADC clock, resolution, scan mode, and channel assignments. Must be called once before SYS_InitMeasurement() or any ADC conversion. | |
| void | HAL_ADC_MspInit (ADC_HandleTypeDef *adcHandle) |
| void | HAL_ADC_MspDeInit (ADC_HandleTypeDef *adcHandle) |
Variables | |
| ADC_HandleTypeDef | hadc |
| ADC handle. | |
This file provides code for the configuration of the ADC instances.
Copyright (c) 2026 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file adc.c.
| void HAL_ADC_MspDeInit | ( | ADC_HandleTypeDef * | adcHandle | ) |
| void HAL_ADC_MspInit | ( | ADC_HandleTypeDef * | adcHandle | ) |
Initializes the peripherals clocks
ADC GPIO Configuration PA15 ------> ADC_IN11
Definition at line 84 of file adc.c.
References Error_Handler().
| void MX_ADC_Init | ( | void | ) |
Initialise the ADC peripheral (hadc) with settings generated by STM32CubeMX. Configures the ADC clock, resolution, scan mode, and channel assignments. Must be called once before SYS_InitMeasurement() or any ADC conversion.
Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
Configure Regular Channel
Definition at line 30 of file adc.c.
References Error_Handler(), and hadc.
Referenced by ADC_ReadChannels().
| ADC_HandleTypeDef hadc |
ADC handle.
Definition at line 27 of file adc.c.
Referenced by ADC_IRQHandler(), ADC_ReadChannels(), MX_ADC_Init(), PWR_EnterOffMode(), and SYS_InitMeasurement().