targets/TARGET_STMBLUE/Periph_Driver/src/BlueNRG1_i2c.c
void I2C_ITConfig(I2C_Type* I2Cx, uint32_t I2C_IT, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  assert_param(IS_I2C_IT(I2C_IT));
  
  if (NewState != DISABLE) {
    /* Enable the selected I2C interrupts */
    SET_BIT(I2Cx->IMSCR, I2C_IT);
  }
  else {
    /* Disable the selected I2C interrupts */
    CLEAR_BIT(I2Cx->IMSCR, I2C_IT);
  }
}
/**
  * @brief  Enables or disables the specified I2C interrupts.
  * @param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
  * @param  I2C_IT: specifies the I2C interrupts sources to be enabled or disabled. 
  *   This parameter can be any combination of the following values:
  *     @arg I2C_IT_TXFE: Tx FIFO empty
  *     @arg I2C_IT_TXFNE: TX FIFO nearly empty
  *     @arg I2C_IT_TXFF: Tx FIFO full
  *     @arg I2C_IT_TXFOVR: Tx FIFO overflow
  *     @arg I2C_IT_RXFE: Rx FIFO empty
  *     @arg I2C_IT_RXFNF: Rx FIFO nearly full
  *     @arg I2C_IT_RXFF: Rx FIFO full
  *     @arg I2C_IT_LBR: Length number of bytes received
  *     @arg I2C_IT_RFSR: Read from slave request
  *     @arg I2C_IT_RFSE: Read from slave empty
  *     @arg I2C_IT_WTSR: Write to slave request
  *     @arg I2C_IT_MTD: Master transaction done
  *     @arg I2C_IT_STD: Slave transaction done
  *     @arg I2C_IT_SAL: Slave arbitration lost
  *     @arg I2C_IT_MAL: Master arbitration lost
  *     @arg I2C_IT_BERR: Bus error
  *     @arg I2C_IT_MTDWS: Master transaction done without stop
  *     @arg I2C_IT_TIMEOUT: Timeout or Tlow error
  * @param  NewState: functional state @ref FunctionalState
  *         This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
@brief  Enables or disables the specified I2C interrupts.
@param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
@param  I2C_IT: specifies the I2C interrupts sources to be enabled or disabled.
@brief Enables or disables the specified I2C interrupts . @param I2Cx : where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type @param I2C_IT : specifies the I2C interrupts sources to be enabled or disabled .
void I2C_ITConfig(I2C_Type* I2Cx, uint32_t I2C_IT, FunctionalState NewState)
{
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  assert_param(IS_I2C_IT(I2C_IT));
  if (NewState != DISABLE) {
    SET_BIT(I2Cx->IMSCR, I2C_IT);
  }
  else {
    CLEAR_BIT(I2Cx->IMSCR, I2C_IT);
  }
}
void I2C_ITConfig ( I2C_Type * I2Cx , uint32_t I2C_IT , FunctionalState NewState ) { assert_param ( IS_I2C_ALL_PERIPH ( I2Cx ) ) ; assert_param ( IS_FUNCTIONAL_STATE ( NewState ) ) ; assert_param ( IS_I2C_IT ( I2C_IT ) ) ; if ( NewState != DISABLE ) { SET_BIT ( I2Cx -> IMSCR , I2C_IT ) ; } else { CLEAR_BIT ( I2Cx -> IMSCR , I2C_IT ) ; } }
@brief  Enables or disables the specified I2C interrupts.
@brief Enables or disables the specified I2C interrupts .
/* Check the parameters */ /* Enable the selected I2C interrupts */ /* Disable the selected I2C interrupts */