/* Returns the most recent received data by the SPIx/I2Sx peripheral.  */
uint8_t SPI_ReceiveData8(SPI_TypeDef *SPIx)
/* Returns the most recent received data by the SPIx/I2Sx peripheral.  */
uint8_t SPI_ReceiveData8(SPI_TypeDef *SPIx)
{
  uint32_t spixbase = 0x00;
  spixbase = (uint32_t)SPIx;
  spixbase += 0x0C;
  return *(__IO uint8_t *) spixbase;
}