You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: system/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_adc.h
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -128,11 +128,11 @@ typedef struct
128
128
This feature automatically adapts the frequency of ADC conversions triggers to the speed of the system that reads the data. Moreover, this avoids risk of overrun
129
129
for low frequency applications.
130
130
This parameter can be set to ENABLE or DISABLE.
131
-
Note: Do not use with interruption or DMA (HAL_ADC_Start_IT(), HAL_ADC_Start_DMA()) since they clear immediately the EOC flag
132
-
to free the IRQ vector sequencer.
133
-
Do use with polling: 1. Start conversion with HAL_ADC_Start(), 2. Later on, when ADC conversion data is needed:
134
-
use HAL_ADC_PollForConversion() to ensure that conversion is completed and HAL_ADC_GetValue() to retrieve conversion result and trig another conversion start.
135
-
(in case of usage of ADC group injected, use the equivalent functions HAL_ADCExInjected_Start(), HAL_ADCEx_InjectedGetValue(), ...). */
131
+
Note: It is not recommended to use with interruption or DMA (HAL_ADC_Start_IT(), HAL_ADC_Start_DMA()) since these modes have to clear immediately the EOC flag (by CPU to free the IRQ pending event or by DMA).
132
+
Auto wait will work but fort a very short time, discarding its intended benefit (except specific case of high load of CPU or DMA transfers which can justify usage of auto wait).
133
+
Do use with polling: 1. Start conversion with HAL_ADC_Start(), 2. Later on, when ADC conversion data is needed:
134
+
and use HAL_ADC_GetValue() to retrieve conversion result and trig another conversion (in case of usage of injected group,
135
+
use the equivalent functions HAL_ADCExInjected_Start(), HAL_ADCEx_InjectedGetValue(), ...). */
136
136
137
137
FunctionalStateContinuousConvMode; /*!< Specify whether the conversion is performed in single mode (one conversion) or continuous mode for ADC group regular,
138
138
after the first ADC conversion start trigger occurred (software start or external trigger).
@@ -163,7 +163,7 @@ typedef struct
163
163
If trigger source is set to ADC_SOFTWARE_START, this parameter is discarded.
164
164
This parameter can be a value of @ref ADC_regular_external_trigger_edge */
165
165
166
-
uint32_tConversionDataManagement; /*!< Specifies whether the Data conversion data is managed: using the DMA (oneshot or circular), or stored in the DR register or transfered to DFSDM register.
166
+
uint32_tConversionDataManagement; /*!< Specifies whether the Data conversion data is managed: using the DMA (oneshot or circular), or stored in the DR register or transferred to DFSDM register.
167
167
Note: In continuous mode, DMA must be configured in circular mode. Otherwise an overrun will be triggered when DMA buffer maximum pointer is reached.
168
168
This parameter can be a value of @ref ADC_ConversionDataManagement.
169
169
Note: This parameter must be modified when no conversion is on going on both regular and injected groups
@@ -266,7 +266,7 @@ typedef struct
266
266
This parameter is applied only for 16-bit or 8-bit resolution.
267
267
This parameter can be set to ENABLE or DISABLE.*/
268
268
#if defined(ADC_VER_V5_V90)
269
-
uint32_tOffsetSign; /*!< Define if the offset should be substracted (negative sign) or added (positive sign) from or to the raw converted data.
269
+
uint32_tOffsetSign; /*!< Define if the offset should be subtracted (negative sign) or added (positive sign) from or to the raw converted data.
270
270
This parameter can be a value of @ref ADCEx_OffsetSign.
271
271
Note:
272
272
- This parameter must be modified when no conversion is on going on both regular and injected groups (ADC disabled, or ADC enabled
@@ -380,7 +380,7 @@ typedef struct
380
380
external trigger, low power auto power-on (if feature available), multimode ADC master control (if feature available)) */
381
381
#defineHAL_ADC_STATE_REG_EOC (0x00000200UL) /*!< Conversion data available on group regular */
Copy file name to clipboardExpand all lines: system/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_adc_ex.h
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ typedef struct
122
122
This parameter is applied only for 16-bit or 8-bit resolution.
123
123
This parameter can be set to ENABLE or DISABLE. */
124
124
#if defined(ADC_VER_V5_V90)
125
-
uint32_tInjectedOffsetSign; /*!< Define if the offset should be substracted (negative sign) or added (positive sign) from or to the raw converted data.
125
+
uint32_tInjectedOffsetSign; /*!< Define if the offset should be subtracted (negative sign) or added (positive sign) from or to the raw converted data.
126
126
This parameter can be a value of @ref ADCEx_OffsetSign.
127
127
Note:
128
128
- 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).
#defineADC3_OFFSET_SIGN_NEGATIVE (0x00000000UL) /*!< Offset sign negative, offset is substracted */
298
+
#defineADC3_OFFSET_SIGN_NEGATIVE (0x00000000UL) /*!< Offset sign negative, offset is subtracted */
299
299
#defineADC3_OFFSET_SIGN_POSITIVE (ADC3_OFR1_OFFSETPOS) /*!< Offset sign positive, offset is added */
300
300
/**
301
301
* @}
@@ -415,7 +415,7 @@ typedef struct
415
415
* @{
416
416
*/
417
417
#defineADC_DFSDM_MODE_DISABLE (0x00000000UL) /*!< ADC conversions are not transferred by DFSDM. */
418
-
#defineADC_DFSDM_MODE_ENABLE (LL_ADC_REG_DFSDM_TRANSFER_ENABLE) /*!< ADC conversion data are transfered to DFSDM for post processing. The ADC conversion data format must be 16-bit signed and right aligned, refer to reference manual. DFSDM transfer cannot be used if DMA transfer is enabled. */
418
+
#defineADC_DFSDM_MODE_ENABLE (LL_ADC_REG_DFSDM_TRANSFER_ENABLE) /*!< ADC conversion data are transferred to DFSDM for post processing. The ADC conversion data format must be 16-bit signed and right aligned, refer to reference manual. DFSDM transfer cannot be used if DMA transfer is enabled. */
419
419
/**
420
420
* @}
421
421
*/
@@ -441,7 +441,7 @@ typedef struct
441
441
* Usage of this macro is not the Standard way of multimode
442
442
* configuration and can lead to have HAL ADC handles status
443
443
* misaligned. Usage of this macro must be limited to cases
444
-
* mentionned above.
444
+
* mentioned above.
445
445
* @param __HANDLE__ ADC handle.
446
446
* @retval None
447
447
*/
@@ -1207,7 +1207,10 @@ typedef struct
1207
1207
((__SHIFT__) == ADC_RIGHTBITSHIFT_5 ) || \
1208
1208
((__SHIFT__) == ADC_RIGHTBITSHIFT_6 ) || \
1209
1209
((__SHIFT__) == ADC_RIGHTBITSHIFT_7 ) || \
1210
-
((__SHIFT__) == ADC_RIGHTBITSHIFT_8 ))
1210
+
((__SHIFT__) == ADC_RIGHTBITSHIFT_8 ) || \
1211
+
((__SHIFT__) == ADC_RIGHTBITSHIFT_9 ) || \
1212
+
((__SHIFT__) == ADC_RIGHTBITSHIFT_10 ) || \
1213
+
((__SHIFT__) == ADC_RIGHTBITSHIFT_11 ))
1211
1214
1212
1215
/**
1213
1216
* @brief Verify the ADC oversampling triggered mode.
0 commit comments