|
#define | IS_ADC_ALL_PERIPH(PERIPH) ((PERIPH) == ADC1) |
|
#define | ADC_JitterOff_PCLKDiv2 ADC_CFGR2_JITOFFDIV2 |
|
#define | ADC_JitterOff_PCLKDiv4 ADC_CFGR2_JITOFFDIV4 |
|
#define | IS_ADC_JITTEROFF(JITTEROFF) (((JITTEROFF) & 0x3FFFFFFF) == (uint32_t)RESET) |
|
#define | ADC_Resolution_12b ((uint32_t)0x00000000) |
|
#define | ADC_Resolution_10b ADC_CFGR1_RES_0 |
|
#define | ADC_Resolution_8b ADC_CFGR1_RES_1 |
|
#define | ADC_Resolution_6b ADC_CFGR1_RES |
|
#define | IS_ADC_RESOLUTION(RESOLUTION) |
|
#define | ADC_ExternalTrigConvEdge_None ((uint32_t)0x00000000) |
|
#define | ADC_ExternalTrigConvEdge_Rising ADC_CFGR1_EXTEN_0 |
|
#define | ADC_ExternalTrigConvEdge_Falling ADC_CFGR1_EXTEN_1 |
|
#define | ADC_ExternalTrigConvEdge_RisingFalling ADC_CFGR1_EXTEN |
|
#define | IS_ADC_EXT_TRIG_EDGE(EDGE) |
|
#define | ADC_ExternalTrigConv_T1_TRGO ((uint32_t)0x00000000) |
|
#define | ADC_ExternalTrigConv_T1_CC4 ADC_CFGR1_EXTSEL_0 |
|
#define | ADC_ExternalTrigConv_T2_TRGO ADC_CFGR1_EXTSEL_1 |
|
#define | ADC_ExternalTrigConv_T3_TRGO ((uint32_t)(ADC_CFGR1_EXTSEL_0 | ADC_CFGR1_EXTSEL_1)) |
|
#define | ADC_ExternalTrigConv_T15_TRGO ADC_CFGR1_EXTSEL_2 |
|
#define | IS_ADC_EXTERNAL_TRIG_CONV(CONV) |
|
#define | ADC_DataAlign_Right ((uint32_t)0x00000000) |
|
#define | ADC_DataAlign_Left ADC_CFGR1_ALIGN |
|
#define | IS_ADC_DATA_ALIGN(ALIGN) |
|
#define | ADC_ScanDirection_Upward ((uint32_t)0x00000000) |
|
#define | ADC_ScanDirection_Backward ADC_CFGR1_SCANDIR |
|
#define | IS_ADC_SCAN_DIRECTION(DIRECTION) |
|
#define | ADC_DMAMode_OneShot ((uint32_t)0x00000000) |
|
#define | ADC_DMAMode_Circular ADC_CFGR1_DMACFG |
|
#define | IS_ADC_DMA_MODE(MODE) |
|
#define | ADC_AnalogWatchdog_Channel_0 ((uint32_t)0x00000000) |
|
#define | ADC_AnalogWatchdog_Channel_1 ((uint32_t)0x04000000) |
|
#define | ADC_AnalogWatchdog_Channel_2 ((uint32_t)0x08000000) |
|
#define | ADC_AnalogWatchdog_Channel_3 ((uint32_t)0x0C000000) |
|
#define | ADC_AnalogWatchdog_Channel_4 ((uint32_t)0x10000000) |
|
#define | ADC_AnalogWatchdog_Channel_5 ((uint32_t)0x14000000) |
|
#define | ADC_AnalogWatchdog_Channel_6 ((uint32_t)0x18000000) |
|
#define | ADC_AnalogWatchdog_Channel_7 ((uint32_t)0x1C000000) |
|
#define | ADC_AnalogWatchdog_Channel_8 ((uint32_t)0x20000000) |
|
#define | ADC_AnalogWatchdog_Channel_9 ((uint32_t)0x24000000) |
|
#define | ADC_AnalogWatchdog_Channel_10 ((uint32_t)0x28000000) |
|
#define | ADC_AnalogWatchdog_Channel_11 ((uint32_t)0x2C000000) |
|
#define | ADC_AnalogWatchdog_Channel_12 ((uint32_t)0x30000000) |
|
#define | ADC_AnalogWatchdog_Channel_13 ((uint32_t)0x34000000) |
|
#define | ADC_AnalogWatchdog_Channel_14 ((uint32_t)0x38000000) |
|
#define | ADC_AnalogWatchdog_Channel_15 ((uint32_t)0x3C000000) |
|
#define | ADC_AnalogWatchdog_Channel_16 ((uint32_t)0x40000000) |
|
#define | ADC_AnalogWatchdog_Channel_17 ((uint32_t)0x44000000) |
|
#define | ADC_AnalogWatchdog_Channel_18 ((uint32_t)0x48000000) |
|
#define | IS_ADC_ANALOG_WATCHDOG_CHANNEL(CHANNEL) |
|
#define | ADC_SampleTime_1_5Cycles ((uint32_t)0x00000000) |
|
#define | ADC_SampleTime_7_5Cycles ((uint32_t)0x00000001) |
|
#define | ADC_SampleTime_13_5Cycles ((uint32_t)0x00000002) |
|
#define | ADC_SampleTime_28_5Cycles ((uint32_t)0x00000003) |
|
#define | ADC_SampleTime_41_5Cycles ((uint32_t)0x00000004) |
|
#define | ADC_SampleTime_55_5Cycles ((uint32_t)0x00000005) |
|
#define | ADC_SampleTime_71_5Cycles ((uint32_t)0x00000006) |
|
#define | ADC_SampleTime_239_5Cycles ((uint32_t)0x00000007) |
|
#define | IS_ADC_SAMPLE_TIME(TIME) |
|
#define | IS_ADC_THRESHOLD(THRESHOLD) ((THRESHOLD) <= 0xFFF) |
|
#define | ADC_Channel_0 ADC_CHSELR_CHSEL0 |
|
#define | ADC_Channel_1 ADC_CHSELR_CHSEL1 |
|
#define | ADC_Channel_2 ADC_CHSELR_CHSEL2 |
|
#define | ADC_Channel_3 ADC_CHSELR_CHSEL3 |
|
#define | ADC_Channel_4 ADC_CHSELR_CHSEL4 |
|
#define | ADC_Channel_5 ADC_CHSELR_CHSEL5 |
|
#define | ADC_Channel_6 ADC_CHSELR_CHSEL6 |
|
#define | ADC_Channel_7 ADC_CHSELR_CHSEL7 |
|
#define | ADC_Channel_8 ADC_CHSELR_CHSEL8 |
|
#define | ADC_Channel_9 ADC_CHSELR_CHSEL9 |
|
#define | ADC_Channel_10 ADC_CHSELR_CHSEL10 |
|
#define | ADC_Channel_11 ADC_CHSELR_CHSEL11 |
|
#define | ADC_Channel_12 ADC_CHSELR_CHSEL12 |
|
#define | ADC_Channel_13 ADC_CHSELR_CHSEL13 |
|
#define | ADC_Channel_14 ADC_CHSELR_CHSEL14 |
|
#define | ADC_Channel_15 ADC_CHSELR_CHSEL15 |
|
#define | ADC_Channel_16 ADC_CHSELR_CHSEL16 |
|
#define | ADC_Channel_17 ADC_CHSELR_CHSEL17 |
|
#define | ADC_Channel_18 ADC_CHSELR_CHSEL18 |
|
#define | ADC_Channel_TempSensor ((uint32_t)ADC_Channel_16) |
|
#define | ADC_Channel_Vrefint ((uint32_t)ADC_Channel_17) |
|
#define | ADC_Channel_Vbat ((uint32_t)ADC_Channel_18) |
|
#define | IS_ADC_CHANNEL(CHANNEL) (((CHANNEL) != (uint32_t)RESET) && (((CHANNEL) & 0xFFF80000) == (uint32_t)RESET)) |
|
#define | ADC_IT_ADRDY ADC_IER_ADRDYIE |
|
#define | ADC_IT_EOSMP ADC_IER_EOSMPIE |
|
#define | ADC_IT_EOC ADC_IER_EOCIE |
|
#define | ADC_IT_EOSEQ ADC_IER_EOSEQIE |
|
#define | ADC_IT_OVR ADC_IER_OVRIE |
|
#define | ADC_IT_AWD ADC_IER_AWDIE |
|
#define | IS_ADC_CONFIG_IT(IT) (((IT) != (uint32_t)RESET) && (((IT) & 0xFFFFFF60) == (uint32_t)RESET)) |
|
#define | IS_ADC_GET_IT(IT) |
|
#define | IS_ADC_CLEAR_IT(IT) (((IT) != (uint32_t)RESET) && (((IT) & 0xFFFFFF60) == (uint32_t)RESET)) |
|
#define | ADC_FLAG_ADRDY ADC_ISR_ADRDY |
|
#define | ADC_FLAG_EOSMP ADC_ISR_EOSMP |
|
#define | ADC_FLAG_EOC ADC_ISR_EOC |
|
#define | ADC_FLAG_EOSEQ ADC_ISR_EOSEQ |
|
#define | ADC_FLAG_OVR ADC_ISR_OVR |
|
#define | ADC_FLAG_AWD ADC_ISR_AWD |
|
#define | ADC_FLAG_ADEN ((uint32_t)0x01000001) |
|
#define | ADC_FLAG_ADDIS ((uint32_t)0x01000002) |
|
#define | ADC_FLAG_ADSTART ((uint32_t)0x01000004) |
|
#define | ADC_FLAG_ADSTP ((uint32_t)0x01000008) |
|
#define | ADC_FLAG_ADCAL ((uint32_t)0x11000000) |
|
#define | IS_ADC_CLEAR_FLAG(FLAG) (((FLAG) != (uint32_t)RESET) && (((FLAG) & 0xEFFFFF60) == (uint32_t)RESET)) |
|
#define | IS_ADC_GET_FLAG(FLAG) |
|
|
void | ADC_DeInit (ADC_TypeDef *ADCx) |
| Deinitializes ADC1 peripheral registers to their default reset values. 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_StructInit (ADC_InitTypeDef *ADC_InitStruct) |
| Fills each ADC_InitStruct member with its default value. More...
|
|
void | ADC_JitterCmd (ADC_TypeDef *ADCx, uint32_t ADC_JitterOff, FunctionalState NewState) |
| Enables or disables the jitter when the ADC is clocked by PCLK div2 or div4. More...
|
|
void | ADC_Cmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the specified ADC peripheral. More...
|
|
void | ADC_AutoPowerOffCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the ADC Power Off. More...
|
|
void | ADC_WaitModeCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the Wait conversion mode. More...
|
|
void | ADC_AnalogWatchdogCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the analog watchdog. More...
|
|
void | ADC_AnalogWatchdogThresholdsConfig (ADC_TypeDef *ADCx, uint16_t HighThreshold, uint16_t LowThreshold) |
| Configures the high and low thresholds of the analog watchdog. More...
|
|
void | ADC_AnalogWatchdogSingleChannelConfig (ADC_TypeDef *ADCx, uint32_t ADC_AnalogWatchdog_Channel) |
| Configures the analog watchdog guarded single channel. More...
|
|
void | ADC_AnalogWatchdogSingleChannelCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the ADC Analog Watchdog Single Channel. More...
|
|
void | ADC_TempSensorCmd (FunctionalState NewState) |
| Enables or disables the temperature sensor channel. More...
|
|
void | ADC_VrefintCmd (FunctionalState NewState) |
| Enables or disables the Vrefint channel. More...
|
|
void | ADC_VbatCmd (FunctionalState NewState) |
| Enables or disables the Vbat channel. More...
|
|
void | ADC_ChannelConfig (ADC_TypeDef *ADCx, uint32_t ADC_Channel, uint32_t ADC_SampleTime) |
| Configures for the selected ADC and its sampling time. More...
|
|
void | ADC_ContinuousModeCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enable the Continuous mode for the selected ADCx channels. More...
|
|
void | ADC_DiscModeCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enable the discontinuous mode for the selected ADC channels. More...
|
|
void | ADC_OverrunModeCmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enable the Overrun mode for the selected ADC channels. More...
|
|
uint32_t | ADC_GetCalibrationFactor (ADC_TypeDef *ADCx) |
| Active the Calibration operation for the selected ADC. More...
|
|
void | ADC_StopOfConversion (ADC_TypeDef *ADCx) |
| Stop the on going conversions for the selected ADC. More...
|
|
void | ADC_StartOfConversion (ADC_TypeDef *ADCx) |
| Start Conversion for the selected ADC channels. More...
|
|
uint16_t | ADC_GetConversionValue (ADC_TypeDef *ADCx) |
| Returns the last ADCx conversion result data for ADC channel. More...
|
|
void | ADC_DMACmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the specified ADC DMA request. More...
|
|
void | ADC_DMARequestModeConfig (ADC_TypeDef *ADCx, uint32_t ADC_DMARequestMode) |
| Enables or disables the ADC DMA request after last transfer (Single-ADC mode) More...
|
|
void | ADC_ITConfig (ADC_TypeDef *ADCx, uint32_t ADC_IT, FunctionalState NewState) |
| Enables or disables the specified ADC interrupts. More...
|
|
FlagStatus | ADC_GetFlagStatus (ADC_TypeDef *ADCx, uint32_t ADC_FLAG) |
| Checks whether the specified ADC flag is set or not. More...
|
|
void | ADC_ClearFlag (ADC_TypeDef *ADCx, uint32_t ADC_FLAG) |
| Clears the ADCx's pending flags. More...
|
|
ITStatus | ADC_GetITStatus (ADC_TypeDef *ADCx, uint32_t ADC_IT) |
| Checks whether the specified ADC interrupt has occurred or not. More...
|
|
void | ADC_ClearITPendingBit (ADC_TypeDef *ADCx, uint32_t ADC_IT) |
| Clears the ADCx's interrupt pending bits. More...
|
|
This file contains all the functions prototypes for the ADC firmware library.
- Author
- MCD Application Team
- Version
- V1.0.1
- Date
- 20-April-2012
- Attention
© COPYRIGHT 2012 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.