AnsweredAssumed Answered

SPI Configuration

Question asked by rodriguey.pablo on Nov 1, 2011
Hello,

I was learning reading the SPI documentation and there is something I do not understand.
In the file stm32f10x_spi.h it is defined:

#define SPI_Direction_2Lines_FullDuplex ((uint16_t)0x0000)
#define SPI_Direction_2Lines_RxOnly     ((uint16_t)0x0400)
#define SPI_Direction_1Line_Rx          ((uint16_t)0x8000)
#define SPI_Direction_1Line_Tx          ((uint16_t)0xC000)

... the four modalities for the SPI. The one I do not understand how the SPI_Direction_2Lines_RxOnly works. Can anybody explain me how to connect  the wires (i.e. MISO, MOSI) between the slave and the master and how the flow of data work?

Thanks in advance,

Outcomes