/* LPUART EDMA receive finished callback function. 
This function is called when LPUART EDMA receive finished. It disables the LPUART RX EDMA request and sends kStatus_LPUART_RxIdle to LPUART callback. */
static void LPUART_ReceiveEDMACallback(edma_handle_t *handle, void *param, bool transferDone, uint32_t tcds)
/* LPUART EDMA receive finished callback function. 
This function is called when LPUART EDMA receive finished. It disables the LPUART RX EDMA request and sends kStatus_LPUART_RxIdle to LPUART callback. */
static void LPUART_ReceiveEDMACallback(edma_handle_t *handle, void *param, bool transferDone, uint32_t tcds)
{
    assert(NULL != param);
    lpuart_edma_private_handle_t *lpuartPrivateHandle = (lpuart_edma_private_handle_t *)param;
    handle = handle;
    tcds   = tcds;
    if (transferDone)
    {
        LPUART_TransferAbortReceiveEDMA(lpuartPrivateHandle->base, lpuartPrivateHandle->handle);
        if (NULL != lpuartPrivateHandle->handle->callback)
        {
            lpuartPrivateHandle->handle->callback(lpuartPrivateHandle->base, lpuartPrivateHandle->handle,
                                                  kStatus_LPUART_RxIdle, lpuartPrivateHandle->handle->userData);
        }
    }
}