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

STM8S/A Standard Peripherals Library

stm8s_adc1.c File Reference

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

#include "stm8s_adc1.h"

Go to the source code of this file.

Functions

void ADC1_AWDChannelConfig (ADC1_Channel_TypeDef Channel, FunctionalState NewState)
 Enables or disables the analog watchdog for the given channel.
void ADC1_ClearFlag (ADC1_Flag_TypeDef Flag)
 Clear the specified ADC1 Flag.
void ADC1_ClearITPendingBit (ADC1_IT_TypeDef ITPendingBit)
 Clear the ADC1 End of Conversion pending bit.
void ADC1_Cmd (FunctionalState NewState)
 Enables or Disables the ADC1 peripheral.
void ADC1_ConversionConfig (ADC1_ConvMode_TypeDef ADC1_ConversionMode, ADC1_Channel_TypeDef ADC1_Channel, ADC1_Align_TypeDef ADC1_Align)
 Configure the ADC1 conversion on selected channel.
void ADC1_DataBufferCmd (FunctionalState NewState)
 Enables or Disables the ADC1 data store into the Data Buffer registers rather than in the Data Register.
void ADC1_DeInit (void)
 Deinitializes the ADC1 peripheral registers to their default reset values.
void ADC1_ExternalTriggerConfig (ADC1_ExtTrig_TypeDef ADC1_ExtTrigger, FunctionalState NewState)
 Configure the ADC1 conversion on external trigger event.
FlagStatus ADC1_GetAWDChannelStatus (ADC1_Channel_TypeDef Channel)
 Checks the specified analog watchdog channel status.
uint16_t ADC1_GetBufferValue (uint8_t Buffer)
 Get one sample of measured signal.
uint16_t ADC1_GetConversionValue (void)
 Get one sample of measured signal.
FlagStatus ADC1_GetFlagStatus (ADC1_Flag_TypeDef Flag)
 Checks the specified ADC1 flag status.
ITStatus ADC1_GetITStatus (ADC1_IT_TypeDef ITPendingBit)
 Returns the specified pending bit status.
void ADC1_Init (ADC1_ConvMode_TypeDef ADC1_ConversionMode, ADC1_Channel_TypeDef ADC1_Channel, ADC1_PresSel_TypeDef ADC1_PrescalerSelection, ADC1_ExtTrig_TypeDef ADC1_ExtTrigger, FunctionalState ADC1_ExtTriggerState, ADC1_Align_TypeDef ADC1_Align, ADC1_SchmittTrigg_TypeDef ADC1_SchmittTriggerChannel, FunctionalState ADC1_SchmittTriggerState)
 Initializes the ADC1 peripheral according to the specified parameters.
void ADC1_ITConfig (ADC1_IT_TypeDef ADC1_IT, FunctionalState NewState)
 Enables or disables the ADC1 interrupt.
void ADC1_PrescalerConfig (ADC1_PresSel_TypeDef ADC1_Prescaler)
 Configure the ADC1 prescaler division factor.
void ADC1_ScanModeCmd (FunctionalState NewState)
 Enables or Disables the ADC1 scan mode.
void ADC1_SchmittTriggerConfig (ADC1_SchmittTrigg_TypeDef ADC1_SchmittTriggerChannel, FunctionalState NewState)
 Enables or disables the ADC1 Schmitt Trigger on a selected channel.
void ADC1_SetHighThreshold (uint16_t Threshold)
 Sets the high threshold of the analog watchdog.
void ADC1_SetLowThreshold (uint16_t Threshold)
 Sets the low threshold of the analog watchdog.
void ADC1_StartConversion (void)
 Start ADC1 conversion.

Detailed Description

This file contains all the functions/macros for the ADC1 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_adc1.c.

STM8 Standard Peripherals Library: Footer

 

 

 

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