Question
HAL_SPI_Receive() explanation
Posted on March 09, 2016 at 14:21
Hi,
I am examiningHAL_SPI_Receive()
. At some point it callsreturn
HAL_SPI_TransmitReceive(hspi, pData, pData, Size, Timeout);
where
pData
is the pointer to the rx buffer andSize
is its size passed toHAL_SPI_Receive()
. So,pData
is used as tx buffer and rx buffer inHAL_SPI_TransmitReceive()
. So, do I have to be sure the rx buffer is empty before the reception?