STM8L15x Standard Peripherals Drivers: DMA transfers management functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

DMA transfers management functions

DMA transfers management functions. More...

Functions

void SPI_DMACmd (SPI_TypeDef *SPIx, SPI_DMAReq_TypeDef SPI_DMAReq, FunctionalState NewState)
 Enables or disables the SPI DMA interface.

Detailed Description

DMA transfers management functions.

 ===============================================================================
                         DMA transfers management functions
 ===============================================================================  


Function Documentation

void SPI_DMACmd ( SPI_TypeDef SPIx,
SPI_DMAReq_TypeDef  SPI_DMAReq,
FunctionalState  NewState 
)

Enables or disables the SPI DMA interface.

Parameters:
SPIx,:where x can be 1 to select the specified SPI peripheral.
SPI_DMAReqSpecifies the SPI DMA transfer request to be enabled or disabled. This parameter can be one of the following values:
  • SPI_DMAReq_RX: SPI DMA Rx transfer requests
  • SPI_DMAReq_TX: SPI DMA Tx transfer requests
NewStateIndicates the new state of the SPI DMA request. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 519 of file stm8l15x_spi.c.

References SPI_struct::CR3, DISABLE, IS_FUNCTIONAL_STATE, and IS_SPI_DMAREQ.

STM8S Firmware Library: Overview

 

 

 

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