SimpleFOClibrary 2.4.0
Loading...
Searching...
No Matches
stm32_adc_hal.h
Go to the documentation of this file.
1#ifndef STM32_ADC_INCLUDE_HAL
2
3#include "Arduino.h"
4
5#if defined(_STM32_DEF_)
6
7#include "stm32_mcu.h"
8
9// for searching the best ADCs, we need to know the number of ADCs
10// it might be better to use some HAL variable for example ADC_COUNT
11// here I've assumed the maximum number of ADCs is 5
12#define ADC_COUNT 5
13
14// pointer to the ADC handles used in the project
15ADC_HandleTypeDef* _get_adc_handles();
16
17int _adc_init_regular(ADC_TypeDef* adc_instance);
18int _adc_init(Stm32CurrentSenseParams* cs_params, const STM32DriverParams* driver_params);
19int _adc_gpio_init(Stm32CurrentSenseParams* cs_params, const int pinA, const int pinB, const int pinC);
20
21#endif
22
23#endif
const int const int const int pinC