/* param base SPDIF base pointer. param handle SPDIF eDMA handle pointer.  */
void SPDIF_TransferAbortSendEDMA(SPDIF_Type *base, spdif_edma_handle_t *handle)
/* param base SPDIF base pointer. param handle SPDIF eDMA handle pointer.  */
void SPDIF_TransferAbortSendEDMA(SPDIF_Type *base, spdif_edma_handle_t *handle)
{
    assert(handle);
    EDMA_AbortTransfer(handle->dmaLeftHandle);
    EDMA_AbortTransfer(handle->dmaRightHandle);
    SPDIF_EnableDMA(base, kSPDIF_TxDMAEnable, false);
    memset(handle->spdifQueue, 0U, sizeof(handle->spdifQueue));
    memset(handle->transferSize, 0U, sizeof(handle->transferSize));
    handle->queueUser = 0U;
    handle->queueDriver = 0U;
    handle->state = kSPDIF_Idle;
}