I am transferring 10 bytes from master to slave over SPI+DMA.
How can I check whether how many bytes the receiver has at that moment and if all the 10 byte has not been received then stops the process.
Because the master after sending 10 bytes should get an answer from slave but if the slave has not received full byte it waits and system go in indifinite.......
Checking the receiver for how many bytes it received??
Does HAL has any function to do that??
Or is there any register which can accomplice this process??
Any idea??
How can I check whether how many bytes the receiver has at that moment and if all the 10 byte has not been received then stops the process.
Because the master after sending 10 bytes should get an answer from slave but if the slave has not received full byte it waits and system go in indifinite.......
Checking the receiver for how many bytes it received??
Does HAL has any function to do that??
Or is there any register which can accomplice this process??
Any idea??