STM32F103xB HAL User Manual
Data Fields
ADC_ChannelConfTypeDef Struct Reference

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

#include <stm32f1xx_hal_adc.h>

Data Fields

uint32_t Channel
uint32_t Rank
uint32_t SamplingTime

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.

Definition at line 96 of file stm32f1xx_hal_adc.h.


Field Documentation

Specifies the channel to configure into ADC regular group. This parameter can be a value of ADC channels Note: Depending on devices, some channels may not be available on package pins. Refer to device datasheet for channels availability. Note: On STM32F1 devices with several ADC: Only ADC1 can access internal measurement channels (VrefInt/TempSensor) Note: On STM32F10xx8 and STM32F10xxB devices: A low-amplitude voltage glitch may be generated (on ADC input 0) on the PA0 pin, when the ADC is converting with injection trigger. It is advised to distribute the analog channels so that Channel 0 is configured as an injected channel. Refer to errata sheet of these devices for more details.

Definition at line 98 of file stm32f1xx_hal_adc.h.

Referenced by HAL_ADC_ConfigChannel().

Specifies the rank in the regular group sequencer This parameter can be a value of ADC rank into regular group Note: In case of need to disable a channel or change order of conversion sequencer, rank containing a previous channel setting can be overwritten by the new channel setting (or parameter number of conversions can be adjusted)

Definition at line 105 of file stm32f1xx_hal_adc.h.

Referenced by HAL_ADC_ConfigChannel().

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.5 ADC clock cycles at ADC resolution 12 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/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: 5us to 17.1us min).

Definition at line 108 of file stm32f1xx_hal_adc.h.

Referenced by HAL_ADC_ConfigChannel().


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