targets/TARGET_STMBLUE/Periph_Driver/src/BlueNRG1_i2c.c
I2C_OpStatus I2C_WaitFlushRx(I2C_Type* I2Cx)
{
  /* Check the parameters */
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));

  /* Wait the flush of TX FIFO is completed */
  if(I2Cx->CR_b.FRX == SET) {
    return I2C_OP_ONGOING;
  }
  else {
    return I2C_OP_OK;
  }
}
/**
  * @brief  Return the status of the RX FIFO flush operation.
  * @param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
  * @retval I2C_OpStatus operation status @ref I2C_OpStatus
  */
@brief  Return the status of the RX FIFO flush operation.
@param  I2Cx: where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type
@retval I2C_OpStatus operation status @ref I2C_OpStatus
@brief Return the status of the RX FIFO flush operation . @param I2Cx : where x can be 1 or 2 to select the I2C peripheral @ref I2C_Type @retval I2C_OpStatus operation status @ref I2C_OpStatus
I2C_OpStatus I2C_WaitFlushRx(I2C_Type* I2Cx)
{
  assert_param(IS_I2C_ALL_PERIPH(I2Cx));
  if(I2Cx->CR_b.FRX == SET) {
    return I2C_OP_ONGOING;
  }
  else {
    return I2C_OP_OK;
  }
}
I2C_OpStatus I2C_WaitFlushRx ( I2C_Type * I2Cx ) { assert_param ( IS_I2C_ALL_PERIPH ( I2Cx ) ) ; if ( I2Cx -> CR_b . FRX == SET ) { return I2C_OP_ONGOING ; } else { return I2C_OP_OK ; } }
@brief  Return the status of the RX FIFO flush operation.
@brief Return the status of the RX FIFO flush operation .
/* Check the parameters */ /* Wait the flush of TX FIFO is completed */