STM8S/A Standard Peripherals Drivers: stm8s_adc2.c File Reference

STM8S/A Standard Peripherals Library

stm8s_adc2.c File Reference

This file contains all the functions/macros for the ADC2 peripheral. More...

#include "stm8s_adc2.h"

Go to the source code of this file.

Functions

void ADC2_ClearFlag (void)
 Clear the ADC2 EOC Flag.
void ADC2_ClearITPendingBit (void)
 Clear the ADC2 End of Conversion pending bit.
void ADC2_Cmd (FunctionalState NewState)
 Enables or Disables the ADC2 peripheral.
void ADC2_ConversionConfig (ADC2_ConvMode_TypeDef ADC2_ConversionMode, ADC2_Channel_TypeDef ADC2_Channel, ADC2_Align_TypeDef ADC2_Align)
 Configure the ADC2 conversion on selected channel.
void ADC2_DeInit (void)
 Deinitializes the ADC2 peripheral registers to their default reset values.
void ADC2_ExternalTriggerConfig (ADC2_ExtTrig_TypeDef ADC2_ExtTrigger, FunctionalState NewState)
 Configure the ADC2 conversion on external trigger event.
uint16_t ADC2_GetConversionValue (void)
 Get one sample of measured signal.
FlagStatus ADC2_GetFlagStatus (void)
 Checks the ADC2 EOC flag status.
ITStatus ADC2_GetITStatus (void)
 Returns the EOC pending bit status.
void ADC2_Init (ADC2_ConvMode_TypeDef ADC2_ConversionMode, ADC2_Channel_TypeDef ADC2_Channel, ADC2_PresSel_TypeDef ADC2_PrescalerSelection, ADC2_ExtTrig_TypeDef ADC2_ExtTrigger, FunctionalState ADC2_ExtTriggerState, ADC2_Align_TypeDef ADC2_Align, ADC2_SchmittTrigg_TypeDef ADC2_SchmittTriggerChannel, FunctionalState ADC2_SchmittTriggerState)
 Initializes the ADC2 peripheral according to the specified parameters.
void ADC2_ITConfig (FunctionalState NewState)
 Enables or disables the ADC2 interrupt.
void ADC2_PrescalerConfig (ADC2_PresSel_TypeDef ADC2_Prescaler)
 Configure the ADC2 prescaler division factor.
void ADC2_SchmittTriggerConfig (ADC2_SchmittTrigg_TypeDef ADC2_SchmittTriggerChannel, FunctionalState NewState)
 Enables or disables the ADC2 Schmitt Trigger on a selected channel.
void ADC2_StartConversion (void)
 Start ADC2 conversion.

Detailed Description

This file contains all the functions/macros for the ADC2 peripheral.

Author:
MCD Application Team
Version:
V2.2.0
Date:
30-September-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 stm8s_adc2.c.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com