I have the following situation:
My device receives a number of RF packets, changes to TX mode, sends some data, goes back to RX mode and it should be able to access the received data that's on the RX FIFO.
But it is not able to access this data after the switch because every time it switch modes it calls nrf_esb_init() that calls the reset_fifos() function that sets all the FIFO's counters ( entry_point, exit_point, and count ) to zero.
Looking at the code looks like the data is actually never erased from the buffer after a reset. Just these counters are reset. The only way to lose the data is if it gets overwritten by an incoming packet.
So, I want to know if it is really necessary to reset all the counters of the RX FIFO after changing modes. I was wondering what kind of problems I can have if I just comment out the call to the function reset_fifos()
Thank you so much