/* SPI Set Bidirectional Simplex Receive Only Mode. 
The SPI peripheral is set for bidirectional transfers in two-wire simplex mode (using a clock wire and a bidirectional data wire), and is placed in a receive state. */
void spi_set_bidirectional_receive_only_mode(uint32_t spi)
/* SPI Set Bidirectional Simplex Receive Only Mode. 
The SPI peripheral is set for bidirectional transfers in two-wire simplex mode (using a clock wire and a bidirectional data wire), and is placed in a receive state. */
void spi_set_bidirectional_receive_only_mode(uint32_t spi)
{
	SPI_CR1(spi) |= SPI_CR1_BIDIMODE;
	SPI_CR1(spi) &= ~SPI_CR1_BIDIOE;
}