How to read SPI TX & RX data register status full or empty..?

Hi,

I want to get the SPI data register status regarding if they are full or empty.!
Kindly guide me with relevant APIs i can use.

Thanks,

Parents Reply
  • Hi

    To check your TX buffer for instance, you will need to use the p_tx_buffer which is the pointer to the TX buffer (or ctx->tx_buf) in the spi_nrfx files in the nRFConnect SDK. YOu then have to read the memory from this pointer to check whether the buffer is empty or filled. I'm afraid there's no specific "buffer status" check in the API.

    Best regards,

    Simon

Children
No Data
Related