AnsweredAssumed Answered

HAL_SPI_Receive() explanation

Question asked by thy on Mar 9, 2016
Latest reply on Mar 15, 2016 by thy
Hi,

I am examining HAL_SPI_Receive(). At some point it calls
return HAL_SPI_TransmitReceive(hspi, pData, pData, Size, Timeout);

where pData is the pointer to the rx buffer and Size is its size passed to HAL_SPI_Receive(). So, pData is used as tx buffer and rx buffer in HAL_SPI_TransmitReceive(). So, do I have to be sure the rx buffer is empty before the reception?

Outcomes