I have been studying the datasheets describing AVRs that include SPI peripherals (e.g. mega48, mega164p) and I have not been able to identify a way to distinguish the following two operating states of the peripheral:
- 1. Transmission of a byte has started but not finished
2. All bytes received have been read (and no transmission is in progress)
I would like to be able to tell the difference. Am I stuck keeping track of this on my own, or is there some way to distinguish these two operating states by examining the I/O registers?