L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
adc.c File Reference

This file provides code for the configuration of the ADC instances. More...

#include "adc.h"
Include dependency graph for adc.c:

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.

Detailed Description

This file provides code for the configuration of the ADC instances.

Attention

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.

Function Documentation

◆ HAL_ADC_MspDeInit()

void HAL_ADC_MspDeInit ( ADC_HandleTypeDef * adcHandle)

ADC GPIO Configuration PA15 ------> ADC_IN11

Definition at line 125 of file adc.c.

◆ HAL_ADC_MspInit()

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().

Here is the call graph for this function:

◆ MX_ADC_Init()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ hadc

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().