/* Sends a byte through the SPI interface and return the byte received from the SPI bus.  */
uint8_t sEE_SendByte(uint8_t byte)
/* Sends a byte through the SPI interface and return the byte received from the SPI bus.  */
uint8_t sEE_SendByte(uint8_t byte)
{
  while (SPI_I2S_GetFlagStatus(sEE_SPI, SPI_I2S_FLAG_TXE) == RESET);
  SPI_SendData(sEE_SPI, byte);
  while (SPI_I2S_GetFlagStatus(sEE_SPI, SPI_I2S_FLAG_RXNE) == RESET);
  return (uint8_t)SPI_ReceiveData(sEE_SPI);
}