targets/TARGET_STMBLUE/Periph_Driver/src/BlueNRG1_i2c.c
void I2C_Cmd(I2C_Type* I2Cx, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));

  if (NewState != DISABLE) {
    /* Enable the selected I2C peripheral */
    I2Cx->CR_b.PE = SET;
  }
  else {
    /* Disable the selected I2C peripheral */
    I2Cx->CR_b.PE = RESET;
  }
}
/**
  * @brief  Enables or disables the specified I2C peripheral.
  * @param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
  * @param  NewState: functional state @ref FunctionalState
  *         This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
@brief  Enables or disables the specified I2C peripheral.
@param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
@param  NewState: functional state @ref FunctionalState
This parameter can be: ENABLE or DISABLE.
@retval None
@brief Enables or disables the specified I2C peripheral . @param I2Cx : where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type @param NewState : functional state @ref FunctionalState This parameter can be : ENABLE or DISABLE . @retval None
void I2C_Cmd(I2C_Type* I2Cx, FunctionalState NewState)
{
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE) {
    I2Cx->CR_b.PE = SET;
  }
  else {
    I2Cx->CR_b.PE = RESET;
  }
}
void I2C_Cmd ( I2C_Type * I2Cx , FunctionalState NewState ) { assert_param ( IS_I2C_ALL_PERIPH ( I2Cx ) ) ; assert_param ( IS_FUNCTIONAL_STATE ( NewState ) ) ; if ( NewState != DISABLE ) { I2Cx -> CR_b . PE = SET ; } else { I2Cx -> CR_b . PE = RESET ; } }
@brief  Enables or disables the specified I2C peripheral.
@brief Enables or disables the specified I2C peripheral .
/* Check the parameters */ /* Enable the selected I2C peripheral */ /* Disable the selected I2C peripheral */