STM32F37 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F37 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
Regular/Injected Channels DMA Configuration function

Regular/Injected Channels DMA Configuration functions. More...

Functions

void SDADC_DMAConfig (SDADC_TypeDef *SDADCx, uint32_t SDADC_DMATransfer, FunctionalState NewState)
 Configures the DMA transfer for regular/injected conversions. More...
 

Detailed Description

Regular/Injected Channels DMA Configuration functions.

 ===============================================================================
          ##### Regular Channels DMA Configuration functions ##### 
 ===============================================================================  
    [..] This section provides functions allowing to configure the DMA for SDADC regular 
         or injected channels.
    [..] Since converted value is 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 SDADC Data register. 
         When the DMA is enabled for regular/injected channel (using the SDADC_DMAConfig()
         function), after each conversion of a regular/injected channel,
         a DMA request is generated.

Function Documentation

void SDADC_DMAConfig ( SDADC_TypeDef *  SDADCx,
uint32_t  SDADC_DMATransfer,
FunctionalState  NewState 
)

Configures the DMA transfer for regular/injected conversions.

Note
DMA requests can't be enabled for both regular and injected conversions.
Parameters
SDADCx,:where x can be 1, 2 or 3 to select the SDADC peripheral.
SDADC_DMATransfer,:Specifies the SDADC DMA transfer. This parameter can be one of the following values:
  • SDADC_DMATransfer_Regular: When enabled, DMA manages reading the data for the regular channel.
  • SDADC_DMATransfer_Injected: When enabled, DMA manages reading the data for the injected channel.
NewStateIndicates the new state of the SDADC DMA interface. This parameter can be: ENABLE or DISABLE.
Return values
None