/* param base LPUART peripheral base address. param lpuartEdmaHandle LPUART handle pointer.  */
void LPUART_TransferEdmaHandleIRQ(uint32_t instance, void *lpuartEdmaHandle)
/* param base LPUART peripheral base address. param lpuartEdmaHandle LPUART handle pointer.  */
void LPUART_TransferEdmaHandleIRQ(uint32_t instance, void *lpuartEdmaHandle)
{
    assert(lpuartEdmaHandle != NULL);
    assert(instance < ARRAY_SIZE(s_lpuartBases));
    LPUART_Type *base = s_lpuartBases[instance];
    if (((uint32_t)kLPUART_TransmissionCompleteFlag & LPUART_GetStatusFlags(base)) != 0U)
    {
        lpuart_edma_handle_t *handle = (lpuart_edma_handle_t *)lpuartEdmaHandle;
        LPUART_DisableInterrupts(base, (uint32_t)kLPUART_TransmissionCompleteInterruptEnable);
        handle->txState = (uint8_t)kLPUART_TxIdle;
        if (handle->callback != NULL)
        {
            handle->callback(base, handle, kStatus_LPUART_TxIdle, handle->userData);
        }
    }
}