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
15
ADC_HandleTypeDef* _get_adc_handles();
16
17
int
_adc_init_regular(ADC_TypeDef* adc_instance);
18
int
_adc_init(Stm32CurrentSenseParams*
cs_params
,
const
STM32DriverParams* driver_params);
19
int
_adc_gpio_init(Stm32CurrentSenseParams*
cs_params
,
const
int
pinA
,
const
int
pinB
,
const
int
pinC
);
20
21
#endif
22
23
#endif
pinB
const int const int pinB
Definition
current_sense/hardware_specific/generic_mcu.cpp:11
cs_params
const void * cs_params
Definition
current_sense/hardware_specific/generic_mcu.cpp:5
pinC
const int const int const int pinC
Definition
current_sense/hardware_specific/generic_mcu.cpp:11
pinA
const int pinA
Definition
current_sense/hardware_specific/generic_mcu.cpp:11
src
current_sense
hardware_specific
stm32
stm32_adc_hal.h
Generated by
1.9.8