STM32F0 Standard Peripheral bibliotheek  1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
Initialization and Configuration functions

Initialization and Configuration functions. More...

Functions

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_Cmd (ADC_TypeDef *ADCx, FunctionalState NewState)
 Enables or disables the specified ADC peripheral. 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...
 

Detailed Description

Initialization and Configuration functions.

 ===============================================================================
          ##### Initialization and Configuration functions #####
 ===============================================================================
    [..] This section provides functions allowing to:
        (+) Initialize and configure the ADC Prescaler
        (+) ADC Conversion Resolution (12bit..6bit)
        (+) ADC Continuous Conversion Mode (Continuous or Single conversion)
        (+) External trigger Edge and source 
        (+) Converted data alignment (left or right)
        (+) The direction in which the channels will be scanned in the sequence
        (+) Enable or disable the ADC peripheral

Function Documentation

void ADC_Cmd ( ADC_TypeDef *  ADCx,
FunctionalState  NewState 
)

Enables or disables the specified ADC peripheral.

Parameters
ADCx,:where x can be 1 to select the ADC1 peripheral.
NewState,:new state of the ADCx peripheral. This parameter can be: ENABLE or DISABLE.
Return values
None
void ADC_DeInit ( ADC_TypeDef *  ADCx)

Deinitializes ADC1 peripheral registers to their default reset values.

Parameters
ADCx,:where x can be 1 to select the ADC peripheral.
Return values
None
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, Data Alignment, continuous mode activation, External trigger source and edge, Sequence Scan Direction).
Parameters
ADCx,:where x can be 1 to select the ADC peripheral.
ADC_InitStruct,:pointer to an ADC_InitTypeDef structure that contains the configuration information for the specified ADC peripheral.
Return values
None
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.

Parameters
ADCx,:where x can be 1 to select the ADC1 peripheral.
ADC_JitterOff,:This parameter can be :
  • ADC_JitterOff_PCLKDiv2: Remove jitter when ADC is clocked by PLCK divided by 2
  • ADC_JitterOff_PCLKDiv4: Remove jitter when ADC is clocked by PLCK divided by 4
NewState,:new state of the ADCx jitter. This parameter can be: ENABLE or DISABLE.
Return values
None
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, Data Alignment, continuous mode activation, External trigger source and edge, Sequence Scan Direction).
Parameters
ADC_InitStruct,:pointer to an ADC_InitTypeDef structure which will be initialized.
Return values
None