/* param base I2S base pointer. param handle pointer to handle structure.  */
void I2S_TxTransferAbort(I2S_Type *base, i2s_handle_t *handle)
/* param base I2S base pointer. param handle pointer to handle structure.  */
void I2S_TxTransferAbort(I2S_Type *base, i2s_handle_t *handle)
{
    assert(handle != NULL);
    I2S_TxEnable(base, false);
    handle->state = (uint32_t)kI2S_StateIdle;
    (void)memset((void *)&handle->i2sQueue, 0, sizeof(i2s_transfer_t) * I2S_NUM_BUFFERS);
    handle->queueDriver = 0U;
    handle->queueUser   = 0U;
}