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 #425 background imageLoading...
Page #425 background image
UM1581
Serial peripheral interface (SPI)
DocID023800 Rev 1
425/584
read operation to SPI_DR register (SPI_I2S_ReceiveData())
followed by a read operation to SPI_SR register
(SPI_I2S_GetFlagStatus()).
ï‚· MODF (Mode Fault) flag is cleared by software sequence: a
read/write operation to SPI_SR register
(SPI_I2S_GetFlagStatus()) followed by a write operation to
SPI_CR1 register (SPI_Cmd() to enable the SPI).
20.2.11.6 SPI_I2S_GetITStatus
Function Name
ITStatus SPI_I2S_GetITStatus ( SPI_TypeDef * SPIx, uint8_t
SPI_I2S_IT)
Function Description
Checks whether the specified SPI/I2S interrupt has occurred 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_IT : specifies the SPI interrupt source to check. This
parameter can be one of the following values:
 SPI_I2S_IT_TXE : Transmit buffer empty interrupt.
 SPI_I2S_IT_RXNE : Receive buffer not empty interrupt.
 SPI_IT_MODF : Mode Fault interrupt.
 SPI_I2S_IT_OVR : Overrun interrupt.
 I2S_IT_UDR : Underrun interrupt.
 SPI_I2S_IT_FRE : Format Error interrupt.
Return values
ï‚· The new state of SPI_I2S_IT (SET or RESET).
Notes
ï‚· None.
20.3 SPI Firmware driver defines
20.3.1 SPI
SPI
SPI_BaudRate_Prescaler
ï‚· #define: SPI_BaudRatePrescaler_2 ((uint16_t)0x0000)
ï‚· #define: SPI_BaudRatePrescaler_4 ((uint16_t)0x0008)

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