I am reading data over the duration of 3 seconds on SPI, but while I'm doing that, I need to send that data over RF using microESB library.
I need to make sure the read is not blocking RF send and vice versa. The reading is the most imporant. So I imagine some kind of a big buffer that holds all the data I read, where a task independently reads what's filled in the buffer at it's own pace. As you know transfers can fail, and take substantially longer than a quick SPI read. Right now I read from SPI with 10 ms nrf_delay_ms() in a loop over 3 seconds. I also have the possibility to have the SPI interrupting when it's internal ring buffer is full, doing a large read in short bursts.
Thanks!