SPI transmitting and receiving sequence | Cypress Semiconductor
SPI transmitting and receiving sequence
I am using an 8 bit SPI master, this is the transmitting sequence:
temp = SPIM_ReadTxStatus();
/* Ensure that previous SPI read is done, or SPI is idle before sending data */
if((temp & (SPIM_STS_SPI_DONE | SPIM_STS_SPI_IDLE)))
what is the receiving sequence? do I just simply write "SPIM_ReadRxData();"?