STM32H735xx HAL User Manual
|
Structure definition of ADC channel for regular group. More...
#include <stm32h7xx_hal_adc.h>
Data Fields | |
uint32_t | Channel |
uint32_t | Rank |
uint32_t | SamplingTime |
uint32_t | SingleDiff |
uint32_t | OffsetNumber |
uint32_t | Offset |
FunctionalState | OffsetRightShift |
uint32_t | OffsetSign |
FunctionalState | OffsetSaturation |
FunctionalState | OffsetSignedSaturation |
Structure definition of ADC channel for regular group.
Definition at line 219 of file stm32h7xx_hal_adc.h.
uint32_t ADC_ChannelConfTypeDef::Channel |
Specify the channel to configure into ADC regular group. This parameter can be a value of ADC instance - Channel number Note: Depending on devices and ADC instances, some channels may not be available on device package pins. Refer to device datasheet for channels availability.
Definition at line 221 of file stm32h7xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
uint32_t ADC_ChannelConfTypeDef::Offset |
Define the offset to be subtracted from the raw converted data. Offset value must be a positive number. Depending of ADC resolution selected (16, 14, 12, 10, 8 bits), this parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF, 0x3FFF, 0xFFF, 0x3FF or 0xFF respectively. Note: This parameter must be modified when no conversion is on going on both regular and injected groups (ADC disabled, or ADC enabled without continuous mode or external trigger that could launch a conversion).
Definition at line 257 of file stm32h7xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
uint32_t ADC_ChannelConfTypeDef::OffsetNumber |
Select the offset number This parameter can be a value of ADC instance - Offset number Caution: Only one offset is allowed per channel. This parameter overwrites the last setting.
Definition at line 253 of file stm32h7xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
FunctionalState ADC_ChannelConfTypeDef::OffsetRightShift |
Define the Right-shift data after Offset correction. This parameter is applied only for 16-bit or 8-bit resolution. This parameter can be set to ENABLE or DISABLE.
Definition at line 264 of file stm32h7xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
FunctionalState ADC_ChannelConfTypeDef::OffsetSaturation |
Define if the offset should be saturated upon under or over flow. This parameter value can be ENABLE or DISABLE. Note:
Definition at line 274 of file stm32h7xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
uint32_t ADC_ChannelConfTypeDef::OffsetSign |
Define if the offset should be subtracted (negative sign) or added (positive sign) from or to the raw converted data. This parameter can be a value of ADC Extended Offset Sign. Note:
Definition at line 268 of file stm32h7xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
FunctionalState ADC_ChannelConfTypeDef::OffsetSignedSaturation |
Specify whether the Signed saturation feature is used or not. This parameter is applied only for 16-bit or 8-bit resolution. This parameter can be set to ENABLE or DISABLE.
Definition at line 281 of file stm32h7xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
uint32_t ADC_ChannelConfTypeDef::Rank |
Specify the rank in the regular group sequencer. This parameter can be a value of ADC group regular - Sequencer ranks Note: 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 adjusted)
Definition at line 225 of file stm32h7xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
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.5 ADC clock cycles at ADC resolution 12 bits, 10.5 cycles at 10 bits, 8.5 cycles at 8 bits, 6.5 cycles at 6 bits). This parameter can be a value of Channel - Sampling time Caution: This parameter applies to a channel that can be used into regular and/or injected group. It overwrites the 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.
Definition at line 230 of file stm32h7xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().
uint32_t ADC_ChannelConfTypeDef::SingleDiff |
Select single-ended or differential input. In differential mode: Differential measurement is carried out between the selected channel 'i' (positive input) and channel 'i+1' (negative input). Only channel 'i' has to be configured, channel 'i+1' is configured automatically. This parameter must be a value of Channel - Single or differential ending Caution: This parameter applies to a channel that can be used in a regular and/or injected group. It overwrites the last setting. Note: Refer to Reference Manual to ensure the selected channel is available in differential mode. Note: When configuring a channel 'i' in differential mode, the channel 'i+1' is not usable separately. Note: This parameter must be modified when ADC is disabled (before ADC start conversion or after ADC stop conversion). If ADC is enabled, this parameter setting is bypassed without error reporting (as it can be the expected behavior in case of another parameter update on the fly)
Definition at line 241 of file stm32h7xx_hal_adc.h.
Referenced by HAL_ADC_ConfigChannel().