/* FLEXIO UART EDMA receive finished callback function. 
This function is called when FLEXIO UART EDMA receive finished. It disables the UART RX EDMA request and sends kStatus_FLEXIO_UART_RxIdle to UART callback. */
static void FLEXIO_UART_TransferReceiveEDMACallback(edma_handle_t *handle, void *param, bool transferDone, uint32_t tcds)
/* FLEXIO UART EDMA receive finished callback function. 
This function is called when FLEXIO UART EDMA receive finished. It disables the UART RX EDMA request and sends kStatus_FLEXIO_UART_RxIdle to UART callback. */
static void FLEXIO_UART_TransferReceiveEDMACallback(edma_handle_t *handle, void *param, bool transferDone, uint32_t tcds)
{
    flexio_uart_edma_private_handle_t *uartPrivateHandle = (flexio_uart_edma_private_handle_t *)param;
    assert(uartPrivateHandle->handle);
    handle = handle;
    tcds = tcds;
    if (transferDone)
    {
        FLEXIO_UART_TransferAbortReceiveEDMA(uartPrivateHandle->base, uartPrivateHandle->handle);
        if (uartPrivateHandle->handle->callback)
        {
            uartPrivateHandle->handle->callback(uartPrivateHandle->base, uartPrivateHandle->handle,
                                                kStatus_FLEXIO_UART_RxIdle, uartPrivateHandle->handle->userData);
        }
    }
}