SPI2_CR2 register
RXDMAEN | Rx buffer DMA enable When this bit is set, a DMA request is generated whenever the RXNE flag is set.
|
TXDMAEN | Tx buffer DMA enable When this bit is set, a DMA request is generated whenever the TXE flag is set.
|
SSOE | SS output enable
|
NSSP | NSS pulse management This bit is used in master mode only. it allow the SPI to generate an NSS pulse between two consecutive data when doing continuous transfers. In the case of a single data transfer, it forces the NSS pin high level after the transfer. It has no meaning if CPHA = 1, or FRF = 1.
|
FRF | Frame format
|
ERRIE | Error interrupt enable This bit controls the generation of an interrupt when an error condition occurs (CRCERR, OVR, MODF in SPI mode, FRE at TI mode and UDR, OVR, and FRE in I2S mode).
|
RXNEIE | RX buffer not empty interrupt enable
|
TXEIE | Tx buffer empty interrupt enable
|
DS | Data size These bits configure the data length for SPI transfers:
|
FRXTH | FIFO reception threshold FRXTH shall be set according the read access (16-bit or 8-bit) to the FIFO. This bit is used to set the threshold of the RXFIFO that triggers an RXNE event
|
LDMA_RX | Last DMA transfer for reception This bit is used in data packing mode, to define if the total number of data to receive by DMA is odd or even. It has significance only if the RXDMAEN bit in the SPIx_CR2 register is set and if packing mode is used (data length =< 8-bit and write access to SPIx_DR is 16-bit wide). It has to be written when the SPI is disabled (SPE = 0 in the SPIx_CR1 register).
|
LDMA_TX | Last DMA transfer for transmission This bit is used in data packing mode, to define if the total number of data to transmit by DMA is odd or even. It has significance only if the TXDMAEN bit in the SPIx_CR2 register is set and if packing mode is used (data length =< 8-bit and write access to SPIx_DR is 16-bit wide). It has to be written when the SPI is disabled (SPE = 0 in the SPIx_CR1 register).
|