Prusa MINI Firmware overview
ADC_ChannelConfTypeDef Struct Reference

Structure definition of ADC channel for regular group. More...

#include <stm32f4xx_hal_adc.h>

Collaboration diagram for ADC_ChannelConfTypeDef:

Public Attributes

uint32_t Channel
 
uint32_t Rank
 
uint32_t SamplingTime
 
uint32_t Offset
 

Detailed Description

Structure definition of ADC channel for regular group.

Note
The setting of these parameters with function HAL_ADC_ConfigChannel() is conditioned to ADC state. ADC can be either disabled or enabled without conversion on going on regular group.

Member Data Documentation

◆ Channel

uint32_t ADC_ChannelConfTypeDef::Channel

Specifies the channel to configure into ADC regular group. This parameter can be a value of ADC Common Channels

◆ Rank

uint32_t ADC_ChannelConfTypeDef::Rank

Specifies the rank in the regular group sequencer. This parameter must be a number between Min_Data = 1 and Max_Data = 16

◆ SamplingTime

uint32_t ADC_ChannelConfTypeDef::SamplingTime

Sampling time value to be set for the selected channel. Unit: ADC clock cycles Conversion time is the addition of sampling time and processing time (12 ADC clock cycles at ADC resolution 12 bits, 11 cycles at 10 bits, 9 cycles at 8 bits, 7 cycles at 6 bits). This parameter can be a value of ADC Sampling Times Caution: This parameter updates the parameter property of the channel, that can be used into regular and/or injected groups. If this same channel has been previously configured in the other group (regular/injected), it will be updated to last setting. Note: In case of usage of internal measurement channels (VrefInt/Vbat/TempSensor), sampling time constraints must be respected (sampling time can be adjusted in function of ADC clock frequency and sampling time setting) Refer to device datasheet for timings values, parameters TS_vrefint, TS_temp (values rough order: 4us min).

◆ Offset

uint32_t ADC_ChannelConfTypeDef::Offset

Reserved for future use, can be set to 0