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/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h
+9-10
Original file line number
Diff line number
Diff line change
@@ -132,8 +132,7 @@ typedef struct
132
132
133
133
FunctionalStateLowPowerAutoPowerOff; /*!< Select the auto-off mode: the ADC automatically powers-off after a conversion and automatically wakes-up when a new conversion is triggered (with startup time between trigger and start of sampling).
134
134
This feature can be combined with automatic wait mode (parameter 'LowPowerAutoWait').
135
-
This parameter can be set to ENABLE or DISABLE.
136
-
Note: If enabled, this feature also turns off the ADC dedicated 14 MHz RC oscillator (HSI14) */
135
+
This parameter can be set to ENABLE or DISABLE. */
137
136
138
137
FunctionalStateContinuousConvMode; /*!< Specify whether the conversion is performed in single mode (one conversion) or continuous mode for ADC group regular,
139
138
after the first ADC conversion start trigger occurred (software start or external trigger).
#defineADC_EXTERNALTRIG_T1_CC4 (LL_ADC_REG_TRIG_EXT_TIM1_CH4) /*!< ADC group regular conversion trigger from external peripheral: TIM1 channel 4 event (capture compare: input capture or output capture). Trigger edge set to rising edge (default setting). */
517
516
#if defined(TIM2)
518
517
#defineADC_EXTERNALTRIG_T2_TRGO (LL_ADC_REG_TRIG_EXT_TIM2_TRGO) /*!< ADC group regular conversion trigger from external peripheral: TIM2 TRGO. Trigger edge set to rising edge (default setting). */
519
-
#endif
518
+
#endif/* TIM2 */
520
519
#defineADC_EXTERNALTRIG_T3_TRGO (LL_ADC_REG_TRIG_EXT_TIM3_TRGO) /*!< ADC group regular conversion trigger from external peripheral: TIM3 TRGO. Trigger edge set to rising edge (default setting). */
521
520
#if defined(TIM4)
522
521
#defineADC_EXTERNALTRIG_T4_TRGO (LL_ADC_REG_TRIG_EXT_TIM4_TRGO) /*!< ADC group regular conversion trigger from external peripheral: TIM4 TRGO. Trigger edge set to rising edge (default setting). */
523
-
#endif
522
+
#endif/* TIM4 */
524
523
#if defined(TIM6)
525
524
#defineADC_EXTERNALTRIG_T6_TRGO (LL_ADC_REG_TRIG_EXT_TIM6_TRGO) /*!< ADC group regular conversion trigger from external peripheral: TIM6 TRGO. Trigger edge set to rising edge (default setting). */
526
-
#endif
525
+
#endif/* TIM6 */
527
526
#if defined(TIM15)
528
527
#defineADC_EXTERNALTRIG_T15_TRGO (LL_ADC_REG_TRIG_EXT_TIM15_TRGO) /*!< ADC group regular conversion trigger from external peripheral: TIM15 TRGO. Trigger edge set to rising edge (default setting). */
529
-
#endif
528
+
#endif/* TIM15 */
530
529
#defineADC_EXTERNALTRIG_EXT_IT11 (LL_ADC_REG_TRIG_EXT_EXTI_LINE11) /*!< ADC group regular conversion trigger from external peripheral: external interrupt line 11. Trigger edge set to rising edge (default setting). */
#defineCOMP_WINDOWOUTPUT_COMP2 (COMP_CSR_WINOUT | COMP_WINDOWMODE_COMP2) /*!< Window output synthetized on COMP2 output: COMP2 output is no more indicating its own state, but global window mode state (logical high means monitored signal is within comparators window). */
174
174
#if defined(COMP3)
175
175
#defineCOMP_WINDOWOUTPUT_COMP3 (COMP_CSR_WINOUT) /*!< Window output synthetized on COMP3 output: COMP3 output is no more indicating its own state, but global window mode state (logical high means monitored signal is within comparators window). */
176
-
#endif
176
+
#endif/* COMP3 */
177
177
#defineCOMP_WINDOWOUTPUT_BOTH (0x00000001UL) /*!< Window output synthetized on both comparators output of pair of comparator selected (COMP1 and COMP2, or COMP2 and COMP3 for devices featuring COMP3 instance): both comparators outputs are no more indicating their own state, but global window mode state (logical high means monitored signal is within comparators window). This is a specific configuration (technically possible but not relevant from application point of view: 2 comparators output used for the same signal level), standard configuration for window mode is one of the settings above. */
uint32_tOutputDataInversionMode; /*!< This parameter is a value of @ref CRCEx_Output_Data_Inversion and specifies output data (i.e. CRC) inversion mode.
95
101
Can be either
96
102
@arg @ref CRC_OUTPUTDATA_INVERSION_DISABLE no CRC inversion,
97
-
@arg @ref CRC_OUTPUTDATA_INVERSION_ENABLE CRC 0x11223344 is converted into 0x22CC4488 */
103
+
@arg @ref CRC_OUTPUTDATA_INVERSION_ENABLE CRC 0x11223344 is converted
104
+
into 0x22CC4488 */
98
105
} CRC_InitTypeDef;
99
106
100
107
/**
@@ -112,12 +119,16 @@ typedef struct
112
119
113
120
uint32_tInputDataFormat; /*!< This parameter is a value of @ref CRC_Input_Buffer_Format and specifies input data format.
114
121
Can be either
115
-
@arg @ref CRC_INPUTDATA_FORMAT_BYTES input data is a stream of bytes (8-bit data)
116
-
@arg @ref CRC_INPUTDATA_FORMAT_HALFWORDS input data is a stream of half-words (16-bit data)
117
-
@arg @ref CRC_INPUTDATA_FORMAT_WORDS input data is a stream of words (32-bit data)
118
-
119
-
Note that constant CRC_INPUT_FORMAT_UNDEFINED is defined but an initialization error
120
-
must occur if InputBufferFormat is not one of the three values listed above */
122
+
@arg @ref CRC_INPUTDATA_FORMAT_BYTES input data is a stream of bytes
123
+
(8-bit data)
124
+
@arg @ref CRC_INPUTDATA_FORMAT_HALFWORDS input data is a stream of
125
+
half-words (16-bit data)
126
+
@arg @ref CRC_INPUTDATA_FORMAT_WORDS input data is a stream of words
127
+
(32-bit data)
128
+
129
+
Note that constant CRC_INPUT_FORMAT_UNDEFINED is defined but an initialization
130
+
error must occur if InputBufferFormat is not one of the three values listed
131
+
above */
121
132
} CRC_HandleTypeDef;
122
133
/**
123
134
* @}
@@ -199,15 +210,6 @@ typedef struct
199
210
* @}
200
211
*/
201
212
202
-
/** @defgroup CRC_Aliases CRC API aliases
203
-
* @{
204
-
*/
205
-
#defineHAL_CRC_Input_Data_Reverse HAL_CRCEx_Input_Data_Reverse /*!< Aliased to HAL_CRCEx_Input_Data_Reverse for inter STM32 series compatibility */
206
-
#defineHAL_CRC_Output_Data_Reverse HAL_CRCEx_Output_Data_Reverse /*!< Aliased to HAL_CRCEx_Output_Data_Reverse for inter STM32 series compatibility */
0 commit comments