/* Returns the current SPIx Reception FIFO filled level.  */
uint16_t SPI_GetReceptionFIFOStatus(SPI_TypeDef *SPIx)
/* Returns the current SPIx Reception FIFO filled level.  */
uint16_t SPI_GetReceptionFIFOStatus(SPI_TypeDef *SPIx)
{
    return (uint16_t)((SPIx->SR & SPI_SR_FRLVL));
}