theCore C++ embedded framework
|
ADC configuration prototype. More...
#include </home/travis/build/forGGe/theCore/platform/stm32/export/aux/adc.hpp>
ADC configuration prototype.
Specific ADC device is pre-configured by providing template specialization of the adc_cfg class. Contents of the adc_cfg specialization depends on ADC management mode used. Two options possible:
mgtm_mode
, set to adc_mgmt_mode::dma
dma
for particular ADC. Refer to RM to find appropriate DMA configuration for given ADC.mgtm_mode
, set to adc_mgmt_mode::irq
// Provides configuration of the adc_dev::dev1 (ADC1). template<> struct adc_cfg<adc_dev::dev1> { // Signifies IRQ management mode. static constexpr adc_mgmt_mode mgtm_mode = adc_mgmt_mode::irq; };