Mid-byte SPI transfer detection
Hello,
This is assuming STM32G0 with SPI configured as slave.
I'm looking for a way to detect if a ongoing SPI transfer is happening. Not at the byte level but at the bit level.
So I can detect if some incomplete byte is pending in the RX buffer (due to a faulty clock signal).
Is there a simple way / bit for that in the SPI registers? Maybe I don't use the correct phrasing but I could not find anything about it. BSY is for a multi-byte transfer afaik.
Also, can someone confirm that when the CS is toggled, it does trash the incomplete byte received and start clean for next byte to be received. That would make sense.
Much appreciated, thank you,
