DIY Logging Volt/Ampmeter
|
This file provides code for the configuration of the ADC instances. More...
Go to the source code of this file.
Macros | |
#define | ADC_CALIBRATION_TIMEOUT_MS ((uint32_t) 1) |
#define | ADC_ENABLE_TIMEOUT_MS ((uint32_t) 1) |
#define | ADC_DISABLE_TIMEOUT_MS ((uint32_t) 1) |
#define | ADC_STOP_CONVERSION_TIMEOUT_MS ((uint32_t) 1) |
#define | ADC_CONVERSION_TIMEOUT_MS ((uint32_t) 2) |
#define | ADC_DELAY_ENABLE_CALIB_CPU_CYCLES (LL_ADC_DELAY_ENABLE_CALIB_ADC_CYCLES * 32) |
#define | VDDA_APPLI ((uint32_t)3300) |
#define | VAR_CONVERTED_DATA_INIT_VALUE (__LL_ADC_DIGITAL_SCALE(LL_ADC_RESOLUTION_12B) + 1) |
Functions | |
void | MX_ADC1_Init (void) |
void | MX_ADC2_Init (void) |
void | Activate_ADC (void) |
Perform ADC activation procedure to make it ready to convert (ADC instance: ADC2). More... | |
void | startBattVoltMeasurement (void) |
void | AdcGrpRegularUnitaryConvComplete_Callback (void) |
ADC group regular end of unitary conversion interruption callback. More... | |
Variables | |
static const float | adcVoltReadoutCalbration = 0.03 |
__IO uint16_t | uhADCxConvertedData = (__LL_ADC_DIGITAL_SCALE(LL_ADC_RESOLUTION_12B) + 1) |
__IO uint16_t | uhADCxConvertedData_Voltage_mVolt = 0 |
__IO uint8_t | ubAdcGrpRegularUnitaryConvStatus = 2 |
This file provides code for the configuration of the ADC instances.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file adc.c.
#define ADC_DELAY_ENABLE_CALIB_CPU_CYCLES (LL_ADC_DELAY_ENABLE_CALIB_ADC_CYCLES * 32) |
#define VAR_CONVERTED_DATA_INIT_VALUE (__LL_ADC_DIGITAL_SCALE(LL_ADC_RESOLUTION_12B) + 1) |
void Activate_ADC | ( | void | ) |
Perform ADC activation procedure to make it ready to convert (ADC instance: ADC2).
None |
None |
Definition at line 197 of file adc.c.
void AdcGrpRegularUnitaryConvComplete_Callback | ( | void | ) |
ADC group regular end of unitary conversion interruption callback.
None |
Definition at line 313 of file adc.c.
void MX_ADC1_Init | ( | void | ) |
void MX_ADC2_Init | ( | void | ) |
__IO uint16_t uhADCxConvertedData = (__LL_ADC_DIGITAL_SCALE(LL_ADC_RESOLUTION_12B) + 1) |