/* param base I2C base pointer. param handle pointer to i2c_slave_handle_t structure which stores the transfer state.  */
void I2C_SlaveTransferAbort(I2C_Type *base, i2c_slave_handle_t *handle)
/* param base I2C base pointer. param handle pointer to i2c_slave_handle_t structure which stores the transfer state.  */
void I2C_SlaveTransferAbort(I2C_Type *base, i2c_slave_handle_t *handle)
{
    assert(NULL != handle);
    if (true == handle->isBusy)
    {
        I2C_DisableInterrupts(base, (uint32_t)kIrqFlags);
        (void)memset(&handle->transfer, 0, sizeof(handle->transfer));
        handle->isBusy = false;
    }
}