Ringbuffer as shiftregister
At STM32G431 Is it possible to make a (SPI daisy chain) shift register with one cyclic ringbuffer.
With SPI peripheral as Full duplex Slave, with 2 DMA (RX TX) channels.
"HAL_SPI_TransmitReceive_DMA(SPI_GetHandle(), ringbuffer, ringbuffer, SPI_size); "
And stop DMA once NSS external pin interrupt accors ( rising edge).
Or in other words read and write to same buffer in dma is that possible?
I tested and it was working. Is this lucky or indeed possible, because SPI Transmit (read from buffer[x]) always happens before receiving (write in buffer[x]) from same index and therefore always guaranteed it works ?
