Macros | |
#define | IS_ADC_ALL_PERIPH(PERIPH) |
#define | IS_ADC_ALL_PERIPH(PERIPH) |
#define | IS_ADC_ALL_PERIPH(PERIPH) |
#define | IS_ADC_DMA_PERIPH(PERIPH) |
#define | IS_ADC_DMA_PERIPH(PERIPH) |
Functions | |
void | ADC_AnalogWatchdog1SingleChannelConfig (ADC_TypeDef *ADCx, uint8_t ADC_Channel) |
Configures the analog watchdog 2 guarded single channel. More... | |
void | ADC_AnalogWatchdog1ThresholdsConfig (ADC_TypeDef *ADCx, uint16_t HighThreshold, uint16_t LowThreshold) |
Configures the high and low thresholds of the analog watchdog1. More... | |
void | ADC_AnalogWatchdog2SingleChannelConfig (ADC_TypeDef *ADCx, uint8_t ADC_Channel) |
Configures the analog watchdog 2 guarded single channel. More... | |
void | ADC_AnalogWatchdog2ThresholdsConfig (ADC_TypeDef *ADCx, uint8_t HighThreshold, uint8_t LowThreshold) |
Configures the high and low thresholds of the analog watchdog2. More... | |
void | ADC_AnalogWatchdog3SingleChannelConfig (ADC_TypeDef *ADCx, uint8_t ADC_Channel) |
Configures the analog watchdog 3 guarded single channel. More... | |
void | ADC_AnalogWatchdog3ThresholdsConfig (ADC_TypeDef *ADCx, uint8_t HighThreshold, uint8_t LowThreshold) |
Configures the high and low thresholds of the analog watchdog3. More... | |
void | ADC_AnalogWatchdogCmd (ADC_TypeDef *ADCx, uint32_t ADC_AnalogWatchdog) |
Enables or disables the analog watchdog on single/all regular or injected channels. More... | |
void | ADC_AutoDelayCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Selects the ADC Delayed Conversion Mode. More... | |
void | ADC_AutoInjectedConvCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the selected ADC automatic injected group conversion after regular one. More... | |
void | ADC_ChannelOffset1Cmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the Offset1. More... | |
void | ADC_ChannelOffset2Cmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the Offset2. More... | |
void | ADC_ChannelOffset3Cmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the Offset3. More... | |
void | ADC_ChannelOffset4Cmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the Offset4. More... | |
void | ADC_ClearCommonFlag (ADC_TypeDef *ADCx, uint32_t ADC_FLAG) |
Clears the ADCx's pending flags. More... | |
void | ADC_ClearFlag (ADC_TypeDef *ADCx, uint32_t ADC_FLAG) |
Clears the ADCx's pending flags. More... | |
void | ADC_ClearITPendingBit (ADC_TypeDef *ADCx, uint32_t ADC_IT) |
Clears the ADCx's interrupt pending bits. More... | |
void | ADC_Cmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the specified ADC peripheral. More... | |
void | ADC_CommonInit (ADC_TypeDef *ADCx, ADC_CommonInitTypeDef *ADC_CommonInitStruct) |
Initializes the ADCs peripherals according to the specified parameters in the ADC_CommonInitStruct. More... | |
void | ADC_CommonStructInit (ADC_CommonInitTypeDef *ADC_CommonInitStruct) |
Fills each ADC_CommonInitStruct member with its default value. More... | |
void | ADC_DeInit (ADC_TypeDef *ADCx) |
Deinitializes the ADCx peripheral registers to their default reset values. More... | |
void | ADC_DisableCmd (ADC_TypeDef *ADCx) |
ADC Disable Command. More... | |
void | ADC_DiscModeChannelCountConfig (ADC_TypeDef *ADCx, uint8_t Number) |
Configures the discontinuous mode for the selected ADC regular group channel. More... | |
void | ADC_DiscModeCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the discontinuous mode on regular group channel for the specified ADC. More... | |
void | ADC_DMACmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the specified ADC DMA request. More... | |
void | ADC_DMAConfig (ADC_TypeDef *ADCx, uint32_t ADC_DMAMode) |
Configure ADC DMA mode. More... | |
void | ADC_ExternalTriggerConfig (ADC_TypeDef *ADCx, uint16_t ADC_ExternalTrigConvEvent, uint16_t ADC_ExternalTrigEventEdge) |
External Trigger Enable and Polarity Selection for regular channels. More... | |
FlagStatus | ADC_GetCalibrationStatus (ADC_TypeDef *ADCx) |
Gets the selected ADC calibration status. More... | |
uint32_t | ADC_GetCalibrationValue (ADC_TypeDef *ADCx) |
Returns the ADCx calibration value. More... | |
FlagStatus | ADC_GetCommonFlagStatus (ADC_TypeDef *ADCx, uint32_t ADC_FLAG) |
Checks whether the specified ADC flag is set or not. More... | |
uint16_t | ADC_GetConversionValue (ADC_TypeDef *ADCx) |
Returns the last ADCx conversion result data for regular channel. More... | |
FlagStatus | ADC_GetDisableCmdStatus (ADC_TypeDef *ADCx) |
Gets the selected ADC disable command Status. More... | |
uint32_t | ADC_GetDualModeConversionValue (ADC_TypeDef *ADCx) |
Returns the last ADC1, ADC2, ADC3 and ADC4 regular conversions results data in the selected dual mode. More... | |
FlagStatus | ADC_GetFlagStatus (ADC_TypeDef *ADCx, uint32_t ADC_FLAG) |
Checks whether the specified ADC flag is set or not. More... | |
uint16_t | ADC_GetInjectedConversionValue (ADC_TypeDef *ADCx, uint8_t ADC_InjectedChannel) |
Returns the ADC injected channel conversion result. More... | |
ITStatus | ADC_GetITStatus (ADC_TypeDef *ADCx, uint32_t ADC_IT) |
Checks whether the specified ADC interrupt has occurred or not. More... | |
FlagStatus | ADC_GetStartConversionStatus (ADC_TypeDef *ADCx) |
Gets the selected ADC start conversion Status. More... | |
FlagStatus | ADC_GetStartInjectedConversionStatus (ADC_TypeDef *ADCx) |
Gets the selected ADC Software start injected conversion Status. More... | |
void | ADC_Init (ADC_TypeDef *ADCx, ADC_InitTypeDef *ADC_InitStruct) |
Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct. More... | |
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. More... | |
void | ADC_InjectedDiscModeCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the discontinuous mode for injected group channel for the specified ADC. More... | |
void | ADC_InjectedInit (ADC_TypeDef *ADCx, ADC_InjectedInitTypeDef *ADC_InjectedInitStruct) |
Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct. More... | |
void | ADC_InjectedStructInit (ADC_InjectedInitTypeDef *ADC_InjectedInitStruct) |
Fills each ADC_InjectedInitStruct member with its default value. More... | |
void | ADC_ITConfig (ADC_TypeDef *ADCx, uint32_t ADC_IT, FunctionalState NewState) |
Enables or disables the specified ADC interrupts. More... | |
void | ADC_RegularChannelConfig (ADC_TypeDef *ADCx, uint8_t ADC_Channel, uint8_t Rank, uint8_t ADC_SampleTime) |
Configures for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. More... | |
void | ADC_RegularChannelSequencerLengthConfig (ADC_TypeDef *ADCx, uint8_t SequencerLength) |
Sets the ADC regular channel sequence lenght. More... | |
void | ADC_SelectCalibrationMode (ADC_TypeDef *ADCx, uint32_t ADC_CalibrationMode) |
Select the ADC calibration mode. More... | |
void | ADC_SelectDifferentialMode (ADC_TypeDef *ADCx, uint8_t ADC_Channel, FunctionalState NewState) |
Selectes the differential mode for a specific channel. More... | |
void | ADC_SelectQueueOfContextMode (ADC_TypeDef *ADCx, FunctionalState NewState) |
Selects the Queue Of Context Mode for injected channels. More... | |
void | ADC_SetCalibrationValue (ADC_TypeDef *ADCx, uint32_t ADC_Calibration) |
Sets the ADCx calibration register. More... | |
void | ADC_SetChannelOffset1 (ADC_TypeDef *ADCx, uint8_t ADC_Channel, uint16_t Offset) |
Set the ADC channels conversion value offset1. More... | |
void | ADC_SetChannelOffset2 (ADC_TypeDef *ADCx, uint8_t ADC_Channel, uint16_t Offset) |
Set the ADC channels conversion value offset2. More... | |
void | ADC_SetChannelOffset3 (ADC_TypeDef *ADCx, uint8_t ADC_Channel, uint16_t Offset) |
Set the ADC channels conversion value offset3. More... | |
void | ADC_SetChannelOffset4 (ADC_TypeDef *ADCx, uint8_t ADC_Channel, uint16_t Offset) |
Set the ADC channels conversion value offset4. More... | |
void | ADC_StartCalibration (ADC_TypeDef *ADCx) |
Starts the selected ADC calibration process. More... | |
void | ADC_StartConversion (ADC_TypeDef *ADCx) |
Enables or disables the selected ADC start conversion . More... | |
void | ADC_StartInjectedConversion (ADC_TypeDef *ADCx) |
Enables or disables the selected ADC start of the injected channels conversion. More... | |
void | ADC_StopConversion (ADC_TypeDef *ADCx) |
Stops the selected ADC ongoing conversion. More... | |
void | ADC_StopInjectedConversion (ADC_TypeDef *ADCx) |
Stops the selected ADC ongoing injected conversion. More... | |
void | ADC_StructInit (ADC_InitTypeDef *ADC_InitStruct) |
Fills each ADC_InitStruct member with its default value. More... | |
void | ADC_TempSensorCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the temperature sensor channel. More... | |
void | ADC_VbatCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the Vbat channel. More... | |
void | ADC_VoltageRegulatorCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the specified ADC Voltage Regulator. More... | |
void | ADC_VrefintCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the Vrefint channel. More... | |
#define IS_ADC_ALL_PERIPH | ( | PERIPH | ) |
Definition at line 83 of file stm32f10x_adc.h.
#define IS_ADC_ALL_PERIPH | ( | PERIPH | ) |
Definition at line 108 of file stm32f4xx_adc.h.
#define IS_ADC_ALL_PERIPH | ( | PERIPH | ) |
Definition at line 130 of file stm32f30x_adc.h.
#define IS_ADC_DMA_PERIPH | ( | PERIPH | ) |
Definition at line 87 of file stm32f10x_adc.h.
#define IS_ADC_DMA_PERIPH | ( | PERIPH | ) |
Definition at line 135 of file stm32f30x_adc.h.
void ADC_AnalogWatchdog1SingleChannelConfig | ( | ADC_TypeDef * | ADCx, |
uint8_t | ADC_Channel | ||
) |
Configures the analog watchdog 2 guarded single channel.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_Channel | the ADC channel to configure for the analog watchdog. This parameter can be one of the following values:
|
None |
Definition at line 808 of file stm32f30x_adc.c.
void ADC_AnalogWatchdog1ThresholdsConfig | ( | ADC_TypeDef * | ADCx, |
uint16_t | HighThreshold, | ||
uint16_t | LowThreshold | ||
) |
Configures the high and low thresholds of the analog watchdog1.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
HighThreshold | the ADC analog watchdog High threshold value. This parameter must be a 12bit value. |
LowThreshold | the ADC analog watchdog Low threshold value. This parameter must be a 12bit value. |
None |
Definition at line 719 of file stm32f30x_adc.c.
void ADC_AnalogWatchdog2SingleChannelConfig | ( | ADC_TypeDef * | ADCx, |
uint8_t | ADC_Channel | ||
) |
Configures the analog watchdog 2 guarded single channel.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_Channel | the ADC channel to configure for the analog watchdog. This parameter can be one of the following values:
|
None |
Definition at line 849 of file stm32f30x_adc.c.
void ADC_AnalogWatchdog2ThresholdsConfig | ( | ADC_TypeDef * | ADCx, |
uint8_t | HighThreshold, | ||
uint8_t | LowThreshold | ||
) |
Configures the high and low thresholds of the analog watchdog2.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
HighThreshold | the ADC analog watchdog High threshold value. This parameter must be a 8bit value. |
LowThreshold | the ADC analog watchdog Low threshold value. This parameter must be a 8bit value. |
None |
Definition at line 744 of file stm32f30x_adc.c.
void ADC_AnalogWatchdog3SingleChannelConfig | ( | ADC_TypeDef * | ADCx, |
uint8_t | ADC_Channel | ||
) |
Configures the analog watchdog 3 guarded single channel.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_Channel | the ADC channel to configure for the analog watchdog. This parameter can be one of the following values:
|
None |
Definition at line 890 of file stm32f30x_adc.c.
void ADC_AnalogWatchdog3ThresholdsConfig | ( | ADC_TypeDef * | ADCx, |
uint8_t | HighThreshold, | ||
uint8_t | LowThreshold | ||
) |
Configures the high and low thresholds of the analog watchdog3.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
HighThreshold | the ADC analog watchdog High threshold value. This parameter must be a 8bit value. |
LowThreshold | the ADC analog watchdog Low threshold value. This parameter must be a 8bit value. |
None |
Definition at line 768 of file stm32f30x_adc.c.
void ADC_AnalogWatchdogCmd | ( | ADC_TypeDef * | ADCx, |
uint32_t | ADC_AnalogWatchdog | ||
) |
Enables or disables the analog watchdog on single/all regular or injected channels.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
ADC_AnalogWatchdog | the ADC analog watchdog configuration. This parameter can be one of the following values:
|
None |
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_AnalogWatchdog | the ADC analog watchdog configuration. This parameter can be one of the following values:
|
None |
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
ADC_AnalogWatchdog | the ADC analog watchdog configuration. This parameter can be one of the following values:
|
None |
Definition at line 455 of file stm32f4xx_adc.c.
void ADC_AutoDelayCmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Selects the ADC Delayed Conversion Mode.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the ADC Delayed Conversion Mode. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 627 of file stm32f30x_adc.c.
void ADC_AutoInjectedConvCmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the selected ADC automatic injected group conversion after regular one.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
NewState | new state of the selected ADC auto injected conversion This parameter can be: ENABLE or DISABLE. |
None |
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. |
None |
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
NewState | new state of the selected ADC auto injected conversion This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 1419 of file stm32f4xx_adc.c.
void ADC_ChannelOffset1Cmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the Offset1.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the ADCx offset1. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 1628 of file stm32f30x_adc.c.
void ADC_ChannelOffset2Cmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the Offset2.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the ADCx offset2. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 1653 of file stm32f30x_adc.c.
void ADC_ChannelOffset3Cmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the Offset3.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the ADCx offset3. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 1678 of file stm32f30x_adc.c.
void ADC_ChannelOffset4Cmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the Offset4.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the ADCx offset4. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 1703 of file stm32f30x_adc.c.
void ADC_ClearCommonFlag | ( | ADC_TypeDef * | ADCx, |
uint32_t | ADC_FLAG | ||
) |
Clears the ADCx's pending flags.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_FLAG | specifies the master or slave flag to clear. This parameter can be one of the following values:
|
None |
Definition at line 2313 of file stm32f30x_adc.c.
void ADC_ClearFlag | ( | ADC_TypeDef * | ADCx, |
uint32_t | ADC_FLAG | ||
) |
Clears the ADCx's pending flags.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_FLAG | specifies the flag to clear. This parameter can be any combination of the following values:
|
None |
Definition at line 2214 of file stm32f30x_adc.c.
void ADC_ClearITPendingBit | ( | ADC_TypeDef * | ADCx, |
uint32_t | ADC_IT | ||
) |
Clears the ADCx's interrupt pending bits.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
ADC_IT | specifies the ADC interrupt pending bit to clear. This parameter can be any combination of the following values:
|
None |
Definition at line 2389 of file stm32f30x_adc.c.
void ADC_Cmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the specified ADC peripheral.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
NewState | new state of the ADCx peripheral. This parameter can be: ENABLE or DISABLE. |
None |
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the ADCx peripheral. This parameter can be: ENABLE or DISABLE. |
None |
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
NewState | new state of the ADCx peripheral. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 399 of file stm32f4xx_adc.c.
void ADC_CommonInit | ( | ADC_TypeDef * | ADCx, |
ADC_CommonInitTypeDef * | ADC_CommonInitStruct | ||
) |
Initializes the ADCs peripherals according to the specified parameters in the ADC_CommonInitStruct.
ADCx | where x can be 1 or 4 to select the ADC peripheral. |
ADC_CommonInitStruct | pointer to an ADC_CommonInitTypeDef structure that contains the configuration information for All ADCs peripherals. |
None |
Definition at line 295 of file stm32f30x_adc.c.
void ADC_CommonStructInit | ( | ADC_CommonInitTypeDef * | ADC_CommonInitStruct | ) |
Fills each ADC_CommonInitStruct member with its default value.
ADC_CommonInitStruct | pointer to an ADC_CommonInitTypeDef structure which will be initialized. |
None |
Definition at line 377 of file stm32f4xx_adc.c.
void ADC_DeInit | ( | ADC_TypeDef * | ADCx | ) |
Deinitializes the ADCx peripheral registers to their default reset values.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
None |
ADCx | where x can be 1, 2,3 or 4 to select the ADC peripheral. |
None |
Definition at line 179 of file stm32f10x_adc.c.
void ADC_DisableCmd | ( | ADC_TypeDef * | ADCx | ) |
ADC Disable Command.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
None |
Definition at line 489 of file stm32f30x_adc.c.
void ADC_DiscModeChannelCountConfig | ( | ADC_TypeDef * | ADCx, |
uint8_t | Number | ||
) |
Configures the discontinuous mode for the selected ADC regular group channel.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
Number | specifies the discontinuous mode regular channel count value. This number must be between 1 and 8. |
None |
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
Number | specifies the discontinuous mode regular channel count value. This number must be between 1 and 8. |
None |
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
Number | specifies the discontinuous mode regular channel count value. This number must be between 1 and 8. |
None |
Definition at line 926 of file stm32f4xx_adc.c.
void ADC_DiscModeCmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the discontinuous mode on regular group channel for the specified ADC.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
NewState | new state of the selected ADC discontinuous mode on regular group channel. This parameter can be: ENABLE or DISABLE. |
None |
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 regular group channel. This parameter can be: ENABLE or DISABLE. |
None |
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
NewState | new state of the selected ADC discontinuous mode on regular group channel. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 958 of file stm32f4xx_adc.c.
void ADC_DMACmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the specified ADC DMA request.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
NewState | new state of the selected ADC DMA transfer. This parameter can be: ENABLE or DISABLE. |
None |
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the selected ADC DMA transfer. This parameter can be: ENABLE or DISABLE. |
None |
ADCx | where x can be 1 or 3 to select the ADC peripheral. Note: ADC2 hasn't a DMA capability. |
NewState | new state of the selected ADC DMA transfer. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 1048 of file stm32f4xx_adc.c.
void ADC_DMAConfig | ( | ADC_TypeDef * | ADCx, |
uint32_t | ADC_DMAMode | ||
) |
Configure ADC DMA mode.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_DMAMode | select the ADC DMA mode. This parameter can be one of the following values:
|
None |
Definition at line 1780 of file stm32f30x_adc.c.
void ADC_ExternalTriggerConfig | ( | ADC_TypeDef * | ADCx, |
uint16_t | ADC_ExternalTrigConvEvent, | ||
uint16_t | ADC_ExternalTrigEventEdge | ||
) |
External Trigger Enable and Polarity Selection for regular channels.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_ExternalTrigConvEvent | ADC external Trigger source. This parameter can be one of the following values:
|
ADC_ExternalTrigEventEdge | ADC external Trigger Polarity. This parameter can be one of the following values:
|
None |
Definition at line 1288 of file stm32f30x_adc.c.
FlagStatus ADC_GetCalibrationStatus | ( | ADC_TypeDef * | ADCx | ) |
Gets the selected ADC calibration status.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
The | new state of ADC calibration (SET or RESET). |
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
The | new state of ADC calibration (SET or RESET). |
Definition at line 430 of file stm32f10x_adc.c.
uint32_t ADC_GetCalibrationValue | ( | ADC_TypeDef * | ADCx | ) |
Returns the ADCx calibration value.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
None |
Definition at line 416 of file stm32f30x_adc.c.
FlagStatus ADC_GetCommonFlagStatus | ( | ADC_TypeDef * | ADCx, |
uint32_t | ADC_FLAG | ||
) |
Checks whether the specified ADC flag is set or not.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_FLAG | specifies the master or slave flag to check. This parameter can be one of the following values:
|
The | new state of ADC_FLAG (SET or RESET). |
Definition at line 2252 of file stm32f30x_adc.c.
uint16_t ADC_GetConversionValue | ( | ADC_TypeDef * | ADCx | ) |
Returns the last ADCx conversion result data for regular channel.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
The | Data conversion value. |
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
The | Data conversion value. |
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
The | Data conversion value. |
Definition at line 981 of file stm32f4xx_adc.c.
FlagStatus ADC_GetDisableCmdStatus | ( | ADC_TypeDef * | ADCx | ) |
Gets the selected ADC disable command Status.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
The | new state of ADC ADC disable command (SET or RESET). |
Definition at line 504 of file stm32f30x_adc.c.
uint32_t ADC_GetDualModeConversionValue | ( | ADC_TypeDef * | ADCx | ) |
Returns the last ADC1, ADC2, ADC3 and ADC4 regular conversions results data in the selected dual mode.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
The | Data conversion value. |
Definition at line 1428 of file stm32f30x_adc.c.
FlagStatus ADC_GetFlagStatus | ( | ADC_TypeDef * | ADCx, |
uint32_t | ADC_FLAG | ||
) |
Checks whether the specified ADC flag is set or not.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of ADC_FLAG (SET or RESET). |
Definition at line 2174 of file stm32f30x_adc.c.
uint16_t ADC_GetInjectedConversionValue | ( | ADC_TypeDef * | ADCx, |
uint8_t | ADC_InjectedChannel | ||
) |
Returns the ADC injected channel conversion result.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
ADC_InjectedChannel | the converted ADC injected channel. This parameter can be one of the following values:
|
The | Data conversion value. |
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:
|
The | Data conversion value. |
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
ADC_InjectedChannel | the converted ADC injected channel. This parameter can be one of the following values:
|
The | Data conversion value. |
Definition at line 1473 of file stm32f4xx_adc.c.
ITStatus ADC_GetITStatus | ( | ADC_TypeDef * | ADCx, |
uint32_t | ADC_IT | ||
) |
Checks whether the specified ADC interrupt has occurred or not.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
ADC_IT | specifies the ADC interrupt source to check. This parameter can be one of the following values:
|
The | new state of ADC_IT (SET or RESET). |
Definition at line 2349 of file stm32f30x_adc.c.
FlagStatus ADC_GetStartConversionStatus | ( | ADC_TypeDef * | ADCx | ) |
Gets the selected ADC start conversion Status.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
The | new state of ADC start conversion (SET or RESET). |
Definition at line 1319 of file stm32f30x_adc.c.
FlagStatus ADC_GetStartInjectedConversionStatus | ( | ADC_TypeDef * | ADCx | ) |
Gets the selected ADC Software start injected conversion Status.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
The | new state of ADC start injected conversion (SET or RESET). |
Definition at line 1921 of file stm32f30x_adc.c.
void ADC_Init | ( | ADC_TypeDef * | ADCx, |
ADC_InitTypeDef * | ADC_InitStruct | ||
) |
Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
ADC_InitStruct | pointer to an ADC_InitTypeDef structure that contains the configuration information for the specified ADC peripheral. |
None |
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_InitStruct | pointer to an ADC_InitTypeDef structure that contains the configuration information for the specified ADC peripheral. |
None |
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
ADC_InitStruct | pointer to an ADC_InitTypeDef structure that contains the configuration information for the specified ADC peripheral. |
None |
Definition at line 235 of file stm32f4xx_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.
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_SampleTime | The sample time value to be set for the selected channel. This parameter can be one of the following values:
|
None |
Definition at line 1853 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.
ADCx | where x can be 1, 2 or 3 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. |
None |
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. |
None |
ADCx | where x can be 1, 2 or 3 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. |
None |
Definition at line 1445 of file stm32f4xx_adc.c.
void ADC_InjectedInit | ( | ADC_TypeDef * | ADCx, |
ADC_InjectedInitTypeDef * | ADC_InjectedInitStruct | ||
) |
Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_InjectInitStruct | pointer to an ADC_InjecInitTypeDef structure that contains the configuration information for the specified ADC injected channel. |
None |
Definition at line 239 of file stm32f30x_adc.c.
void ADC_InjectedStructInit | ( | ADC_InjectedInitTypeDef * | ADC_InjectedInitStruct | ) |
Fills each ADC_InjectedInitStruct member with its default value.
ADC_InjectedInitStruct | : pointer to an ADC_InjectedInitTypeDef structure which will be initialized. |
None |
Definition at line 276 of file stm32f30x_adc.c.
void ADC_ITConfig | ( | ADC_TypeDef * | ADCx, |
uint32_t | ADC_IT, | ||
FunctionalState | NewState | ||
) |
Enables or disables the specified ADC interrupts.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
ADC_IT | specifies the ADC interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
|
NewState | new state of the specified ADC interrupts. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 2137 of file stm32f30x_adc.c.
void ADC_RegularChannelConfig | ( | ADC_TypeDef * | ADCx, |
uint8_t | ADC_Channel, | ||
uint8_t | Rank, | ||
uint8_t | ADC_SampleTime | ||
) |
Configures for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
ADC_Channel | the ADC channel to configure. This parameter can be one of the following values:
|
Rank | The rank in the regular group sequencer. This parameter must be between 1 to 16. |
ADC_SampleTime | The sample time value to be set for the selected channel. This parameter can be one of the following values:
|
None |
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:
|
Rank | The rank in the regular group sequencer. This parameter must be between 1 to 16. |
ADC_SampleTime | The sample time value to be set for the selected channel. This parameter can be one of the following values:
|
None |
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
ADC_Channel | the ADC channel to configure. This parameter can be one of the following values:
|
Rank | The rank in the regular group sequencer. This parameter must be between 1 to 16. |
ADC_SampleTime | The sample time value to be set for the selected channel. This parameter can be one of the following values:
|
None |
Definition at line 711 of file stm32f4xx_adc.c.
void ADC_RegularChannelSequencerLengthConfig | ( | ADC_TypeDef * | ADCx, |
uint8_t | SequencerLength | ||
) |
Sets the ADC regular channel sequence lenght.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
SequenceLength | The Regular sequence length. This parameter must be between 1 to 16. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 1248 of file stm32f30x_adc.c.
void ADC_SelectCalibrationMode | ( | ADC_TypeDef * | ADCx, |
uint32_t | ADC_CalibrationMode | ||
) |
Select the ADC calibration mode.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_CalibrationMode | the ADC calibration mode. This parameter can be one of the following values:
|
None |
Definition at line 448 of file stm32f30x_adc.c.
void ADC_SelectDifferentialMode | ( | ADC_TypeDef * | ADCx, |
uint8_t | ADC_Channel, | ||
FunctionalState | NewState | ||
) |
Selectes the differential mode for a specific channel.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
ADC_Channel | the ADC channel to configure for the analog watchdog. This parameter can be one of the following values:
|
None |
Definition at line 576 of file stm32f30x_adc.c.
void ADC_SelectQueueOfContextMode | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Selects the Queue Of Context Mode for injected channels.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the Queue Of Context Mode. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 602 of file stm32f30x_adc.c.
void ADC_SetCalibrationValue | ( | ADC_TypeDef * | ADCx, |
uint32_t | ADC_Calibration | ||
) |
Sets the ADCx calibration register.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
None |
Definition at line 430 of file stm32f30x_adc.c.
void ADC_SetChannelOffset1 | ( | ADC_TypeDef * | ADCx, |
uint8_t | ADC_Channel, | ||
uint16_t | Offset | ||
) |
Set the ADC channels conversion value offset1.
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:
|
Offset | the offset value for the selected ADC Channel This parameter must be a 12bit value. |
None |
Definition at line 1476 of file stm32f30x_adc.c.
void ADC_SetChannelOffset2 | ( | ADC_TypeDef * | ADCx, |
uint8_t | ADC_Channel, | ||
uint16_t | Offset | ||
) |
Set the ADC channels conversion value offset2.
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:
|
Offset | the offset value for the selected ADC Channel This parameter must be a 12bit value. |
None |
Definition at line 1519 of file stm32f30x_adc.c.
void ADC_SetChannelOffset3 | ( | ADC_TypeDef * | ADCx, |
uint8_t | ADC_Channel, | ||
uint16_t | Offset | ||
) |
Set the ADC channels conversion value offset3.
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:
|
Offset | the offset value for the selected ADC Channel This parameter must be a 12bit value. |
None |
Definition at line 1562 of file stm32f30x_adc.c.
void ADC_SetChannelOffset4 | ( | ADC_TypeDef * | ADCx, |
uint8_t | ADC_Channel, | ||
uint16_t | Offset | ||
) |
Set the ADC channels conversion value offset4.
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:
|
Offset | the offset value for the selected ADC Channel This parameter must be a 12bit value. |
None |
Definition at line 1605 of file stm32f30x_adc.c.
void ADC_StartCalibration | ( | ADC_TypeDef * | ADCx | ) |
Starts the selected ADC calibration process.
ADCx | where x can be 1, 2 or 3 to select the ADC peripheral. |
None |
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
None |
Definition at line 417 of file stm32f10x_adc.c.
void ADC_StartConversion | ( | ADC_TypeDef * | ADCx | ) |
Enables or disables the selected ADC start conversion .
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
None |
Definition at line 1305 of file stm32f30x_adc.c.
void ADC_StartInjectedConversion | ( | ADC_TypeDef * | ADCx | ) |
Enables or disables the selected ADC start of the injected channels conversion.
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. |
None |
Definition at line 1892 of file stm32f30x_adc.c.
void ADC_StopConversion | ( | ADC_TypeDef * | ADCx | ) |
Stops the selected ADC ongoing conversion.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
None |
Definition at line 1344 of file stm32f30x_adc.c.
void ADC_StopInjectedConversion | ( | ADC_TypeDef * | ADCx | ) |
Stops the selected ADC ongoing injected conversion.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
None |
Definition at line 1907 of file stm32f30x_adc.c.
void ADC_StructInit | ( | ADC_InitTypeDef * | ADC_InitStruct | ) |
Fills each ADC_InitStruct member with its default value.
ADC_InitStruct | pointer to an ADC_InitTypeDef structure which will be initialized. |
None |
ADC_InitStruct | : pointer to an ADC_InitTypeDef structure which will be initialized. |
None |
ADC_InitStruct | : pointer to an ADC_InitTypeDef structure which will be initialized. |
None |
Definition at line 310 of file stm32f4xx_adc.c.
void ADC_TempSensorCmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the temperature sensor channel.
ADCx | where x can be 1 to select the ADC peripheral. |
NewState | new state of the temperature sensor. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 952 of file stm32f30x_adc.c.
void ADC_VbatCmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the Vbat channel.
ADCx | where x can be 1 to select the ADC peripheral. |
NewState | new state of the Vbat. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 1024 of file stm32f30x_adc.c.
void ADC_VoltageRegulatorCmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the specified ADC Voltage Regulator.
ADCx | where x can be 1, 2, 3 or 4 to select the ADC peripheral. |
NewState | new state of the ADCx Voltage Regulator. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 532 of file stm32f30x_adc.c.
void ADC_VrefintCmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the Vrefint channel.
ADCx | where x can be 1 or 4 to select the ADC peripheral. |
NewState | new state of the Vrefint. This parameter can be: ENABLE or DISABLE. |
None |
Definition at line 979 of file stm32f30x_adc.c.