EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #422 background imageLoading...
Page #422 background image
Serial peripheral interface (SPI)
UM1581
422/584
DocID023800 Rev 1
20.2.10.2 SPI_LastDMATransferCmd
Function Name
void SPI_LastDMATransferCmd ( SPI_TypeDef * SPIx,
uint16_t SPI_LastDMATransfer)
Function Description
Configures the number of data to transfer type(Even/Odd) for the
DMA last transfers and for the selected SPI.
Parameters
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
ï‚· SPI_LastDMATransfer : specifies the SPI last DMA
transfers state. This parameter can be one of the following
values:
 SPI_LastDMATransfer_TxEvenRxEven : Number of
data for transmission Even and number of data for
reception Even.
 SPI_LastDMATransfer_TxOddRxEven : Number of
data for transmission Odd and number of data for
reception Even.
 SPI_LastDMATransfer_TxEvenRxOdd : Number of
data for transmission Even and number of data for
reception Odd.
 SPI_LastDMATransfer_TxOddRxOdd : RNumber of
data for transmission Odd and number of data for
reception Odd.
Return values
ï‚· None.
Notes
ï‚· This function have a meaning only if DMA mode is selected
and if the packing mode is used (data length <= 8 and DMA
transfer size halfword)
20.2.11 Interrupts and flags management functions
20.2.11.1 SPI_I2S_ITConfig
Function Name
void SPI_I2S_ITConfig ( SPI_TypeDef * SPIx, uint8_t
SPI_I2S_IT, FunctionalState NewState)
Function Description
Enables or disables the specified SPI/I2S interrupts.
Parameters
ï‚· SPIx : To select the SPIx/I2Sx peripheral, where x can be: 1,
2 or 3 in SPI mode or 2 or 3 in I2S mode or I2Sxext for I2S full
duplex mode.
ï‚· SPI_I2S_IT : specifies the SPI interrupt source to be enabled
or disabled. This parameter can be one of the following
values:
 SPI_I2S_IT_TXE : Tx buffer empty interrupt mask
 SPI_I2S_IT_RXNE : Rx buffer not empty interrupt mask

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals