STM8L15x Standard Peripherals Drivers: ADC Channels DMA Configuration function

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

ADC Channels DMA Configuration function

ADC Channels DMA Configuration function. More...

Functions

void ADC_DMACmd (ADC_TypeDef *ADCx, FunctionalState NewState)
 Enables or disables the specified ADC DMA request.

Detailed Description

ADC Channels DMA Configuration function.

 ===============================================================================
                   ADC Channels DMA Configuration function
 ===============================================================================  

  This section provides a function allowing to configure the DMA for ADC 
  channel.
  Since converted channel values are stored into a unique data register, 
  it is useful to use DMA for conversion of more than one channel. This 
  avoids the loss of the data already stored in the ADC Data register. 
  
  When the DMA mode is enabled (using the ADC_DMACmd() function), after each
  conversion of a channel, a DMA request is generated.


Function Documentation

void ADC_DMACmd ( ADC_TypeDef ADCx,
FunctionalState  NewState 
)

Enables or disables the specified ADC DMA request.

Parameters:
ADCxwhere x can be 1 to select the specified ADC peripheral.
NewState: new state of the specified ADC DMA transfer. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 754 of file stm8l15x_adc.c.

References ADC_SQR1_DMAOFF, DISABLE, IS_FUNCTIONAL_STATE, and ADC_struct::SQR.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com