stm32 /stm32wb0 /STM32WB07 /SPI2 /SPI2_SR

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as SPI2_SR

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (RXNE)RXNE 0 (TXE)TXE 0 (CHSIDE)CHSIDE 0 (UDR)UDR 0 (CRCERR)CRCERR 0 (MODF)MODF 0 (OVR)OVR 0 (BSY)BSY 0 (FRE)FRE 0FRLVL 0FTLVL

Description

SPI2_SR register

Fields

RXNE

Receive buffer not empty

  • 0: Rx buffer empty
  • 1: Rx buffer not empty
TXE

Transmit buffer empty

  • 0: No more empty space in Tx buffer. (software shall not write data to the Tx buffer).
  • 1: At least one empty space in Tx buffer. (software may write data to the Tx buffer).
CHSIDE

Channel side

  • 0: Channel Left has to be transmitted or has been received
  • 1: Channel Right has to be transmitted or has been received
UDR

Underrun flag

  • 0: No underrun occurred
  • 1: Underrun occurred
CRCERR

CRC error flag

  • 0: CRC value received matches the SPIx_RXCRCR value
  • 1: CRC value received does not match the SPIx_RXCRCR value This flag is set by hardware and cleared by software writing 0.
MODF

Mode fault

  • 0: No mode fault occurred
  • 1: Mode fault occurred
OVR

Overrun flag

  • 0: No overrun occurred
  • 1: Overrun occurred
BSY

Busy flag

  • 0: SPI (or I2S) not busy
  • 1: SPI (or I2S) is busy in communication or Tx buffer is not empty This flag is set and cleared by hardware.
FRE

Frame format error This flag is used for SPI in TI slave mode and I2S slave mode. Refer to Section 18.5.10: SPI error flags and Section 18.7.6: I2S error flags. This flag is set by hardware and reset when SPIx_SR is read by software.

  • 0: No frame format error
  • 1: A frame format error occurred
FRLVL

FIFO reception level These bits are set and cleared by hardware.

  • 00: FIFO empty
  • 01: 1/4 FIFO
  • 10: 1/2 FIFO
  • 11: FIFO full
FTLVL

FIFO Transmission Level These bits are set and cleared by hardware.

  • 00: FIFO empty
  • 01: 1/4 FIFO
  • 10: 1/2 FIFO
  • 11: FIFO full (considered as FULL when the FIFO threshold is greater than 1/2)

Links

()