/* FLEXIO UART DMA receive finished callback function. 
This function is called when FLEXIO UART DMA receive finished. It disables the FLEXIO UART RX DMA request and sends kStatus_FLEXIO_UART_RxIdle to UART callback. */
static void FLEXIO_UART_TransferReceiveDMACallback(dma_handle_t *handle, void *param)
/* FLEXIO UART DMA receive finished callback function. 
This function is called when FLEXIO UART DMA receive finished. It disables the FLEXIO UART RX DMA request and sends kStatus_FLEXIO_UART_RxIdle to UART callback. */
static void FLEXIO_UART_TransferReceiveDMACallback(dma_handle_t *handle, void *param)
{
    flexio_uart_dma_private_handle_t *uartPrivateHandle = (flexio_uart_dma_private_handle_t *)param;
    FLEXIO_UART_EnableRxDMA(uartPrivateHandle->base, false);
    DMA_DisableInterrupts(handle->base, handle->channel);
    uartPrivateHandle->handle->rxState = kFLEXIO_UART_RxIdle;
    if (uartPrivateHandle->handle->callback)
    {
        uartPrivateHandle->handle->callback(uartPrivateHandle->base, uartPrivateHandle->handle,
                                            kStatus_FLEXIO_UART_RxIdle, uartPrivateHandle->handle->userData);
    }
}