Does it have any API for notify when SPI burst read and write finished

Hi

      I use nRF7002-DK, SDK:V2.52 zephyr driver, our application is use for SPI and UART for transmition.For SPI and UART isn't all are EDMA?I use SPI burst read or write, how can I know the the transceive is already finished?does it have API for get the information about SPI activity is finished it or not? does it have any document and sample code for how to use for this API?

Best Regards

     Tina

Parents Reply Children
  • You should be able to search through the nRF Connect SDK repositories or documentation for use of spi_transceive_cb() if you want.

    Normally though, I expect it is more common to place all the spi transcations you want to perform in a separate thread, and then each of the spi_transceive_dt() will be synchrounous transfer, thereby the spi_transceive_dt() will not return until the transfer is complete. This is slightly more easy to implement than having to wait for the callback for each transfer. Other threads can run while spi_transceive_dt() is executed.

    Current consumption is the same for the two approaches.

    Kenneth

  • Hi Kenneth

                      Thanks for your suggestion, for our application we need to know EDMA finished it or not and need to know cs pin status to decide to go next step or for next data transceive start.

    Best Regards

         Tina 

Related