HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
hf_stm32_adc_config_t Struct Reference

ADC configuration for STM32. More...

#include <StmTypes.h>

Public Member Functions

 hf_stm32_adc_config_t () noexcept
 
 hf_stm32_adc_config_t (ADC_HandleTypeDef *handle, hf_u8_t channels=1, float vref=hf::stm32::kAdcDefaultVrefV) noexcept
 

Public Attributes

ADC_HandleTypeDef * hal_handle
 Pointer to CubeMX-generated ADC handle.
 
hf_stm32_adc_resolution_t resolution
 ADC resolution.
 
float vref_v
 Reference voltage (V)
 
hf_u8_t num_channels
 Number of configured channels.
 

Detailed Description

ADC configuration for STM32.

Constructor & Destructor Documentation

◆ hf_stm32_adc_config_t() [1/2]

hf_stm32_adc_config_t::hf_stm32_adc_config_t ( )
inlinenoexcept

◆ hf_stm32_adc_config_t() [2/2]

hf_stm32_adc_config_t::hf_stm32_adc_config_t ( ADC_HandleTypeDef * handle,
hf_u8_t channels = 1,
float vref = hf::stm32::kAdcDefaultVrefV )
inlineexplicitnoexcept

Member Data Documentation

◆ hal_handle

ADC_HandleTypeDef* hf_stm32_adc_config_t::hal_handle

Pointer to CubeMX-generated ADC handle.

◆ num_channels

hf_u8_t hf_stm32_adc_config_t::num_channels

Number of configured channels.

◆ resolution

hf_stm32_adc_resolution_t hf_stm32_adc_config_t::resolution

ADC resolution.

◆ vref_v

float hf_stm32_adc_config_t::vref_v

Reference voltage (V)


The documentation for this struct was generated from the following file: