Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
Injected channels Configuration functions
[ADC_Private_Functions]
Injected channels Configuration functions. More...
Functions | |
| void | ADC_InjectedChannelSampleTimeConfig (ADC_TypeDef *ADCx, uint8_t ADC_InjectedChannel, uint8_t ADC_SampleTime) |
| Configures for the selected ADC injected channel its corresponding sample time. | |
| void | ADC_StartInjectedConversion (ADC_TypeDef *ADCx) |
| Enables or disables the selected ADC start of the injected channels conversion. | |
| void | ADC_StopInjectedConversion (ADC_TypeDef *ADCx) |
| Stops the selected ADC ongoing injected conversion. | |
| FlagStatus | ADC_GetStartInjectedConversionStatus (ADC_TypeDef *ADCx) |
| Gets the selected ADC Software start injected conversion Status. | |
| void | ADC_AutoInjectedConvCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the selected ADC automatic injected group conversion after regular one. | |
| void | ADC_InjectedDiscModeCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the discontinuous mode for injected group channel for the specified ADC. | |
| uint16_t | ADC_GetInjectedConversionValue (ADC_TypeDef *ADCx, uint8_t ADC_InjectedSequence) |
| Returns the ADC injected channel conversion result. | |
Detailed Description
Injected channels Configuration functions.
===============================================================================
##### Injected channels Configuration functions #####
===============================================================================
[..] This section provide functions allowing to manage the ADC Injected channels,
it is composed of :
(#) Configuration functions for Injected channels sample time
(#) Functions to start and stop the injected conversion
(#) unction to select the discontinuous mode
(#) Function to get the Specified Injected channel conversion data: This subsection
provides an important function in the ADC peripheral since it returns the
converted data of the specific injected channel.
Function Documentation
| void ADC_AutoInjectedConvCmd | ( | ADC_TypeDef * | ADCx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the selected ADC automatic injected group conversion after regular one.
- Parameters:
-
ADCx,: where x can be 1, 2, 3 or 4 to select the ADC peripheral. NewState,: new state of the selected ADC auto injected conversion This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 1937 of file stm32f30x_adc.c.
| uint16_t ADC_GetInjectedConversionValue | ( | ADC_TypeDef * | ADCx, |
| uint8_t | ADC_InjectedSequence | ||
| ) |
Returns the ADC injected channel conversion result.
- Parameters:
-
ADCx,: where x can be 1, 2, 3 or 4 to select the ADC peripheral. ADC_InjectedSequence,: the converted ADC injected sequence. This parameter can be one of the following values: - ADC_InjectedSequence_1: Injected Sequence1 selected
- ADC_InjectedSequence_2: Injected Sequence2 selected
- ADC_InjectedSequence_3: Injected Sequence3 selected
- ADC_InjectedSequence_4: Injected Sequence4 selected
- Return values:
-
The Data conversion value.
Definition at line 1991 of file stm32f30x_adc.c.
| FlagStatus ADC_GetStartInjectedConversionStatus | ( | ADC_TypeDef * | ADCx ) |
Gets the selected ADC Software start injected conversion Status.
- Parameters:
-
ADCx,: where x can be 1, 2, 3 or 4 to select the ADC peripheral.
- Return values:
-
The new state of ADC start injected conversion (SET or RESET).
Definition at line 1908 of file stm32f30x_adc.c.
| void ADC_InjectedChannelSampleTimeConfig | ( | ADC_TypeDef * | ADCx, |
| uint8_t | ADC_InjectedChannel, | ||
| uint8_t | ADC_SampleTime | ||
| ) |
Configures for the selected ADC injected channel its corresponding sample time.
- Parameters:
-
ADCx,: where x can be 1, 2, 3 or 4 to select the ADC peripheral. ADC_Channel,: the ADC channel to configure. This parameter can be one of the following values: - ADC_InjectedChannel_1: ADC Channel1 selected
- ADC_InjectedChannel_2: ADC Channel2 selected
- ADC_InjectedChannel_3: ADC Channel3 selected
- ADC_InjectedChannel_4: ADC Channel4 selected
- ADC_InjectedChannel_5: ADC Channel5 selected
- ADC_InjectedChannel_6: ADC Channel6 selected
- ADC_InjectedChannel_7: ADC Channel7 selected
- ADC_InjectedChannel_8: ADC Channel8 selected
- ADC_InjectedChannel_9: ADC Channel9 selected
- ADC_InjectedChannel_10: ADC Channel10 selected
- ADC_InjectedChannel_11: ADC Channel11 selected
- ADC_InjectedChannel_12: ADC Channel12 selected
- ADC_InjectedChannel_13: ADC Channel13 selected
- ADC_InjectedChannel_14: ADC Channel14 selected
- ADC_InjectedChannel_15: ADC Channel15 selected
- ADC_InjectedChannel_16: ADC Channel16 selected
- ADC_InjectedChannel_17: ADC Channel17 selected
- ADC_InjectedChannel_18: ADC Channel18 selected
ADC_SampleTime,: The sample time value to be set for the selected channel. This parameter can be one of the following values: - ADC_SampleTime_1Cycles5: Sample time equal to 1.5 cycles
- ADC_SampleTime_2Cycles5: Sample time equal to 2.5 cycles
- ADC_SampleTime_4Cycles5: Sample time equal to 4.5 cycles
- ADC_SampleTime_7Cycles5: Sample time equal to 7.5 cycles
- ADC_SampleTime_19Cycles5: Sample time equal to 19.5 cycles
- ADC_SampleTime_61Cycles5: Sample time equal to 61.5 cycles
- ADC_SampleTime_181Cycles5: Sample time equal to 181.5 cycles
- ADC_SampleTime_601Cycles5: Sample time equal to 601.5 cycles
- Return values:
-
None
Definition at line 1840 of file stm32f30x_adc.c.
| void ADC_InjectedDiscModeCmd | ( | ADC_TypeDef * | ADCx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the discontinuous mode for injected group channel for the specified ADC.
- Parameters:
-
ADCx,: where x can be 1, 2, 3 or 4 to select the ADC peripheral. NewState,: new state of the selected ADC discontinuous mode on injected group channel. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 1963 of file stm32f30x_adc.c.
| void ADC_StartInjectedConversion | ( | ADC_TypeDef * | ADCx ) |
Enables or disables the selected ADC start of the injected channels conversion.
- Parameters:
-
ADCx,: where x can be 1, 2, 3 or 4 to select the ADC peripheral. NewState,: new state of the selected ADC software start injected conversion. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 1879 of file stm32f30x_adc.c.
| void ADC_StopInjectedConversion | ( | ADC_TypeDef * | ADCx ) |
Stops the selected ADC ongoing injected conversion.
- Parameters:
-
ADCx,: where x can be 1, 2, 3 or 4 to select the ADC peripheral.
- Return values:
-
None
Definition at line 1894 of file stm32f30x_adc.c.
Generated on Tue Jul 12 2022 17:34:45 by
1.7.2