Modules | Macros | Functions
Collaboration diagram for ADC_Exported_Constants:

Modules

 ADC_Common_mode
 
 ADC_Prescaler
 
 ADC_Direct_memory_access_mode_for_multi_mode
 
 ADC_delay_between_2_sampling_phases
 
 ADC_resolution
 
 ADC_external_trigger_edge_for_regular_channels_conversion
 
 ADC_extrenal_trigger_sources_for_regular_channels_conversion
 
 ADC_data_align
 
 ADC_channels
 
 ADC_sampling_times
 
 ADC_external_trigger_edge_for_injected_channels_conversion
 
 ADC_extrenal_trigger_sources_for_injected_channels_conversion
 
 ADC_injected_channel_selection
 
 ADC_analog_watchdog_selection
 
 ADC_interrupts_definition
 
 ADC_flags_definition
 
 ADC_thresholds
 
 ADC_injected_offset
 
 ADC_injected_length
 
 ADC_injected_rank
 
 ADC_regular_length
 
 ADC_regular_rank
 
 ADC_regular_discontinuous_mode_number
 
 ADC_mode
 
 ADC_external_trigger_sources_for_regular_channels_conversion
 
 ADC_sampling_time
 
 ADC_external_trigger_sources_for_injected_channels_conversion
 
 ADC_ContinuousConvMode
 
 ADC_OverunMode
 
 ADC_AutoInjecMode
 
 ADC_external_trigger_edge_for_Injected_channels_conversion
 

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...
 

Detailed Description

Macro Definition Documentation

#define IS_ADC_ALL_PERIPH (   PERIPH)
Value:
(((PERIPH) == ADC1) || \
((PERIPH) == ADC2) || \
((PERIPH) == ADC3))
#define ADC3
Definition: stm32f4xx.h:2085
#define ADC2
Definition: stm32f4xx.h:2084
#define ADC1
Definition: stm32f4xx.h:2083

Definition at line 83 of file stm32f10x_adc.h.

#define IS_ADC_ALL_PERIPH (   PERIPH)
Value:
(((PERIPH) == ADC1) || \
((PERIPH) == ADC2) || \
((PERIPH) == ADC3))
#define ADC3
Definition: stm32f4xx.h:2085
#define ADC2
Definition: stm32f4xx.h:2084
#define ADC1
Definition: stm32f4xx.h:2083

Definition at line 108 of file stm32f4xx_adc.h.

#define IS_ADC_ALL_PERIPH (   PERIPH)
Value:
(((PERIPH) == ADC1) || \
((PERIPH) == ADC2) || \
((PERIPH) == ADC3) || \
((PERIPH) == ADC4))
#define ADC3
Definition: stm32f4xx.h:2085
#define ADC2
Definition: stm32f4xx.h:2084
#define ADC1
Definition: stm32f4xx.h:2083

Definition at line 130 of file stm32f30x_adc.h.

#define IS_ADC_DMA_PERIPH (   PERIPH)
Value:
(((PERIPH) == ADC1) || \
((PERIPH) == ADC3))
#define ADC3
Definition: stm32f4xx.h:2085
#define ADC1
Definition: stm32f4xx.h:2083

Definition at line 87 of file stm32f10x_adc.h.

#define IS_ADC_DMA_PERIPH (   PERIPH)
Value:
(((PERIPH) == ADC1) || \
((PERIPH) == ADC2) || \
((PERIPH) == ADC3) || \
((PERIPH) == ADC4))
#define ADC3
Definition: stm32f4xx.h:2085
#define ADC2
Definition: stm32f4xx.h:2084
#define ADC1
Definition: stm32f4xx.h:2083

Definition at line 135 of file stm32f30x_adc.h.

Function Documentation

void ADC_AnalogWatchdog1SingleChannelConfig ( ADC_TypeDef ADCx,
uint8_t  ADC_Channel 
)

Configures the analog watchdog 2 guarded single channel.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_Channelthe ADC channel to configure for the analog watchdog. This parameter can be one of the following values:
  • ADC_Channel_1: ADC Channel1 selected
  • ADC_Channel_2: ADC Channel2 selected
  • ADC_Channel_3: ADC Channel3 selected
  • ADC_Channel_4: ADC Channel4 selected
  • ADC_Channel_5: ADC Channel5 selected
  • ADC_Channel_6: ADC Channel6 selected
  • ADC_Channel_7: ADC Channel7 selected
  • ADC_Channel_8: ADC Channel8 selected
  • ADC_Channel_9: ADC Channel9 selected
  • ADC_Channel_10: ADC Channel10 selected
  • ADC_Channel_11: ADC Channel11 selected
  • ADC_Channel_12: ADC Channel12 selected
  • ADC_Channel_13: ADC Channel13 selected
  • ADC_Channel_14: ADC Channel14 selected
  • ADC_Channel_15: ADC Channel15 selected
  • ADC_Channel_16: ADC Channel16 selected
  • ADC_Channel_17: ADC Channel17 selected
  • ADC_Channel_18: ADC Channel18 selected
Return 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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
HighThresholdthe ADC analog watchdog High threshold value. This parameter must be a 12bit value.
LowThresholdthe ADC analog watchdog Low threshold value. This parameter must be a 12bit value.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_Channelthe ADC channel to configure for the analog watchdog. This parameter can be one of the following values:
  • ADC_Channel_1: ADC Channel1 selected
  • ADC_Channel_2: ADC Channel2 selected
  • ADC_Channel_3: ADC Channel3 selected
  • ADC_Channel_4: ADC Channel4 selected
  • ADC_Channel_5: ADC Channel5 selected
  • ADC_Channel_6: ADC Channel6 selected
  • ADC_Channel_7: ADC Channel7 selected
  • ADC_Channel_8: ADC Channel8 selected
  • ADC_Channel_9: ADC Channel9 selected
  • ADC_Channel_10: ADC Channel10 selected
  • ADC_Channel_11: ADC Channel11 selected
  • ADC_Channel_12: ADC Channel12 selected
  • ADC_Channel_13: ADC Channel13 selected
  • ADC_Channel_14: ADC Channel14 selected
  • ADC_Channel_15: ADC Channel15 selected
  • ADC_Channel_16: ADC Channel16 selected
  • ADC_Channel_17: ADC Channel17 selected
  • ADC_Channel_18: ADC Channel18 selected
Return 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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
HighThresholdthe ADC analog watchdog High threshold value. This parameter must be a 8bit value.
LowThresholdthe ADC analog watchdog Low threshold value. This parameter must be a 8bit value.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_Channelthe ADC channel to configure for the analog watchdog. This parameter can be one of the following values:
  • ADC_Channel_1: ADC Channel1 selected
  • ADC_Channel_2: ADC Channel2 selected
  • ADC_Channel_3: ADC Channel3 selected
  • ADC_Channel_4: ADC Channel4 selected
  • ADC_Channel_5: ADC Channel5 selected
  • ADC_Channel_6: ADC Channel6 selected
  • ADC_Channel_7: ADC Channel7 selected
  • ADC_Channel_8: ADC Channel8 selected
  • ADC_Channel_9: ADC Channel9 selected
  • ADC_Channel_10: ADC Channel10 selected
  • ADC_Channel_11: ADC Channel11 selected
  • ADC_Channel_12: ADC Channel12 selected
  • ADC_Channel_13: ADC Channel13 selected
  • ADC_Channel_14: ADC Channel14 selected
  • ADC_Channel_15: ADC Channel15 selected
  • ADC_Channel_16: ADC Channel16 selected
  • ADC_Channel_17: ADC Channel17 selected
  • ADC_Channel_18: ADC Channel18 selected
Return 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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
HighThresholdthe ADC analog watchdog High threshold value. This parameter must be a 8bit value.
LowThresholdthe ADC analog watchdog Low threshold value. This parameter must be a 8bit value.
Return values
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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
ADC_AnalogWatchdogthe ADC analog watchdog configuration. This parameter can be one of the following values:
  • ADC_AnalogWatchdog_SingleRegEnable: Analog watchdog on a single regular channel
  • ADC_AnalogWatchdog_SingleInjecEnable: Analog watchdog on a single injected channel
  • ADC_AnalogWatchdog_SingleRegOrInjecEnable: Analog watchdog on a single regular or injected channel
  • ADC_AnalogWatchdog_AllRegEnable: Analog watchdog on all regular channel
  • ADC_AnalogWatchdog_AllInjecEnable: Analog watchdog on all injected channel
  • ADC_AnalogWatchdog_AllRegAllInjecEnable: Analog watchdog on all regular and injected channels
  • ADC_AnalogWatchdog_None: No channel guarded by the analog watchdog
Return values
None
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_AnalogWatchdogthe ADC analog watchdog configuration. This parameter can be one of the following values:
  • ADC_AnalogWatchdog_SingleRegEnable: Analog watchdog on a single regular channel
  • ADC_AnalogWatchdog_SingleInjecEnable: Analog watchdog on a single injected channel
  • ADC_AnalogWatchdog_SingleRegOrInjecEnable: Analog watchdog on a single regular or injected channel
  • ADC_AnalogWatchdog_AllRegEnable: Analog watchdog on all regular channel
  • ADC_AnalogWatchdog_AllInjecEnable: Analog watchdog on all injected channel
  • ADC_AnalogWatchdog_AllRegAllInjecEnable: Analog watchdog on all regular and injected channels
  • ADC_AnalogWatchdog_None: No channel guarded by the analog watchdog
Return values
None
Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
ADC_AnalogWatchdogthe ADC analog watchdog configuration. This parameter can be one of the following values:
  • ADC_AnalogWatchdog_SingleRegEnable: Analog watchdog on a single regular channel
  • ADC_AnalogWatchdog_SingleInjecEnable: Analog watchdog on a single injected channel
  • ADC_AnalogWatchdog_SingleRegOrInjecEnable: Analog watchdog on a single regular or injected channel
  • ADC_AnalogWatchdog_AllRegEnable: Analog watchdog on all regular channel
  • ADC_AnalogWatchdog_AllInjecEnable: Analog watchdog on all injected channel
  • ADC_AnalogWatchdog_AllRegAllInjecEnable: Analog watchdog on all regular and injected channels
  • ADC_AnalogWatchdog_None: No channel guarded by the analog watchdog
Return 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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the ADC Delayed Conversion Mode. This parameter can be: ENABLE or DISABLE.
Return values
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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
NewStatenew state of the selected ADC auto injected conversion This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the selected ADC auto injected conversion This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
NewStatenew state of the selected ADC auto injected conversion This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 1419 of file stm32f4xx_adc.c.

void ADC_ChannelOffset1Cmd ( ADC_TypeDef ADCx,
FunctionalState  NewState 
)

Enables or disables the Offset1.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the ADCx offset1. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 1628 of file stm32f30x_adc.c.

void ADC_ChannelOffset2Cmd ( ADC_TypeDef ADCx,
FunctionalState  NewState 
)

Enables or disables the Offset2.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the ADCx offset2. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 1653 of file stm32f30x_adc.c.

void ADC_ChannelOffset3Cmd ( ADC_TypeDef ADCx,
FunctionalState  NewState 
)

Enables or disables the Offset3.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the ADCx offset3. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 1678 of file stm32f30x_adc.c.

void ADC_ChannelOffset4Cmd ( ADC_TypeDef ADCx,
FunctionalState  NewState 
)

Enables or disables the Offset4.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the ADCx offset4. This parameter can be: ENABLE or DISABLE.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_FLAGspecifies the master or slave flag to clear. This parameter can be one of the following values:
  • ADC_FLAG_MSTRDY: ADC master Ready (ADRDY) flag
  • ADC_FLAG_MSTEOSMP: ADC master End of Sampling flag
  • ADC_FLAG_MSTEOC: ADC master End of Regular Conversion flag
  • ADC_FLAG_MSTEOS: ADC master End of Regular sequence of Conversions flag
  • ADC_FLAG_MSTOVR: ADC master overrun flag
  • ADC_FLAG_MSTJEOC: ADC master End of Injected Conversion flag
  • ADC_FLAG_MSTJEOS: ADC master End of Injected sequence of Conversions flag
  • ADC_FLAG_MSTAWD1: ADC master Analog watchdog 1 flag
  • ADC_FLAG_MSTAWD2: ADC master Analog watchdog 2 flag
  • ADC_FLAG_MSTAWD3: ADC master Analog watchdog 3 flag
  • ADC_FLAG_MSTJQOVF: ADC master Injected Context Queue Overflow flag
  • ADC_FLAG_SLVRDY: ADC slave Ready (ADRDY) flag
  • ADC_FLAG_SLVEOSMP: ADC slave End of Sampling flag
  • ADC_FLAG_SLVEOC: ADC slave End of Regular Conversion flag
  • ADC_FLAG_SLVEOS: ADC slave End of Regular sequence of Conversions flag
  • ADC_FLAG_SLVOVR: ADC slave overrun flag
  • ADC_FLAG_SLVJEOC: ADC slave End of Injected Conversion flag
  • ADC_FLAG_SLVJEOS: ADC slave End of Injected sequence of Conversions flag
  • ADC_FLAG_SLVAWD1: ADC slave Analog watchdog 1 flag
  • ADC_FLAG_SLVAWD2: ADC slave Analog watchdog 2 flag
  • ADC_FLAG_SLVAWD3: ADC slave Analog watchdog 3 flag
  • ADC_FLAG_SLVJQOVF: ADC slave Injected Context Queue Overflow flag
Return 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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_FLAGspecifies the flag to clear. This parameter can be any combination of the following values:
  • ADC_FLAG_RDY: ADC Ready (ADRDY) flag
  • ADC_FLAG_EOSMP: ADC End of Sampling flag
  • ADC_FLAG_EOC: ADC End of Regular Conversion flag
  • ADC_FLAG_EOS: ADC End of Regular sequence of Conversions flag
  • ADC_FLAG_OVR: ADC overrun flag
  • ADC_FLAG_JEOC: ADC End of Injected Conversion flag
  • ADC_FLAG_JEOS: ADC End of Injected sequence of Conversions flag
  • ADC_FLAG_AWD1: ADC Analog watchdog 1 flag
  • ADC_FLAG_AWD2: ADC Analog watchdog 2 flag
  • ADC_FLAG_AWD3: ADC Analog watchdog 3 flag
  • ADC_FLAG_JQOVF: ADC Injected Context Queue Overflow flag
Return 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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
ADC_ITspecifies the ADC interrupt pending bit to clear. This parameter can be any combination of the following values:
  • ADC_IT_RDY: ADC Ready (ADRDY) interrupt source
  • ADC_IT_EOSMP: ADC End of Sampling interrupt source
  • ADC_IT_EOC: ADC End of Regular Conversion interrupt source
  • ADC_IT_EOS: ADC End of Regular sequence of Conversions interrupt source
  • ADC_IT_OVR: ADC overrun interrupt source
  • ADC_IT_JEOC: ADC End of Injected Conversion interrupt source
  • ADC_IT_JEOS: ADC End of Injected sequence of Conversions interrupt source
  • ADC_IT_AWD1: ADC Analog watchdog 1 interrupt source
  • ADC_IT_AWD2: ADC Analog watchdog 2 interrupt source
  • ADC_IT_AWD3: ADC Analog watchdog 3 interrupt source
  • ADC_IT_JQOVF: ADC Injected Context Queue Overflow interrupt source
Return 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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
NewStatenew state of the ADCx peripheral. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the ADCx peripheral. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
NewStatenew state of the ADCx peripheral. This parameter can be: ENABLE or DISABLE.
Return values
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.

Parameters
ADCxwhere x can be 1 or 4 to select the ADC peripheral.
ADC_CommonInitStructpointer to an ADC_CommonInitTypeDef structure that contains the configuration information for All ADCs peripherals.
Return values
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.

Parameters
ADC_CommonInitStructpointer to an ADC_CommonInitTypeDef structure which will be initialized.
Return values
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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
Return values
None
Parameters
ADCxwhere x can be 1, 2,3 or 4 to select the ADC peripheral.
Return values
None

Definition at line 179 of file stm32f10x_adc.c.

void ADC_DisableCmd ( ADC_TypeDef ADCx)

ADC Disable Command.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
Numberspecifies the discontinuous mode regular channel count value. This number must be between 1 and 8.
Return values
None
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Numberspecifies the discontinuous mode regular channel count value. This number must be between 1 and 8.
Return values
None
Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
Numberspecifies the discontinuous mode regular channel count value. This number must be between 1 and 8.
Return values
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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
NewStatenew state of the selected ADC discontinuous mode on regular group channel. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the selected ADC discontinuous mode on regular group channel. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
NewStatenew state of the selected ADC discontinuous mode on regular group channel. This parameter can be: ENABLE or DISABLE.
Return values
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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
NewStatenew state of the selected ADC DMA transfer. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the selected ADC DMA transfer. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
ADCxwhere x can be 1 or 3 to select the ADC peripheral. Note: ADC2 hasn't a DMA capability.
NewStatenew state of the selected ADC DMA transfer. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 1048 of file stm32f4xx_adc.c.

void ADC_DMAConfig ( ADC_TypeDef ADCx,
uint32_t  ADC_DMAMode 
)

Configure ADC DMA mode.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_DMAModeselect the ADC DMA mode. This parameter can be one of the following values:
  • ADC_DMAMode_OneShot: ADC DMA Oneshot mode
  • ADC_DMAMode_Circular: ADC DMA circular mode
Return 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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_ExternalTrigConvEventADC external Trigger source. This parameter can be one of the following values:
  • ADC_ExternalTrigger_Event0: External trigger event 0
  • ADC_ExternalTrigger_Event1: External trigger event 1
  • ADC_ExternalTrigger_Event2: External trigger event 2
  • ADC_ExternalTrigger_Event3: External trigger event 3
  • ADC_ExternalTrigger_Event4: External trigger event 4
  • ADC_ExternalTrigger_Event5: External trigger event 5
  • ADC_ExternalTrigger_Event6: External trigger event 6
  • ADC_ExternalTrigger_Event7: External trigger event 7
  • ADC_ExternalTrigger_Event8: External trigger event 8
  • ADC_ExternalTrigger_Event9: External trigger event 9
  • ADC_ExternalTrigger_Event10: External trigger event 10
  • ADC_ExternalTrigger_Event11: External trigger event 11
  • ADC_ExternalTrigger_Event12: External trigger event 12
  • ADC_ExternalTrigger_Event13: External trigger event 13
  • ADC_ExternalTrigger_Event14: External trigger event 14
  • ADC_ExternalTrigger_Event15: External trigger event 15
ADC_ExternalTrigEventEdgeADC external Trigger Polarity. This parameter can be one of the following values:
  • ADC_ExternalTrigEventEdge_OFF: Hardware trigger detection disabled (conversions can be launched by software)
  • ADC_ExternalTrigEventEdge_RisingEdge: Hardware trigger detection on the rising edge
  • ADC_ExternalTrigEventEdge_FallingEdge: Hardware trigger detection on the falling edge
  • ADC_ExternalTrigEventEdge_BothEdge: Hardware trigger detection on both the rising and falling edges
Return values
None

Definition at line 1288 of file stm32f30x_adc.c.

FlagStatus ADC_GetCalibrationStatus ( ADC_TypeDef ADCx)

Gets the selected ADC calibration status.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
Return values
Thenew state of ADC calibration (SET or RESET).
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
Thenew 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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_FLAGspecifies the master or slave flag to check. This parameter can be one of the following values:
  • ADC_FLAG_MSTRDY: ADC master Ready (ADRDY) flag
  • ADC_FLAG_MSTEOSMP: ADC master End of Sampling flag
  • ADC_FLAG_MSTEOC: ADC master End of Regular Conversion flag
  • ADC_FLAG_MSTEOS: ADC master End of Regular sequence of Conversions flag
  • ADC_FLAG_MSTOVR: ADC master overrun flag
  • ADC_FLAG_MSTJEOC: ADC master End of Injected Conversion flag
  • ADC_FLAG_MSTJEOS: ADC master End of Injected sequence of Conversions flag
  • ADC_FLAG_MSTAWD1: ADC master Analog watchdog 1 flag
  • ADC_FLAG_MSTAWD2: ADC master Analog watchdog 2 flag
  • ADC_FLAG_MSTAWD3: ADC master Analog watchdog 3 flag
  • ADC_FLAG_MSTJQOVF: ADC master Injected Context Queue Overflow flag
  • ADC_FLAG_SLVRDY: ADC slave Ready (ADRDY) flag
  • ADC_FLAG_SLVEOSMP: ADC slave End of Sampling flag
  • ADC_FLAG_SLVEOC: ADC slave End of Regular Conversion flag
  • ADC_FLAG_SLVEOS: ADC slave End of Regular sequence of Conversions flag
  • ADC_FLAG_SLVOVR: ADC slave overrun flag
  • ADC_FLAG_SLVJEOC: ADC slave End of Injected Conversion flag
  • ADC_FLAG_SLVJEOS: ADC slave End of Injected sequence of Conversions flag
  • ADC_FLAG_SLVAWD1: ADC slave Analog watchdog 1 flag
  • ADC_FLAG_SLVAWD2: ADC slave Analog watchdog 2 flag
  • ADC_FLAG_SLVAWD3: ADC slave Analog watchdog 3 flag
  • ADC_FLAG_SLVJQOVF: ADC slave Injected Context Queue Overflow flag
Return values
Thenew 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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
Return values
TheData conversion value.
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
TheData conversion value.
Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
Return values
TheData conversion value.

Definition at line 981 of file stm32f4xx_adc.c.

FlagStatus ADC_GetDisableCmdStatus ( ADC_TypeDef ADCx)

Gets the selected ADC disable command Status.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
Thenew 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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
TheData conversion value.
Note
In dual mode, the value returned by this function is as following Data[15:0] : these bits contain the regular data of the Master ADC. Data[31:16]: these bits contain the regular data of the Slave ADC.

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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_FLAGspecifies the flag to check. This parameter can be one of the following values:
  • ADC_FLAG_RDY: ADC Ready (ADRDY) flag
  • ADC_FLAG_EOSMP: ADC End of Sampling flag
  • ADC_FLAG_EOC: ADC End of Regular Conversion flag
  • ADC_FLAG_EOS: ADC End of Regular sequence of Conversions flag
  • ADC_FLAG_OVR: ADC overrun flag
  • ADC_FLAG_JEOC: ADC End of Injected Conversion flag
  • ADC_FLAG_JEOS: ADC End of Injected sequence of Conversions flag
  • ADC_FLAG_AWD1: ADC Analog watchdog 1 flag
  • ADC_FLAG_AWD2: ADC Analog watchdog 2 flag
  • ADC_FLAG_AWD3: ADC Analog watchdog 3 flag
  • ADC_FLAG_JQOVF: ADC Injected Context Queue Overflow flag
Return values
Thenew 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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
ADC_InjectedChannelthe converted ADC injected channel. This parameter can be one of the following values:
  • ADC_InjectedChannel_1: Injected Channel1 selected
  • ADC_InjectedChannel_2: Injected Channel2 selected
  • ADC_InjectedChannel_3: Injected Channel3 selected
  • ADC_InjectedChannel_4: Injected Channel4 selected
Return values
TheData conversion value.
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_InjectedSequencethe 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
TheData conversion value.
Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
ADC_InjectedChannelthe converted ADC injected channel. This parameter can be one of the following values:
  • ADC_InjectedChannel_1: Injected Channel1 selected
  • ADC_InjectedChannel_2: Injected Channel2 selected
  • ADC_InjectedChannel_3: Injected Channel3 selected
  • ADC_InjectedChannel_4: Injected Channel4 selected
Return values
TheData 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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
ADC_ITspecifies the ADC interrupt source to check. This parameter can be one of the following values:
  • ADC_IT_RDY: ADC Ready (ADRDY) interrupt source
  • ADC_IT_EOSMP: ADC End of Sampling interrupt source
  • ADC_IT_EOC: ADC End of Regular Conversion interrupt source
  • ADC_IT_EOS: ADC End of Regular sequence of Conversions interrupt source
  • ADC_IT_OVR: ADC overrun interrupt source
  • ADC_IT_JEOC: ADC End of Injected Conversion interrupt source
  • ADC_IT_JEOS: ADC End of Injected sequence of Conversions interrupt source
  • ADC_IT_AWD1: ADC Analog watchdog 1 interrupt source
  • ADC_IT_AWD2: ADC Analog watchdog 2 interrupt source
  • ADC_IT_AWD3: ADC Analog watchdog 3 interrupt source
  • ADC_IT_JQOVF: ADC Injected Context Queue Overflow interrupt source
Return values
Thenew 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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
Thenew 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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
Thenew 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.

Note
This function is used to configure the global features of the ADC ( Resolution and Data Alignment), however, the rest of the configuration parameters are specific to the regular channels group (scan mode activation, continuous mode activation, External trigger source and edge, number of conversion in the regular channels group sequencer).
Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
ADC_InitStructpointer to an ADC_InitTypeDef structure that contains the configuration information for the specified ADC peripheral.
Return values
None
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_InitStructpointer to an ADC_InitTypeDef structure that contains the configuration information for the specified ADC peripheral.
Return values
None
Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
ADC_InitStructpointer to an ADC_InitTypeDef structure that contains the configuration information for the specified ADC peripheral.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_Channelthe 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_SampleTimeThe 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 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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
NewStatenew state of the selected ADC discontinuous mode on injected group channel. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the selected ADC discontinuous mode on injected group channel. This parameter can be: ENABLE or DISABLE.
Return values
None
Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
NewStatenew state of the selected ADC discontinuous mode on injected group channel. This parameter can be: ENABLE or DISABLE.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_InjectInitStructpointer to an ADC_InjecInitTypeDef structure that contains the configuration information for the specified ADC injected channel.
Return values
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.

Parameters
ADC_InjectedInitStruct: pointer to an ADC_InjectedInitTypeDef structure which will be initialized.
Return values
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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
ADC_ITspecifies the ADC interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
  • ADC_IT_RDY: ADC Ready (ADRDY) interrupt source
  • ADC_IT_EOSMP: ADC End of Sampling interrupt source
  • ADC_IT_EOC: ADC End of Regular Conversion interrupt source
  • ADC_IT_EOS: ADC End of Regular sequence of Conversions interrupt source
  • ADC_IT_OVR: ADC overrun interrupt source
  • ADC_IT_JEOC: ADC End of Injected Conversion interrupt source
  • ADC_IT_JEOS: ADC End of Injected sequence of Conversions interrupt source
  • ADC_IT_AWD1: ADC Analog watchdog 1 interrupt source
  • ADC_IT_AWD2: ADC Analog watchdog 2 interrupt source
  • ADC_IT_AWD3: ADC Analog watchdog 3 interrupt source
  • ADC_IT_JQOVF: ADC Injected Context Queue Overflow interrupt source
NewStatenew state of the specified ADC interrupts. This parameter can be: ENABLE or DISABLE.
Return values
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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
ADC_Channelthe ADC channel to configure. This parameter can be one of the following values:
  • ADC_Channel_0: ADC Channel0 selected
  • ADC_Channel_1: ADC Channel1 selected
  • ADC_Channel_2: ADC Channel2 selected
  • ADC_Channel_3: ADC Channel3 selected
  • ADC_Channel_4: ADC Channel4 selected
  • ADC_Channel_5: ADC Channel5 selected
  • ADC_Channel_6: ADC Channel6 selected
  • ADC_Channel_7: ADC Channel7 selected
  • ADC_Channel_8: ADC Channel8 selected
  • ADC_Channel_9: ADC Channel9 selected
  • ADC_Channel_10: ADC Channel10 selected
  • ADC_Channel_11: ADC Channel11 selected
  • ADC_Channel_12: ADC Channel12 selected
  • ADC_Channel_13: ADC Channel13 selected
  • ADC_Channel_14: ADC Channel14 selected
  • ADC_Channel_15: ADC Channel15 selected
  • ADC_Channel_16: ADC Channel16 selected
  • ADC_Channel_17: ADC Channel17 selected
  • ADC_Channel_18: ADC Channel18 selected
RankThe rank in the regular group sequencer. This parameter must be between 1 to 16.
ADC_SampleTimeThe sample time value to be set for the selected channel. This parameter can be one of the following values:
  • ADC_SampleTime_3Cycles: Sample time equal to 3 cycles
  • ADC_SampleTime_15Cycles: Sample time equal to 15 cycles
  • ADC_SampleTime_28Cycles: Sample time equal to 28 cycles
  • ADC_SampleTime_56Cycles: Sample time equal to 56 cycles
  • ADC_SampleTime_84Cycles: Sample time equal to 84 cycles
  • ADC_SampleTime_112Cycles: Sample time equal to 112 cycles
  • ADC_SampleTime_144Cycles: Sample time equal to 144 cycles
  • ADC_SampleTime_480Cycles: Sample time equal to 480 cycles
Return values
None
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_Channelthe ADC channel to configure. This parameter can be one of the following values:
  • ADC_Channel_1: ADC Channel1 selected
  • ADC_Channel_2: ADC Channel2 selected
  • ADC_Channel_3: ADC Channel3 selected
  • ADC_Channel_4: ADC Channel4 selected
  • ADC_Channel_5: ADC Channel5 selected
  • ADC_Channel_6: ADC Channel6 selected
  • ADC_Channel_7: ADC Channel7 selected
  • ADC_Channel_8: ADC Channel8 selected
  • ADC_Channel_9: ADC Channel9 selected
  • ADC_Channel_10: ADC Channel10 selected
  • ADC_Channel_11: ADC Channel11 selected
  • ADC_Channel_12: ADC Channel12 selected
  • ADC_Channel_13: ADC Channel13 selected
  • ADC_Channel_14: ADC Channel14 selected
  • ADC_Channel_15: ADC Channel15 selected
  • ADC_Channel_16: ADC Channel16 selected
  • ADC_Channel_17: ADC Channel17 selected
  • ADC_Channel_18: ADC Channel18 selected
RankThe rank in the regular group sequencer. This parameter must be between 1 to 16.
ADC_SampleTimeThe 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
Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
ADC_Channelthe ADC channel to configure. This parameter can be one of the following values:
  • ADC_Channel_0: ADC Channel0 selected
  • ADC_Channel_1: ADC Channel1 selected
  • ADC_Channel_2: ADC Channel2 selected
  • ADC_Channel_3: ADC Channel3 selected
  • ADC_Channel_4: ADC Channel4 selected
  • ADC_Channel_5: ADC Channel5 selected
  • ADC_Channel_6: ADC Channel6 selected
  • ADC_Channel_7: ADC Channel7 selected
  • ADC_Channel_8: ADC Channel8 selected
  • ADC_Channel_9: ADC Channel9 selected
  • ADC_Channel_10: ADC Channel10 selected
  • ADC_Channel_11: ADC Channel11 selected
  • ADC_Channel_12: ADC Channel12 selected
  • ADC_Channel_13: ADC Channel13 selected
  • ADC_Channel_14: ADC Channel14 selected
  • ADC_Channel_15: ADC Channel15 selected
  • ADC_Channel_16: ADC Channel16 selected
  • ADC_Channel_17: ADC Channel17 selected
RankThe rank in the regular group sequencer. This parameter must be between 1 to 16.
ADC_SampleTimeThe 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_7Cycles5: Sample time equal to 7.5 cycles
  • ADC_SampleTime_13Cycles5: Sample time equal to 13.5 cycles
  • ADC_SampleTime_28Cycles5: Sample time equal to 28.5 cycles
  • ADC_SampleTime_41Cycles5: Sample time equal to 41.5 cycles
  • ADC_SampleTime_55Cycles5: Sample time equal to 55.5 cycles
  • ADC_SampleTime_71Cycles5: Sample time equal to 71.5 cycles
  • ADC_SampleTime_239Cycles5: Sample time equal to 239.5 cycles
Return 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.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
SequenceLengthThe Regular sequence length. This parameter must be between 1 to 16. This parameter can be: ENABLE or DISABLE.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_CalibrationModethe ADC calibration mode. This parameter can be one of the following values:
  • ADC_CalibrationMode_Single: to select the calibration for single channel
  • ADC_CalibrationMode_Differential: to select the calibration for differential channel
Return 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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_Channelthe ADC channel to configure for the analog watchdog. This parameter can be one of the following values:
  • ADC_Channel_1: ADC Channel1 selected
  • ADC_Channel_2: ADC Channel2 selected
  • ADC_Channel_3: ADC Channel3 selected
  • ADC_Channel_4: ADC Channel4 selected
  • ADC_Channel_5: ADC Channel5 selected
  • ADC_Channel_6: ADC Channel6 selected
  • ADC_Channel_7: ADC Channel7 selected
  • ADC_Channel_8: ADC Channel8 selected
  • ADC_Channel_9: ADC Channel9 selected
  • ADC_Channel_10: ADC Channel10 selected
  • ADC_Channel_11: ADC Channel11 selected
  • ADC_Channel_12: ADC Channel12 selected
  • ADC_Channel_13: ADC Channel13 selected
  • ADC_Channel_14: ADC Channel14 selected
Note
: Channel 15, 16 and 17 are fixed to single-ended inputs mode.
Return 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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the Queue Of Context Mode. This parameter can be: ENABLE or DISABLE.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_Channelthe ADC channel to configure. This parameter can be one of the following values:
  • ADC_Channel_1: ADC Channel1 selected
  • ADC_Channel_2: ADC Channel2 selected
  • ADC_Channel_3: ADC Channel3 selected
  • ADC_Channel_4: ADC Channel4 selected
  • ADC_Channel_5: ADC Channel5 selected
  • ADC_Channel_6: ADC Channel6 selected
  • ADC_Channel_7: ADC Channel7 selected
  • ADC_Channel_8: ADC Channel8 selected
  • ADC_Channel_9: ADC Channel9 selected
  • ADC_Channel_10: ADC Channel10 selected
  • ADC_Channel_11: ADC Channel11 selected
  • ADC_Channel_12: ADC Channel12 selected
  • ADC_Channel_13: ADC Channel13 selected
  • ADC_Channel_14: ADC Channel14 selected
  • ADC_Channel_15: ADC Channel15 selected
  • ADC_Channel_16: ADC Channel16 selected
  • ADC_Channel_17: ADC Channel17 selected
  • ADC_Channel_18: ADC Channel18 selected
Offsetthe offset value for the selected ADC Channel This parameter must be a 12bit value.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_Channelthe ADC channel to configure. This parameter can be one of the following values:
  • ADC_Channel_1: ADC Channel1 selected
  • ADC_Channel_2: ADC Channel2 selected
  • ADC_Channel_3: ADC Channel3 selected
  • ADC_Channel_4: ADC Channel4 selected
  • ADC_Channel_5: ADC Channel5 selected
  • ADC_Channel_6: ADC Channel6 selected
  • ADC_Channel_7: ADC Channel7 selected
  • ADC_Channel_8: ADC Channel8 selected
  • ADC_Channel_9: ADC Channel9 selected
  • ADC_Channel_10: ADC Channel10 selected
  • ADC_Channel_11: ADC Channel11 selected
  • ADC_Channel_12: ADC Channel12 selected
  • ADC_Channel_13: ADC Channel13 selected
  • ADC_Channel_14: ADC Channel14 selected
  • ADC_Channel_15: ADC Channel15 selected
  • ADC_Channel_16: ADC Channel16 selected
  • ADC_Channel_17: ADC Channel17 selected
  • ADC_Channel_18: ADC Channel18 selected
Offsetthe offset value for the selected ADC Channel This parameter must be a 12bit value.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_Channelthe ADC channel to configure. This parameter can be one of the following values:
  • ADC_Channel_1: ADC Channel1 selected
  • ADC_Channel_2: ADC Channel2 selected
  • ADC_Channel_3: ADC Channel3 selected
  • ADC_Channel_4: ADC Channel4 selected
  • ADC_Channel_5: ADC Channel5 selected
  • ADC_Channel_6: ADC Channel6 selected
  • ADC_Channel_7: ADC Channel7 selected
  • ADC_Channel_8: ADC Channel8 selected
  • ADC_Channel_9: ADC Channel9 selected
  • ADC_Channel_10: ADC Channel10 selected
  • ADC_Channel_11: ADC Channel11 selected
  • ADC_Channel_12: ADC Channel12 selected
  • ADC_Channel_13: ADC Channel13 selected
  • ADC_Channel_14: ADC Channel14 selected
  • ADC_Channel_15: ADC Channel15 selected
  • ADC_Channel_16: ADC Channel16 selected
  • ADC_Channel_17: ADC Channel17 selected
  • ADC_Channel_18: ADC Channel18 selected
Offsetthe offset value for the selected ADC Channel This parameter must be a 12bit value.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
ADC_Channelthe ADC channel to configure. This parameter can be one of the following values:
  • ADC_Channel_1: ADC Channel1 selected
  • ADC_Channel_2: ADC Channel2 selected
  • ADC_Channel_3: ADC Channel3 selected
  • ADC_Channel_4: ADC Channel4 selected
  • ADC_Channel_5: ADC Channel5 selected
  • ADC_Channel_6: ADC Channel6 selected
  • ADC_Channel_7: ADC Channel7 selected
  • ADC_Channel_8: ADC Channel8 selected
  • ADC_Channel_9: ADC Channel9 selected
  • ADC_Channel_10: ADC Channel10 selected
  • ADC_Channel_11: ADC Channel11 selected
  • ADC_Channel_12: ADC Channel12 selected
  • ADC_Channel_13: ADC Channel13 selected
  • ADC_Channel_14: ADC Channel14 selected
  • ADC_Channel_15: ADC Channel15 selected
  • ADC_Channel_16: ADC Channel16 selected
  • ADC_Channel_17: ADC Channel17 selected
  • ADC_Channel_18: ADC Channel18 selected
Offsetthe offset value for the selected ADC Channel This parameter must be a 12bit value.
Return values
None

Definition at line 1605 of file stm32f30x_adc.c.

void ADC_StartCalibration ( ADC_TypeDef ADCx)

Starts the selected ADC calibration process.

Parameters
ADCxwhere x can be 1, 2 or 3 to select the ADC peripheral.
Return values
None
Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
None

Definition at line 417 of file stm32f10x_adc.c.

void ADC_StartConversion ( ADC_TypeDef ADCx)

Enables or disables the selected ADC start conversion .

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the selected ADC software start injected conversion. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 1892 of file stm32f30x_adc.c.

void ADC_StopConversion ( ADC_TypeDef ADCx)

Stops the selected ADC ongoing conversion.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
None

Definition at line 1344 of file stm32f30x_adc.c.

void ADC_StopInjectedConversion ( ADC_TypeDef ADCx)

Stops the selected ADC ongoing injected conversion.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
Return values
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.

Note
This function is used to initialize the global features of the ADC ( Resolution and Data Alignment), however, the rest of the configuration parameters are specific to the regular channels group (scan mode activation, continuous mode activation, External trigger source and edge, number of conversion in the regular channels group sequencer).
Parameters
ADC_InitStructpointer to an ADC_InitTypeDef structure which will be initialized.
Return values
None
Parameters
ADC_InitStruct: pointer to an ADC_InitTypeDef structure which will be initialized.
Return values
None
Parameters
ADC_InitStruct: pointer to an ADC_InitTypeDef structure which will be initialized.
Return values
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.

Parameters
ADCxwhere x can be 1 to select the ADC peripheral.
NewStatenew state of the temperature sensor. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 952 of file stm32f30x_adc.c.

void ADC_VbatCmd ( ADC_TypeDef ADCx,
FunctionalState  NewState 
)

Enables or disables the Vbat channel.

Parameters
ADCxwhere x can be 1 to select the ADC peripheral.
NewStatenew state of the Vbat. This parameter can be: ENABLE or DISABLE.
Return values
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.

Parameters
ADCxwhere x can be 1, 2, 3 or 4 to select the ADC peripheral.
NewStatenew state of the ADCx Voltage Regulator. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 532 of file stm32f30x_adc.c.

void ADC_VrefintCmd ( ADC_TypeDef ADCx,
FunctionalState  NewState 
)

Enables or disables the Vrefint channel.

Parameters
ADCxwhere x can be 1 or 4 to select the ADC peripheral.
NewStatenew state of the Vrefint. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 979 of file stm32f30x_adc.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:28