/* SPIFI DMA send finished callback function. 
This function is called when SPIFI DMA send finished. It disables the SPIFI TX DMA request and sends kStatus_SPIFI_TxIdle to SPIFI callback. */
static void SPIFI_SendDMACallback(dma_handle_t *handle, void *param, bool transferDone, uint32_t intmode)
/* SPIFI DMA send finished callback function. 
This function is called when SPIFI DMA send finished. It disables the SPIFI TX DMA request and sends kStatus_SPIFI_TxIdle to SPIFI callback. */
static void SPIFI_SendDMACallback(dma_handle_t *handle, void *param, bool transferDone, uint32_t intmode)
{
    spifi_dma_private_handle_t *spifiPrivateHandle = (spifi_dma_private_handle_t *)param;
    handle = handle;
    intmode = intmode;
    if (transferDone)
    {
        SPIFI_TransferAbortSendDMA(spifiPrivateHandle->base, spifiPrivateHandle->handle);
        if (spifiPrivateHandle->handle->callback)
        {
            spifiPrivateHandle->handle->callback(spifiPrivateHandle->base, spifiPrivateHandle->handle,
                                                 kStatus_SPIFI_Idle, spifiPrivateHandle->handle->userData);
        }
    }
}