SPI end of TX

Hi there,

We're using nRF52840, IAR 8.40.1, nRF5_SDK_16.0.0_98a08e2.

My question is, I need to toggle a GPIO pin right after SPI finishes the TX transaction and right before it starts the RX transaction.
Is it possible to do that?  If yes, where in the SDK can I intercept that?

For example, I notice that there's this event:
NRF_SPIM_EVENT_ENDTX

Is this the event where we just finished sending to MOSI and are about to receive from MISO?
If yes, is it possible to provide a callback when this event happens?

Thanks,
Cecylia

Parents Reply Children
Related