theCore C++ embedded framework
stm32f4xx_adc_wrap.hpp File Reference

STM32F4XX ADC wrappers. More...

#include <stm32f4xx.h>
#include <utility>
Include dependency graph for stm32f4xx_adc_wrap.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 ecl
 

Enumerations

enum  ecl::adc_dev { ecl::adc_dev::dev1 = ADC1_BASE, ecl::adc_dev::dev2 = ADC2_BASE, ecl::adc_dev::dev3 = ADC3_BASE }
 Present ADC devices in the MCU. More...
 

Functions

static constexpr auto ecl::adcs_count ()
 Gets amount of present ADC devices. More...
 
static constexpr auto ecl::get_adc_idx (adc_dev dev)
 Maps ADC to index in the ADC array. More...
 

Variables

static constexpr auto ecl::adc_irqn = ADC_IRQn
 ADC IRQ channel. More...
 
static constexpr adc_dev ecl::adcs [] = { adc_dev::dev1, adc_dev::dev2, adc_dev::dev3 }
 Possible ADCs/. More...
 

Detailed Description

STM32F4XX ADC wrappers.