STM32H735xx HAL User Manual
|
Structure definition of ADC group injected and ADC channel affected to ADC group injected. More...
#include <stm32h7xx_hal_adc_ex.h>
Data Fields | |
uint32_t | InjectedChannel |
uint32_t | InjectedRank |
uint32_t | InjectedSamplingTime |
uint32_t | InjectedSingleDiff |
uint32_t | InjectedOffsetNumber |
uint32_t | InjectedOffset |
uint32_t | InjectedOffsetRightShift |
uint32_t | InjectedOffsetSign |
FunctionalState | InjectedOffsetSaturation |
FunctionalState | InjectedOffsetSignedSaturation |
uint32_t | InjectedNbrOfConversion |
FunctionalState | InjectedDiscontinuousConvMode |
FunctionalState | AutoInjectedConv |
FunctionalState | QueueInjectedContext |
uint32_t | ExternalTrigInjecConv |
uint32_t | ExternalTrigInjecConvEdge |
FunctionalState | InjecOversamplingMode |
ADC_InjOversamplingTypeDef | InjecOversampling |
Structure definition of ADC group injected and ADC channel affected to ADC group injected.
Definition at line 75 of file stm32h7xx_hal_adc_ex.h.
FunctionalState ADC_InjectionConfTypeDef::AutoInjectedConv |
Enables or disables the selected ADC group injected automatic conversion after regular one This parameter can be set to ENABLE or DISABLE. Note: To use Automatic injected conversion, discontinuous mode must be disabled ('DiscontinuousConvMode' and 'InjectedDiscontinuousConvMode' set to DISABLE) Note: To use Automatic injected conversion, injected group external triggers must be disabled ('ExternalTrigInjecConv' set to ADC_INJECTED_SOFTWARE_START) Note: In case of DMA used with regular group: if DMA configured in normal mode (single shot) JAUTO will be stopped upon DMA transfer complete. To maintain JAUTO always enabled, DMA must be configured in circular mode. Caution: this setting impacts the entire injected group. Therefore, call of HAL_ADCEx_InjectedConfigChannel() to configure a channel on injected group can impact the configuration of other channels previously set.
Definition at line 157 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
Selects the external event used to trigger the conversion start of injected group. If set to ADC_INJECTED_SOFTWARE_START, external triggers are disabled and software trigger is used instead. This parameter can be a value of ADC group injected trigger source. Caution: this setting impacts the entire injected group. Therefore, call of HAL_ADCEx_InjectedConfigChannel() to configure a channel on injected group can impact the configuration of other channels previously set.
Definition at line 177 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
Selects the external trigger edge of injected group. This parameter can be a value of ADC group injected trigger edge (when external trigger is selected). If trigger source is set to ADC_INJECTED_SOFTWARE_START, this parameter is discarded. Caution: this setting impacts the entire injected group. Therefore, call of HAL_ADCEx_InjectedConfigChannel() to configure a channel on injected group can impact the configuration of other channels previously set.
Definition at line 183 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
Specifies the Oversampling parameters. Caution: this setting overwrites the previous oversampling configuration if oversampling already enabled. Note: This parameter can be modified only if there is no conversion is ongoing (both ADSTART and JADSTART cleared).
Definition at line 193 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
FunctionalState ADC_InjectionConfTypeDef::InjecOversamplingMode |
Specifies whether the oversampling feature is enabled or disabled. This parameter can be set to ENABLE or DISABLE. Note: This parameter can be modified only if there is no conversion is ongoing (both ADSTART and JADSTART cleared).
Definition at line 189 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
Specifies the channel to configure into ADC group injected. 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 77 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
FunctionalState ADC_InjectionConfTypeDef::InjectedDiscontinuousConvMode |
Specifies whether the conversions sequence of ADC group injected is performed in Complete-sequence/Discontinuous-sequence (main sequence subdivided in successive parts). Discontinuous mode is used only if sequencer is enabled (parameter 'ScanConvMode'). If sequencer is disabled, this parameter is discarded. Discontinuous mode can be enabled only if continuous mode is disabled. This parameter can be set to ENABLE or DISABLE. Note: This parameter must be modified when ADC is disabled (before ADC start conversion or after ADC stop conversion). Note: For injected group, discontinuous mode converts the sequence channel by channel (discontinuous length fixed to 1 rank). Caution: this setting impacts the entire injected group. Therefore, call of HAL_ADCEx_InjectedConfigChannel() to configure a channel on injected group can impact the configuration of other channels previously set.
Definition at line 147 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
Specifies the number of ranks that will be converted within the ADC group injected sequencer. To use the injected group sequencer and convert several ranks, parameter 'ScanConvMode' must be enabled. This parameter must be a number between Min_Data = 1 and Max_Data = 4. Caution: this setting impacts the entire injected group. Therefore, call of HAL_ADCEx_InjectedConfigChannel() to configure a channel on injected group can impact the configuration of other channels previously set.
Definition at line 141 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
Defines the offset to be subtracted from the raw converted data. Offset value must be a positive number. Depending of ADC resolution selected (12, 10, 8 or 6 bits), this parameter must be a number between Min_Data = 0x000 and Max_Data = 0xFFF, 0x3FF, 0xFF or 0x3F 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 113 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
Selects 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 109 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
Specifies whether the 1 bit Right-shift 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 120 of file stm32h7xx_hal_adc_ex.h.
FunctionalState ADC_InjectionConfTypeDef::InjectedOffsetSaturation |
Define if the offset should be saturated upon under or over flow. This parameter value can be ENABLE or DISABLE. Note:
Definition at line 129 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
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 124 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
FunctionalState ADC_InjectionConfTypeDef::InjectedOffsetSignedSaturation |
Specifies 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 137 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
Specifies the rank in the ADC group injected sequencer. This parameter must be a value of ADC group injected - 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 81 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
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 in a 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 86 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
Selection of single-ended or differential input. In differential mode: Differential measurement is 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 97 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().
FunctionalState ADC_InjectionConfTypeDef::QueueInjectedContext |
Specifies whether the context queue feature is enabled. This parameter can be set to ENABLE or DISABLE. If context queue is enabled, injected sequencer&channels configurations are queued on up to 2 contexts. If a new injected context is set when queue is full, error is triggered by interruption and through function 'HAL_ADCEx_InjectedQueueOverflowCallback'. Caution: This feature request that the sequence is fully configured before injected conversion start. Therefore, configure channels with as many calls to HAL_ADCEx_InjectedConfigChannel() as the 'InjectedNbrOfConversion' parameter. Caution: this setting impacts the entire injected group. Therefore, call of HAL_ADCEx_InjectedConfigChannel() to configure a channel on injected group can impact the configuration of other channels previously set. Note: This parameter must be modified when ADC is disabled (before ADC start conversion or after ADC stop conversion).
Definition at line 166 of file stm32h7xx_hal_adc_ex.h.
Referenced by HAL_ADCEx_InjectedConfigChannel().