/* Enables or disables the specified I2C dual addressing mode.  */
void I2C_DualAddressCmd(I2C_TypeDef *i2c, FunctionalState state)
/* Enables or disables the specified I2C dual addressing mode.  */
void I2C_DualAddressCmd(I2C_TypeDef *i2c, FunctionalState state)
{
    (state) ? (i2c->IC_TAR |= IC_TAR_ENDUAL_Set) : (i2c->IC_TAR &= IC_TAR_ENDUAL_Reset);
}