Serial peripheral interface (SPI)
20.2.11.4 SPI_I2S_GetFlagStatus
FlagStatus SPI_I2S_GetFlagStatus ( SPI_TypeDef * SPIx,
uint16_t SPI_I2S_FLAG)
Checks whether the specified SPI flag is set or not.
ï‚· 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_FLAG : specifies the SPI flag to check. This
parameter can be one of the following values:
ï€ SPI_I2S_FLAG_TXE : Transmit buffer empty flag.
ï€ SPI_I2S_FLAG_RXNE : Receive buffer not empty flag.
ï€ SPI_I2S_FLAG_BSY : Busy flag.
ï€ SPI_I2S_FLAG_OVR : Overrun flag.
ï€ SPI_I2S_FLAG_MODF : Mode Fault flag.
ï€ SPI_I2S_FLAG_CRCERR : CRC Error flag.
ï€ SPI_I2S_FLAG_FRE : TI frame format error flag.
ï€ I2S_FLAG_UDR : Underrun Error flag.
ï€ I2S_FLAG_CHSIDE : Channel Side flag.
ï‚· The new state of SPI_I2S_FLAG (SET or RESET).
20.2.11.5 SPI_I2S_ClearFlag
void SPI_I2S_ClearFlag ( SPI_TypeDef * SPIx, uint16_t
SPI_I2S_FLAG)
Clears the SPIx CRC Error (CRCERR) flag.
ï‚· 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_FLAG : specifies the SPI flag to clear. This function
clears only CRCERR flag.
ï‚· OVR (OverRun error) flag is cleared by software sequence: a