/* param base I2C peripheral base address param handle pointer to i2c_master_dma_handle_t structure param count Number of bytes transferred so far by the non-blocking transaction.  */
status_t I2C_MasterTransferGetCountDMA(I2C_Type *base, i2c_master_dma_handle_t *handle, size_t *count)
/* param base I2C peripheral base address param handle pointer to i2c_master_dma_handle_t structure param count Number of bytes transferred so far by the non-blocking transaction.  */
status_t I2C_MasterTransferGetCountDMA(I2C_Type *base, i2c_master_dma_handle_t *handle, size_t *count)
{
    assert(handle != NULL);
    if (NULL == count)
    {
        return kStatus_InvalidArgument;
    }
    if (handle->state == (uint8_t)kIdleState)
    {
        *count = 0;
        return kStatus_NoTransferInProgress;
    }
    *count = handle->transferCount;
    return kStatus_Success;
}