Serial peripheral interface (SPI)
20.2.9.5 SPI_GetCRCPolynomial
uint16_t SPI_GetCRCPolynomial ( SPI_TypeDef * SPIx)
Returns the CRC Polynomial register value for the specified SPI.
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
ï‚· The CRC Polynomial register value.
20.2.10 DMA transfers management functions
20.2.10.1 SPI_I2S_DMACmd
void SPI_I2S_DMACmd ( SPI_TypeDef * SPIx, uint16_t
SPI_I2S_DMAReq, FunctionalState NewState)
Enables or disables the SPIx/I2Sx DMA interface.
ï‚· 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_DMAReq : specifies the SPI DMA transfer request
to be enabled or disabled. This parameter can be any
combination of the following values:
ï€ SPI_I2S_DMAReq_Tx : Tx buffer DMA transfer request
ï€ SPI_I2S_DMAReq_Rx : Rx buffer DMA transfer request
ï‚· NewState : new state of the selected SPI DMA transfer
request. This parameter can be: ENABLE or DISABLE.