/* LPSCI DMA send finished callback function. 
This function is called when LPSCI DMA send finished. It disables the LPSCI TX DMA request and sends kStatus_LPSCI_TxIdle to LPSCI callback. */
static void LPSCI_TransferSendDMACallback(dma_handle_t *handle, void *param)
/* LPSCI DMA send finished callback function. 
This function is called when LPSCI DMA send finished. It disables the LPSCI TX DMA request and sends kStatus_LPSCI_TxIdle to LPSCI callback. */
static void LPSCI_TransferSendDMACallback(dma_handle_t *handle, void *param)
{
    assert(handle);
    assert(param);
    lpsci_dma_private_handle_t *lpsciPrivateHandle = (lpsci_dma_private_handle_t *)param;
    LPSCI_EnableTxDMA(lpsciPrivateHandle->base, false);
    DMA_DisableInterrupts(handle->base, handle->channel);
    lpsciPrivateHandle->handle->txState = kLPSCI_TxIdle;
    if (lpsciPrivateHandle->handle->callback)
    {
        lpsciPrivateHandle->handle->callback(lpsciPrivateHandle->base, lpsciPrivateHandle->handle, kStatus_LPSCI_TxIdle,
                                             lpsciPrivateHandle->handle->userData);
    }
}