Hello,
I am using the microcontroller LPC55S69 to communicate with a device via SPI, using DMA.
The device is spitting data every 2ms, and i am saving it automatically in each descriptor.
I have 4 descriptors, when descriptor 2 concludes saving the data, i want it to flag intA, and when descriptor 4 finished filling the data in the buffer i want it to flag intB.
I have the following callback functions:
void SPI_DMA_master_callback(SPI_Type *base, spi_dma_handle_t *masterHandle, status_t status, void *userData)
void SPI_RxDMACallback(dma_handle_t *handle, void *param, bool transferDone, uint32_t tcds)
void SPI_TxDMACallback(dma_handle_t *handle, void *param, bool transferDone, uint32_t tcds)
To know the state of intA or intB, i should read the variable "tcds", however it never enters in the SPI_RxDMACallback() or SPI_TxDMACallback(), the code only gets into the function SPI_DMA_master_callback() after finishing all the descriptors.
Is there a way to check when it occurs intA and intB?
Thank you,
Kans