/* Configures the slave address to be transmitted after start generation.  */
void I2C_SlaveAddressConfig(I2C_TypeDef *I2Cx, uint16_t Address)
/* Configures the slave address to be transmitted after start generation.  */
void I2C_SlaveAddressConfig(I2C_TypeDef *I2Cx, uint16_t Address)
{
  uint32_t tmpreg = 0;
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_I2C_SLAVE_ADDRESS(Address));
  tmpreg = I2Cx->CR2;
  tmpreg &= (uint32_t)~((uint32_t)I2C_CR2_SADD);
  tmpreg |= (uint32_t)((uint32_t)Address & I2C_CR2_SADD);
  I2Cx->CR2 = tmpreg;
}