/* Enables or disables the specified I2C software reset.  */
void I2C_EnableSoftwareReset(I2C_Module *I2Cx, FunctionalState Cmd)
/* Enables or disables the specified I2C software reset.  */
void I2C_EnableSoftwareReset(I2C_Module *I2Cx, FunctionalState Cmd)
{
    assert_param(IS_I2C_PERIPH(I2Cx));
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        I2Cx->CTRL1 |= CTRL1_SWRESET_SET;
    }
    else
    {
        I2Cx->CTRL1 &= CTRL1_SWRESET_RESET;
    }
}