Serial peripheral interface (SPI)
ï€ SPI_I2S_IT_ERR : Error interrupt mask
ï‚· NewState : new state of the specified SPI interrupt. This
parameter can be: ENABLE or DISABLE.
20.2.11.2 SPI_GetTransmissionFIFOStatus
uint16_t SPI_GetTransmissionFIFOStatus ( SPI_TypeDef *
SPIx)
Returns the current SPIx Transmission FIFO filled level.
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
ï‚· The Transmission FIFO filling state.
ï€ SPI_TransmissionFIFOStatus_Empty: when FIFO is
empty
ï€ SPI_TransmissionFIFOStatus_1QuarterFull: if more
than 1 quarter-full.
ï€ SPI_TransmissionFIFOStatus_HalfFull: if more than
1 half-full.
ï€ SPI_TransmissionFIFOStatus_Full: when FIFO is full.
20.2.11.3 SPI_GetReceptionFIFOStatus
uint16_t SPI_GetReceptionFIFOStatus ( SPI_TypeDef * SPIx)
Returns the current SPIx Reception FIFO filled level.
ï‚· SPIx : where x can be 1, 2 or 3 to select the SPI peripheral.
ï‚· The Reception FIFO filling state.
ï€ SPI_ReceptionFIFOStatus_Empty: when FIFO is
empty
ï€ SPI_ReceptionFIFOStatus_1QuarterFull: if more than
1 quarter-full.
ï€ SPI_ReceptionFIFOStatus_HalfFull: if more than 1
half-full.
ï€ SPI_ReceptionFIFOStatus_Full: when FIFO is full.