EasyManuals Logo

ST STM32F31xx User Manual

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
Page #424 background imageLoading...
Page #424 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals