I read the documentation, but didn't really grasp how to use nrf_drv_i2s_next_buffers_set() or the approrpriate usage of NRFX_I2S_STATUS_NEXT_BUFFERS_NEEDED
I read the documentation, but didn't really grasp how to use nrf_drv_i2s_next_buffers_set() or the approrpriate usage of NRFX_I2S_STATUS_NEXT_BUFFERS_NEEDED
Take a look at the function data_handler() inside main.c in the i2s example (located in nRF5_SDK_15.3.0_59ac345\examples\peripheral\i2s) where the function nrf_drv_i2s_next_buffers_set(..) is used.
Best regards,
Simon
I should have mentioned that I already looked at the example code. It's a bit too cluttered in there for me to tell what's going on. I even did a diff between the example from the last sdk version before the change that added nrf_drv_i2s_next_buffers_set.
I am not too familiar with the i2s bus interface, and I tried to read up on it. However it was quite complex and I did not grasp it fully enough to give you a satisfying answer. However I would recommend you to use some time and really understand stuff from the bottom up. I would approach it in the following manner:
If you've done all this and are still confused, please inform me about what you understand so far and what you're confused about, and I will put off some time to read up, and see if I can help you progress.
Best regards,
Simon
I ended up adopting a different approach, since I only needed the first transfer.