Serial peripheral interface (SPI)
20.2.10.2 SPI_LastDMATransferCmd
void SPI_LastDMATransferCmd ( SPI_TypeDef * SPIx,
uint16_t SPI_LastDMATransfer)
Configures the number of data to transfer type(Even/Odd) for the
DMA last transfers and for the selected SPI.
ï‚· 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.
ï‚· 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
void SPI_I2S_ITConfig ( SPI_TypeDef * SPIx, uint8_t
SPI_I2S_IT, FunctionalState NewState)
Enables or disables the specified SPI/I2S interrupts.
ï‚· 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