/* param base SPDIF base pointer. param handle Pointer to the spdif_handle_t structure which stores the transfer state.  */
void SPDIF_TransferAbortSend(SPDIF_Type *base, spdif_handle_t *handle)
/* param base SPDIF base pointer. param handle Pointer to the spdif_handle_t structure which stores the transfer state.  */
void SPDIF_TransferAbortSend(SPDIF_Type *base, spdif_handle_t *handle)
{
    assert(handle);
    SPDIF_DisableInterrupts(base, kSPDIF_TxFIFOEmpty);
    handle->state = kSPDIF_Idle;
    memset(handle->spdifQueue, 0, sizeof(spdif_transfer_t) * SPDIF_XFER_QUEUE_SIZE);
    handle->queueDriver = 0;
    handle->queueUser   = 0;
}