targets/TARGET_STMBLUE/Periph_Driver/src/BlueNRG1_i2c.c
ITStatus I2C_GetITPendingBit(I2C_Type* I2Cx, uint32_t I2C_IT)
{
  /* Check the parameters */
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_I2C_IT(I2C_IT));

  /* Check the status of the specified I2C flag */
  if (READ_BIT(I2Cx->MISR, I2C_IT) != (uint32_t)RESET) {
    /* I2C_IT is set */
    return SET;
  }
  else {
    /* I2C_IT is reset */
    return RESET;
  }
}
/**
  * @brief  Checks whether the specified I2C interrupt has occurred or not.
  * @param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
  * @param  I2C_IT: specifies the interrupt source to check. 
  *         This parameter can be one 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
  * @retval  ITStatus: functional state @ref ITStatus
  *         This parameter can be: SET or RESET.
  */
@brief  Checks whether the specified I2C interrupt has occurred or not.
@param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
@param  I2C_IT: specifies the interrupt source to check.
@brief Checks whether the specified I2C interrupt has occurred or not . @param I2Cx : where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type @param I2C_IT : specifies the interrupt source to check .
ITStatus I2C_GetITPendingBit(I2C_Type* I2Cx, uint32_t I2C_IT)
{
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  assert_param(IS_I2C_IT(I2C_IT));
  if (READ_BIT(I2Cx->MISR, I2C_IT) != (uint32_t)RESET) {
    return SET;
  }
  else {
    return RESET;
  }
}
ITStatus I2C_GetITPendingBit ( I2C_Type * I2Cx , uint32_t I2C_IT ) { assert_param ( IS_I2C_ALL_PERIPH ( I2Cx ) ) ; assert_param ( IS_I2C_IT ( I2C_IT ) ) ; if ( READ_BIT ( I2Cx -> MISR , I2C_IT ) != ( uint32_t ) RESET ) { return SET ; } else { return RESET ; } }
@brief  Checks whether the specified I2C interrupt has occurred or not.
@brief Checks whether the specified I2C interrupt has occurred or not .
/* Check the parameters */ /* Check the status of the specified I2C flag */ /* I2C_IT is set */ /* I2C_IT is reset */