/* LPUART DMA send finished callback function. 
This function is called when LPUART DMA send finished. It disables the LPUART TX DMA request and sends kStatus_LPUART_TxIdle to LPUART callback. */
static void LPUART_TransferSendDMACallback(dma_handle_t *handle, void *param)
/* LPUART DMA send finished callback function. 
This function is called when LPUART DMA send finished. It disables the LPUART TX DMA request and sends kStatus_LPUART_TxIdle to LPUART callback. */
static void LPUART_TransferSendDMACallback(dma_handle_t *handle, void *param)
{
    lpuart_dma_private_handle_t *lpuartPrivateHandle = (lpuart_dma_private_handle_t *)param;
    LPUART_EnableTxDMA(lpuartPrivateHandle->base, false);
    DMA_DisableInterrupts(lpuartPrivateHandle->handle->txDmaHandle->base,
                          lpuartPrivateHandle->handle->txDmaHandle->channel);
    lpuartPrivateHandle->handle->txState = kLPUART_TxIdle;
    if (lpuartPrivateHandle->handle->callback)
    {
        lpuartPrivateHandle->handle->callback(lpuartPrivateHandle->base, lpuartPrivateHandle->handle,
                                              kStatus_LPUART_TxIdle, lpuartPrivateHandle->handle->userData);
    }
}