/* Returns the current SPIx Transmission FIFO filled level.  */
uint16_t SPI_GetTransmissionFIFOStatus(SPI_TypeDef *SPIx)
/* Returns the current SPIx Transmission FIFO filled level.  */
uint16_t SPI_GetTransmissionFIFOStatus(SPI_TypeDef *SPIx)
{
  return (uint16_t)((SPIx->SR & SPI_SR_FTLVL));
}