/* retval kStatus_Success retval kStatus_NoTransferInProgress there is no non-blocking transaction currently in progress.  */
status_t I2S_TransferGetErrorCount(I2S_Type *base, i2s_handle_t *handle, size_t *count)
/* retval kStatus_Success retval kStatus_NoTransferInProgress there is no non-blocking transaction currently in progress.  */
status_t I2S_TransferGetErrorCount(I2S_Type *base, i2s_handle_t *handle, size_t *count)
{
    assert(handle != NULL);
    assert(count != NULL);
    if (NULL == handle)
    {
        return kStatus_InvalidArgument;
    }
    if (NULL == count)
    {
        return kStatus_InvalidArgument;
    }
    if (handle->state == (uint32_t)kI2S_StateIdle)
    {
        return kStatus_NoTransferInProgress;
    }
    *count = handle->errorCount;
    return kStatus_Success;
}