EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Serial peripheral interface (SPI)
UM1581
424/584
DocID023800 Rev 1
Notes
None.
20.2.11.4 SPI_I2S_GetFlagStatus
Function Name
FlagStatus SPI_I2S_GetFlagStatus ( SPI_TypeDef * SPIx,
uint16_t SPI_I2S_FLAG)
Function Description
Checks whether the specified SPI flag is set or not.
Parameters
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.
Return values
The new state of SPI_I2S_FLAG (SET or RESET).
Notes
None.
20.2.11.5 SPI_I2S_ClearFlag
Function Name
void SPI_I2S_ClearFlag ( SPI_TypeDef * SPIx, uint16_t
SPI_I2S_FLAG)
Function Description
Clears the SPIx CRC Error (CRCERR) flag.
Parameters
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.
Return values
None.
Notes
OVR (OverRun error) flag is cleared by software sequence: a

Table of Contents

Related product manuals