This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI DMA Changing MAXCNT

Dear Sir,

I am using SPIM ,  EasyDMA array list,with following flags

NRF_DRV_SPI_FLAG_NO_XFER_EVT_HANDLER  , NRF_DRV_SPI_FLAG_RX_POSTINC , NRF_DRV_SPI_FLAG_HOLD_XFER&

My sensor gives data ready indication via GPIO INTR.When data ready INTR occurs I need 2 SPIM transfers with different rx lengths.

1.tx len 1 bytes,rx len 480 bytes (read samples)
2.tx len 1 byte, rx len 2 bytes (clear interrupt)

Can I change the MAXCNT before each   nrf_spim_task_trigger(spi.u.spim.p_reg, NRF_SPIM_TASK_START) without effecting the NRF_DRV_SPI_FLAG_RX_POSTINC ?

Thank you

Related