Classes | Macros | Functions
stm32f30x_adc.h File Reference

This file contains all the functions prototypes for the ADC firmware library. More...

#include "stm32f30x.h"
Include dependency graph for stm32f30x_adc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ADC_CommonInitTypeDef
 ADC Common Init structure definition. More...
 
struct  ADC_InitTypeDef
 ADC Init structure definition. More...
 
struct  ADC_InjectedInitTypeDef
 ADC Init structure definition. More...
 

Macros

#define ADC_AnalogWatchdog_AllInjecEnable   ((uint32_t)0x01000000)
 
#define ADC_AnalogWatchdog_AllRegAllInjecEnable   ((uint32_t)0x01800000)
 
#define ADC_AnalogWatchdog_AllRegEnable   ((uint32_t)0x00800000)
 
#define ADC_AnalogWatchdog_None   ((uint32_t)0x00000000)
 
#define ADC_AnalogWatchdog_SingleInjecEnable   ((uint32_t)0x01400000)
 
#define ADC_AnalogWatchdog_SingleRegEnable   ((uint32_t)0x00C00000)
 
#define ADC_AnalogWatchdog_SingleRegOrInjecEnable   ((uint32_t)0x01C00000)
 
#define ADC_AutoInjec_Disable   ((uint32_t)0x00000000)
 
#define ADC_AutoInjec_Enable   ((uint32_t)0x02000000)
 
#define ADC_CalibrationMode_Differential   ((uint32_t)0x40000000)
 
#define ADC_CalibrationMode_Single   ((uint32_t)0x00000000)
 
#define ADC_Channel_1   ((uint8_t)0x01)
 
#define ADC_Channel_10   ((uint8_t)0x0A)
 
#define ADC_Channel_11   ((uint8_t)0x0B)
 
#define ADC_Channel_12   ((uint8_t)0x0C)
 
#define ADC_Channel_13   ((uint8_t)0x0D)
 
#define ADC_Channel_14   ((uint8_t)0x0E)
 
#define ADC_Channel_15   ((uint8_t)0x0F)
 
#define ADC_Channel_16   ((uint8_t)0x10)
 
#define ADC_Channel_17   ((uint8_t)0x11)
 
#define ADC_Channel_18   ((uint8_t)0x12)
 
#define ADC_Channel_2   ((uint8_t)0x02)
 
#define ADC_Channel_3   ((uint8_t)0x03)
 
#define ADC_Channel_4   ((uint8_t)0x04)
 
#define ADC_Channel_5   ((uint8_t)0x05)
 
#define ADC_Channel_6   ((uint8_t)0x06)
 
#define ADC_Channel_7   ((uint8_t)0x07)
 
#define ADC_Channel_8   ((uint8_t)0x08)
 
#define ADC_Channel_9   ((uint8_t)0x09)
 
#define ADC_Channel_TempSensor   ((uint8_t)ADC_Channel_16)
 
#define ADC_Channel_Vbat   ((uint8_t)ADC_Channel_17)
 
#define ADC_Channel_Vrefint   ((uint8_t)ADC_Channel_18)
 
#define ADC_Clock_AsynClkMode   ((uint32_t)0x00000000)
 
#define ADC_Clock_SynClkModeDiv1   ((uint32_t)0x00010000)
 
#define ADC_Clock_SynClkModeDiv2   ((uint32_t)0x00020000)
 
#define ADC_Clock_SynClkModeDiv4   ((uint32_t)0x00030000)
 
#define ADC_ContinuousConvMode_Disable   ((uint32_t)0x00000000)
 
#define ADC_ContinuousConvMode_Enable   ((uint32_t)0x00002000)
 
#define ADC_DataAlign_Left   ((uint32_t)0x00000020)
 
#define ADC_DataAlign_Right   ((uint32_t)0x00000000)
 
#define ADC_DMAAccessMode_1   ((uint32_t)0x00008000)
 
#define ADC_DMAAccessMode_2   ((uint32_t)0x0000C000)
 
#define ADC_DMAAccessMode_Disabled   ((uint32_t)0x00000000)
 
#define ADC_DMAMode_Circular   ((uint32_t)0x00000002)
 
#define ADC_DMAMode_OneShot   ((uint32_t)0x00000000)
 
#define ADC_ExternalTrigConvEvent_0   ((uint16_t)0x0000)
 
#define ADC_ExternalTrigConvEvent_1   ((uint16_t)0x0040)
 
#define ADC_ExternalTrigConvEvent_10   ((uint16_t)0x0280)
 
#define ADC_ExternalTrigConvEvent_11   ((uint16_t)0x02C0)
 
#define ADC_ExternalTrigConvEvent_12   ((uint16_t)0x0300)
 
#define ADC_ExternalTrigConvEvent_13   ((uint16_t)0x0340)
 
#define ADC_ExternalTrigConvEvent_14   ((uint16_t)0x0380)
 
#define ADC_ExternalTrigConvEvent_15   ((uint16_t)0x03C0)
 
#define ADC_ExternalTrigConvEvent_2   ((uint16_t)0x0080)
 
#define ADC_ExternalTrigConvEvent_3   ((uint16_t)0x00C0)
 
#define ADC_ExternalTrigConvEvent_4   ((uint16_t)0x0100)
 
#define ADC_ExternalTrigConvEvent_5   ((uint16_t)0x0140)
 
#define ADC_ExternalTrigConvEvent_6   ((uint16_t)0x0180)
 
#define ADC_ExternalTrigConvEvent_7   ((uint16_t)0x01C0)
 
#define ADC_ExternalTrigConvEvent_8   ((uint16_t)0x0200)
 
#define ADC_ExternalTrigConvEvent_9   ((uint16_t)0x0240)
 
#define ADC_ExternalTrigEventEdge_BothEdge   ((uint16_t)0x0C00)
 
#define ADC_ExternalTrigEventEdge_FallingEdge   ((uint16_t)0x0800)
 
#define ADC_ExternalTrigEventEdge_None   ((uint16_t)0x0000)
 
#define ADC_ExternalTrigEventEdge_RisingEdge   ((uint16_t)0x0400)
 
#define ADC_ExternalTrigInjecConvEvent_0   ((uint16_t)0x0000)
 
#define ADC_ExternalTrigInjecConvEvent_1   ((uint16_t)0x0004)
 
#define ADC_ExternalTrigInjecConvEvent_10   ((uint16_t)0x0028)
 
#define ADC_ExternalTrigInjecConvEvent_11   ((uint16_t)0x002C)
 
#define ADC_ExternalTrigInjecConvEvent_12   ((uint16_t)0x0030)
 
#define ADC_ExternalTrigInjecConvEvent_13   ((uint16_t)0x0034)
 
#define ADC_ExternalTrigInjecConvEvent_14   ((uint16_t)0x0038)
 
#define ADC_ExternalTrigInjecConvEvent_15   ((uint16_t)0x003C)
 
#define ADC_ExternalTrigInjecConvEvent_2   ((uint16_t)0x0008)
 
#define ADC_ExternalTrigInjecConvEvent_3   ((uint16_t)0x000C)
 
#define ADC_ExternalTrigInjecConvEvent_4   ((uint16_t)0x0010)
 
#define ADC_ExternalTrigInjecConvEvent_5   ((uint16_t)0x0014)
 
#define ADC_ExternalTrigInjecConvEvent_6   ((uint16_t)0x0018)
 
#define ADC_ExternalTrigInjecConvEvent_7   ((uint16_t)0x001C)
 
#define ADC_ExternalTrigInjecConvEvent_8   ((uint16_t)0x0020)
 
#define ADC_ExternalTrigInjecConvEvent_9   ((uint16_t)0x0024)
 
#define ADC_ExternalTrigInjecEventEdge_BothEdge   ((uint16_t)0x00C0)
 
#define ADC_ExternalTrigInjecEventEdge_FallingEdge   ((uint16_t)0x0080)
 
#define ADC_ExternalTrigInjecEventEdge_None   ((uint16_t)0x0000)
 
#define ADC_ExternalTrigInjecEventEdge_RisingEdge   ((uint16_t)0x0040)
 
#define ADC_FLAG_AWD1   ((uint16_t)0x0080)
 
#define ADC_FLAG_AWD2   ((uint16_t)0x0100)
 
#define ADC_FLAG_AWD3   ((uint16_t)0x0200)
 
#define ADC_FLAG_EOC   ((uint16_t)0x0004)
 
#define ADC_FLAG_EOS   ((uint16_t)0x0008)
 
#define ADC_FLAG_EOSMP   ((uint16_t)0x0002)
 
#define ADC_FLAG_JEOC   ((uint16_t)0x0020)
 
#define ADC_FLAG_JEOS   ((uint16_t)0x0040)
 
#define ADC_FLAG_JQOVF   ((uint16_t)0x0400)
 
#define ADC_FLAG_MSTAWD1   ((uint32_t)0x00000080)
 
#define ADC_FLAG_MSTAWD2   ((uint32_t)0x00000100)
 
#define ADC_FLAG_MSTAWD3   ((uint32_t)0x00000200)
 
#define ADC_FLAG_MSTEOC   ((uint32_t)0x00000004)
 
#define ADC_FLAG_MSTEOS   ((uint32_t)0x00000008)
 
#define ADC_FLAG_MSTEOSMP   ((uint32_t)0x00000002)
 
#define ADC_FLAG_MSTJEOC   ((uint32_t)0x00000020)
 
#define ADC_FLAG_MSTJEOS   ((uint32_t)0x00000040)
 
#define ADC_FLAG_MSTJQOVF   ((uint32_t)0x00000400)
 
#define ADC_FLAG_MSTOVR   ((uint32_t)0x00000010)
 
#define ADC_FLAG_MSTRDY   ((uint32_t)0x00000001)
 
#define ADC_FLAG_OVR   ((uint16_t)0x0010)
 
#define ADC_FLAG_RDY   ((uint16_t)0x0001)
 
#define ADC_FLAG_SLVAWD1   ((uint32_t)0x00800000)
 
#define ADC_FLAG_SLVAWD2   ((uint32_t)0x01000000)
 
#define ADC_FLAG_SLVAWD3   ((uint32_t)0x02000000)
 
#define ADC_FLAG_SLVEOC   ((uint32_t)0x00040000)
 
#define ADC_FLAG_SLVEOS   ((uint32_t)0x00080000)
 
#define ADC_FLAG_SLVEOSMP   ((uint32_t)0x00020000)
 
#define ADC_FLAG_SLVJEOC   ((uint32_t)0x00200000)
 
#define ADC_FLAG_SLVJEOS   ((uint32_t)0x00400000)
 
#define ADC_FLAG_SLVJQOVF   ((uint32_t)0x04000000)
 
#define ADC_FLAG_SLVOVR   ((uint32_t)0x00100000)
 
#define ADC_FLAG_SLVRDY   ((uint32_t)0x00010000)
 
#define ADC_InjectedChannel_1   ADC_Channel_1
 
#define ADC_InjectedChannel_10   ADC_Channel_10
 
#define ADC_InjectedChannel_11   ADC_Channel_11
 
#define ADC_InjectedChannel_12   ADC_Channel_12
 
#define ADC_InjectedChannel_13   ADC_Channel_13
 
#define ADC_InjectedChannel_14   ADC_Channel_14
 
#define ADC_InjectedChannel_15   ADC_Channel_15
 
#define ADC_InjectedChannel_16   ADC_Channel_16
 
#define ADC_InjectedChannel_17   ADC_Channel_17
 
#define ADC_InjectedChannel_18   ADC_Channel_18
 
#define ADC_InjectedChannel_2   ADC_Channel_2
 
#define ADC_InjectedChannel_3   ADC_Channel_3
 
#define ADC_InjectedChannel_4   ADC_Channel_4
 
#define ADC_InjectedChannel_5   ADC_Channel_5
 
#define ADC_InjectedChannel_6   ADC_Channel_6
 
#define ADC_InjectedChannel_7   ADC_Channel_7
 
#define ADC_InjectedChannel_8   ADC_Channel_8
 
#define ADC_InjectedChannel_9   ADC_Channel_9
 
#define ADC_InjectedSequence_1   ADC_Channel_1
 
#define ADC_InjectedSequence_2   ADC_Channel_2
 
#define ADC_InjectedSequence_3   ADC_Channel_3
 
#define ADC_InjectedSequence_4   ADC_Channel_4
 
#define ADC_IT_AWD1   ((uint16_t)0x0080)
 
#define ADC_IT_AWD2   ((uint16_t)0x0100)
 
#define ADC_IT_AWD3   ((uint16_t)0x0200)
 
#define ADC_IT_EOC   ((uint16_t)0x0004)
 
#define ADC_IT_EOS   ((uint16_t)0x0008)
 
#define ADC_IT_EOSMP   ((uint16_t)0x0002)
 
#define ADC_IT_JEOC   ((uint16_t)0x0020)
 
#define ADC_IT_JEOS   ((uint16_t)0x0040)
 
#define ADC_IT_JQOVF   ((uint16_t)0x0400)
 
#define ADC_IT_OVR   ((uint16_t)0x0010)
 
#define ADC_IT_RDY   ((uint16_t)0x0001)
 
#define ADC_Mode_AltTrig   ((uint32_t)0x00000009)
 
#define ADC_Mode_CombRegSimulAltTrig   ((uint32_t)0x00000002)
 
#define ADC_Mode_CombRegSimulInjSimul   ((uint32_t)0x00000001)
 
#define ADC_Mode_Independent   ((uint32_t)0x00000000)
 
#define ADC_Mode_InjSimul   ((uint32_t)0x00000005)
 
#define ADC_Mode_Interleave   ((uint32_t)0x00000007)
 
#define ADC_Mode_RegSimul   ((uint32_t)0x00000006)
 
#define ADC_OverrunMode_Disable   ((uint32_t)0x00000000)
 
#define ADC_OverrunMode_Enable   ((uint32_t)0x00001000)
 
#define ADC_Resolution_10b   ((uint32_t)0x00000008)
 
#define ADC_Resolution_12b   ((uint32_t)0x00000000)
 
#define ADC_Resolution_6b   ((uint32_t)0x00000018)
 
#define ADC_Resolution_8b   ((uint32_t)0x00000010)
 
#define ADC_SampleTime_181Cycles5   ((uint8_t)0x06)
 
#define ADC_SampleTime_19Cycles5   ((uint8_t)0x04)
 
#define ADC_SampleTime_1Cycles5   ((uint8_t)0x00)
 
#define ADC_SampleTime_2Cycles5   ((uint8_t)0x01)
 
#define ADC_SampleTime_4Cycles5   ((uint8_t)0x02)
 
#define ADC_SampleTime_601Cycles5   ((uint8_t)0x07)
 
#define ADC_SampleTime_61Cycles5   ((uint8_t)0x05)
 
#define ADC_SampleTime_7Cycles5   ((uint8_t)0x03)
 
#define IS_ADC_ALL_PERIPH(PERIPH)
 
#define IS_ADC_ANALOG_WATCHDOG(WATCHDOG)
 
#define IS_ADC_AUTOINJECMODE(MODE)
 
#define IS_ADC_CALIBRATION_MODE(MODE)   (((MODE) == ADC_CalibrationMode_Single) ||((MODE) == ADC_CalibrationMode_Differential))
 
#define IS_ADC_CHANNEL(CHANNEL)
 
#define IS_ADC_CLEAR_COMMONFLAG(FLAG)   ((((FLAG) & (uint32_t)0xF800F800) == 0x0000) && ((FLAG) != 0x00000000))
 
#define IS_ADC_CLEAR_FLAG(FLAG)   ((((FLAG) & (uint16_t)0xF800) == 0x0000) && ((FLAG) != 0x0000))
 
#define IS_ADC_CLOCKMODE(CLOCK)
 
#define IS_ADC_CONVMODE(MODE)
 
#define IS_ADC_DATA_ALIGN(ALIGN)
 
#define IS_ADC_DIFFCHANNEL(CHANNEL)
 
#define IS_ADC_DMA_ACCESS_MODE(MODE)
 
#define IS_ADC_DMA_MODE(MODE)   (((MODE) == ADC_DMAMode_OneShot) || ((MODE) == ADC_DMAMode_Circular))
 
#define IS_ADC_DMA_PERIPH(PERIPH)
 
#define IS_ADC_EXT_INJEC_TRIG(INJTRIG)
 
#define IS_ADC_EXT_TRIG(REGTRIG)
 
#define IS_ADC_GET_COMMONFLAG(FLAG)
 
#define IS_ADC_GET_FLAG(FLAG)
 
#define IS_ADC_GET_IT(IT)
 
#define IS_ADC_INJECTED_CHANNEL(CHANNEL)
 
#define IS_ADC_INJECTED_LENGTH(LENGTH)   (((LENGTH) >= 0x1) && ((LENGTH) <= 0x4))
 
#define IS_ADC_INJECTED_SEQUENCE(SEQUENCE)
 
#define IS_ADC_IT(IT)   ((((IT) & (uint16_t)0xF800) == 0x0000) && ((IT) != 0x0000))
 
#define IS_ADC_MODE(MODE)
 
#define IS_ADC_OFFSET(OFFSET)   ((OFFSET) <= 0xFFF)
 
#define IS_ADC_OVRUNMODE(MODE)
 
#define IS_ADC_REGULAR_DISC_NUMBER(NUMBER)   (((NUMBER) >= 0x1) && ((NUMBER) <= 0x8))
 
#define IS_ADC_REGULAR_LENGTH(LENGTH)   (((LENGTH) >= 0x1) && ((LENGTH) <= 0x10))
 
#define IS_ADC_RESOLUTION(RESOLUTION)
 
#define IS_ADC_SAMPLE_TIME(TIME)
 
#define IS_ADC_THRESHOLD(THRESHOLD)   ((THRESHOLD) <= 0xFFF)
 
#define IS_ADC_TWOSAMPLING_DELAY(DELAY)   (((DELAY) <= 0xF))
 
#define IS_EXTERNALTRIG_EDGE(EDGE)
 
#define IS_EXTERNALTRIGINJ_EDGE(EDGE)
 

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

This file contains all the functions prototypes for the ADC firmware library.

Author
MCD Application Team
Version
V1.1.1
Date
04-April-2014
Attention

© COPYRIGHT 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file stm32f30x_adc.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:21