|
HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
|
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. | |
ADC configuration for STM32.
|
inlinenoexcept |
|
inlineexplicitnoexcept |
| ADC_HandleTypeDef* hf_stm32_adc_config_t::hal_handle |
Pointer to CubeMX-generated ADC handle.
| hf_u8_t hf_stm32_adc_config_t::num_channels |
Number of configured channels.
| hf_stm32_adc_resolution_t hf_stm32_adc_config_t::resolution |
ADC resolution.
| float hf_stm32_adc_config_t::vref_v |
Reference voltage (V)