firmware/src/platform/std_periph/src/stm32f4xx_spi.c
/**
  * @brief  Returns the most recent received data by the SPIx/I2Sx peripheral. 
  * @param  SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2, 3, 4, 5 or 6 
  *         in SPI mode or 2 or 3 in I2S mode or I2Sxext for I2S full duplex mode. 
  * @retval The value of the received data.
  */
@brief  Returns the most recent received data by the SPIx/I2Sx peripheral.
@param  SPIx: To select the SPIx/I2Sx peripheral, where x can be: 1, 2, 3, 4, 5 or 6
in SPI mode or 2 or 3 in I2S mode or I2Sxext for I2S full duplex mode.
@retval The value of the received data.
@brief Returns the most recent received data by the SPIx / I2Sx peripheral . @param SPIx : To select the SPIx / I2Sx peripheral where x can be : 1 2 3 4 5 or 6 in SPI mode or 2 or 3 in I2S mode or I2Sxext for I2S full duplex mode . @retval The value of the received data .
uint16_t SPI_I2S_ReceiveData(SPI_TypeDef* SPIx)
{
  assert_param(IS_SPI_ALL_PERIPH_EXT(SPIx));
  return SPIx->DR;
}
uint16_t SPI_I2S_ReceiveData ( SPI_TypeDef * SPIx ) { assert_param ( IS_SPI_ALL_PERIPH_EXT ( SPIx ) ) ; return SPIx -> DR ; }
@brief  Returns the most recent received data by the SPIx/I2Sx peripheral.
@brief Returns the most recent received data by the SPIx / I2Sx peripheral .
/* Check the parameters */ /* Return the data in the DR register */